Hi Nathan,
that should work, no idea why not.
etemplate/inc/class.etemplate.inc.php around Line 239 in method exec()
saves all body tags in the etemplate request:
self::$request->java_script_body_tags = $GLOBALS[‘egw’]->js->body;
and the corresponding code in process_exec() at line 459 sets it again:
if (!empty(self::$request->java_script_body_tags))
{
foreach (self::$request->java_script_body_tags as $tag => $code)
{
//error_log($GLOBALS[‘egw’]->js->body[$tag]);
$GLOBALS[‘egw’]->js->body[$tag] .= $code;
}
}
You need to dig into it, to check why it’s not working.
Ralf
Nathan Gray schrieb:
I have a nextmatch on a page.
The nextmatch template contains a checkbox.
I have javascript that adds an eventListener to each checkbox onLoad:
PHP:
$GLOBALS[‘egw’]->js->set_onload('mySetup(); ');
$GLOBALS[‘egw’]->js->validate_file(‘reconcile’, ‘reconcile’,
‘perp_ledger’);
where mySetup() loops through the checkboxes.
Everything works fine for the first page, but after searching,
filtering, next page, etc, the javascript is included, but the onLoad
is not set.
Is there a way to persistently set onLoad through nextmatch actions,
or safely generate the same effect?
I don’t need to set it beyond the current page, but it does need to be
there for every view of the current page.
Nathan Gray
nathan at goarctic dot com
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers
–
Ralf Becker
Director Software Development
Stylite GmbH
[open style of IT]
Morschheimer Strasse 15
67292 Kirchheimbolanden
fon +49 (0) 6352 70629-0
fax +49 (0) 6352 70629-30
mailto: rb@stylite.de
www.stylite.de
www.egroupware.org
Geschäftsführer Andre Keller, Gudrun Müller,
Nigel Vickers und Ralf Becker
Registergericht Kaiserslautern HRB 30575
Umsatzsteuer-Id / VAT-Id: DE214280951
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers