I have to use dojo 1.1 on the site.
The page uses dijit widgets in a declarative way, for example:
<select dojoType="dijit.form.FilteringSelect">...</select>
I want to do some things in widgets after loading, but if I do this:
dojo.addOnLoad(function() {
dijit.registry.forEach(function(widget, idx, hash) {
alert('Hello! I am a widget!');
});
});
no warnings appear, since this code is executed before the "dijitification" on the page, as I found out during debugging.
Is there a way to execute my code when the page is really, really ready?
source
share