zend framework - Dojo parse unparsed widjits -


Adds dojo.parser.parse to the Zend Framework (); If you have widgets on the page on your script, but if you do not - understand. But I have a common JS file, which should set the lightbox images in all the pages, and for that I need dojo.parser.parse (); to be included. I can add it to my normal JS file, but if I do, then the parser runs twice and dojo breaks because all the widgets in the page are adding twice.

How can I set my JS effectively to see incompatible objects effectively, or even better, to find out what dojo.parser.parse (); Already running? (Unfortunately, Zend does not specify dojo.parser.parse) in a variable)

Once dojo.parser.parse () has terminated the parsing of the widget, all the widgets reference global item dijit.registry._hash . You can use a simple test to determine if the dojo.parser.parse () is called or not.

This approach works only when you create widgets only as an announcement.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -