views:

15

answers:

0

Hello,

I have a very strange problem with dojo not loading properly in one action in one of the controllers in my application (it seems to work just fine in the other actions). I've been trying to sort it out, and it appears that in the action that its not working it fails to generate the following code that's present in all the other actions:

dojo.addOnLoad(function() {
    dojo.forEach(zendDijits, function(info) {
        var n = dojo.byId(info.id);
        if (null != n) {
           dojo.attr(n, dojo.mixin({ id: info.id }, info.params));
        }
    });
    dojo.parser.parse();
});

However it generates all the other pieces of code like all the:

    dojo.require("dijit.xxxx");

None of the dijit.byId that I'm trying to select on that page are defined, although I can clearly see that they are present in the html code. This is really driving me crazy.

Thank you very much!