Forums / Developer / Smart loading of JavaScript / Comment50610
André R.
Thursday 19 March 2009 12:19:52 am
Patch above is part of ezwebin 1.4 included in Exponential 4.1, just use ezpagedata_set and ezpagedata_append to add parameters to persistent_variable (and protected member if persistent_variable is not supported by current view).
_set: set an index on the persistent_variable hash_append: append a variable on a index on the persistent_variable hash
ex:
{ezpagedata_set('script_list', array( 'some.js' ))} {ezpagedata_append('script_list', 'someother.js')}
persistent_variable will now be:hash( 'script_list', array( 'some.js', 'someother.js' ) )
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom