addScriptFile() comes too late

Sebastian Birnbach <[email protected]> Mon, 4 Jun 2018 12:17:59 +0200
Newsgroups gmane.comp.horde.devel
Message-ID <CACTNBFOXvOMZUd7OEtoHRi194=JCLoCZt-GOr=nDeJWScW-8mQ@mail.gmail.com>
All *.js scripts added to page_output e.g. via

$GLOBALS['page_output']->addScriptFile('foo.js');

are written to the very end of the HTML page, just before '</html>'


My page renders several Horde_View subpages, one of which calls a function
in foo.js. However, as the *.js files are not loaded at the time of
function call, the function is not found.

Is there a Horde way to include a JS script file earlier on in the HTML
code?
-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]