[dev] horde/lib/horde.lib

steve mailling at gmx.co.uk
Mon Jun 2 08:02:12 PDT 2003


I would like to be ableto call the function addScriptFile()  at the 
beginning of a script without getting the echo. In fact, I would like to see
    if (ob_get_length() || headers_sent()) {
              $url = Horde::addParameter($registry->getParam('webroot',
'horde') . '/javascript.php', 'file', $file);
              $url = Horde::addParameter($url, 'app', $app);
              echo '<script language="JavaScript" type="text/javascript"
src="' . Horde::url($url) . "\"></script>\n";
          }

...only when common-header.inc already ran. I would appreciate something 
like this in fact :
    if ( defined (_COMMOM_HEADER)) {
...

At 21:00 31/05/2003, you wrote:
>Message: 2
>Date: Sat, 31 May 2003 10:40:11 -0400
>From: Chuck Hagenbuch <chuck at horde.org>
>Subject: Re: [dev] horde/lib/horde.lib
>To: dev at lists.horde.org
>Message-ID: <1054392011.f8f99615bc827 at marina.horde.org>
>Content-Type: text/plain; charset="ISO-8859-1"
>
>Quoting steve <mailling at gmx.co.uk>:
>
> > And not just:
> >              global $_horde_script_files;
> >              $_horde_script_files[$app][] = $file;
>
>So that we can call addScriptFile() after an app's common-header.inc has
>been included.
>
> > I don't get how to add a javascript file in the list whitout making the
> > echo at the start?
>
>Huh?
>
>-chuck





More information about the dev mailing list