Hi Randy,
There is no more javascript class in current EGroupware (1.8, Trunk or EPL10.1+).
All the relevant methods are now static methodes of egw_framework, eg. egw_framework::set_onload()
egw::__get() is modified to return the framework object if called for ‘js’, to $GLOBALS[‘egw’]->js === $GLOBALS[‘egw’]->framework, thought that’s only to keep old code running. For new code use the static methods.
Sitemgr never used these attributes, it is your hack to Template3 which made them available.
There’s now a method egw_framework::_get_body_attribs(), which returns a string like ‘onload=“blah” onresize=“blub”’, but it is a protected method, so you need to write a little helper class extending egw_framework, to be able to call _get_body_attribs and return them (like the regular templates does it).
Or change Template3 to extend egw_framework, WITHOUT calling it’s constructor to simply use:
case ‘onload’:
return ‘onload="’.htmlspecialchars(self::$body_attribs[‘onload’]).’"’;
Or we make egw_framework::_get_body_attribs() public, as it is still callable as common::get_body_attribs(), which simply gives a fatal error
That’s probably the best solution and while doing that we make all body attribs available via Template3.
I already commited that to Trunk and will backport it to 1.8.
Ralf