Login Register

addonload

FloatingPane didn't work with addOnLoad on FireFox.

There are lots of js functions in "Register.html" , and this file works well alone.
But it didn't work on FF, when the file is included in "desktop.html" by dojox.layout.FloatingPane. Because the "Register.html" 's functions did not work .
But the "desktop.html" worked on IE, though there are still some errors come out.

Codes bellow:

1 register.html , only a table contains some textboxes. A js functions is connected to the first button by dojo.addOnLoad(). It worked on IE and FF.

FloatingPane didn't work with addOnLoad on FireFox.

There are lots of js functions in "Register.html" , and this file works well alone.
But it didn't work on FF, when the file is included in "desktop.html" by dojox.layout.FloatingPane. Because the "Register.html" 's functions did not work .
But the "desktop.html" worked on IE, though there are still some errors come out.

Codes bellow:

1 register.html , only a table contains some textboxes. A js functions is connected to the first button by dojo.addOnLoad(). It worked on IE and FF.

Dojo addOnload bug on ie7

Hi everyone,
we are successfully using dojo in social network www.freebar.com. Dojo is helping us with lot of stuffs but we are now experiencing a critical problem that is compromising the use of our site.

Consider that:
1)We have lots of user generated content
2)We are using external Ad Manager(Google ad Manager) which make external js calls (to retrieve the adv content from the specific advertiser/network)
3)We are using dojo.addonload function in different parts of the site

Problem with IE and addOnLoad()?

I have encountered an issue with IE. Firefox is fine. I execute a number of steps from within a function called by addOnLoad(). These steps build much of the DOM (95%) and set CSS classes on many of the elements created. What I find with IE is that the CSS styles are not applied to the DOM objects created from within the function. I know that the CSS file is being loaded because styles are applied to existing elements on the page. I've included a stripped down version of the JSP that has the same problem with hte only class applied. Would appreciate any help. Thanks.

[SOLVED] Is it possible to use Firebug to debug scripts loaded with dojo.require?

This may be a common question, but is there a convenient way to use Firebug to debug scripts loaded using dojo.require? The official documentation seems to imply that one should use debugAtAllCosts:

http://dojotoolkit.org/book/book-dojo/part-4-meta-dojo-making-your-dojo-...

But this invariably changes the behavior of the application, and creates new errors to go with it.
Any advice would be appreciated on this. Thanks,

Jake

dojo.addOnLoad() timing

I'm creating some widgets (bordercontainer) in two ways on the same page. First, I'd like to create them through the markup (

SOLVED: Fix for dojo.addOnLoad with IE (Dojo 1.1)

Hello,

I've recently bumped into a dojo.addOnLoad bug with IE6: It can execute the passed function even if document's readystate is currently "loading".

Here's a way to patch dojo.addOnLoad:

    //dojo.addOnLoad patch if IE
    if(dojo.isIE){
        //Saving a copy of the original function.
        var origAddOnLoad=dojo.addOnLoad;
        //Wrapping it.
        dojo.addOnLoad=function(){
            var args=arguments;
            if(document.readyState=="complete"){

HOWTO: a nice way to load dojo pages in a TabContainer

we want few words and more code...

index.html

index

 

dojo.require("dojox.layout.ContentPane");
dojo.require("dijit.layout.TabContainer");

problem with dojo.addOnLoad on IE7

Hello

I tried do call dojo.addOnLoad (dojo1.0) in a custom object file, to create a single instance of the object :

if(!dojo._hasResource["webshop.utils.Portability"]){ 
dojo._hasResource["webshop.utils.Portability"] = true;
dojo.provide("webshop.utils.Portability");


dojo.declare("webshop.utils.Portability",null , {
    getNodeContent : function (node){
        .....
  }

});

function init(){
alert('init function running')
portability=new webshop.utils.Portability();
}
dojo.addOnLoad(init);

}

;

Syndicate content