Zen client methods and inheritance
I have a Zen page, and I would like to have an onload handler to run a bit of javascript when the page is ready. Unfortunately, the page inherits from a template, and the template already has an onload handler that does all kinds of useful things. Is there any way to override the onload handler in my page, while still being able to call the onload handler that is inherited from the template? In ObjectScript, there is ##super, but in javascript, there is no equivalent of that.
This is more of a workaround than an answer, but could you change the onload handler in the superclass to call a single method, and call the same method in the unload handler of the subclass?
The Zen equivalent of ##super for JS is invokeSuper. Typically you'd just use:
All Zen components (including pages) have this. Here's an example from %ZEN.Component.dataCombo: