Login Register

fix

Netscape Fix

I'm required to support Netscape 7.2 and 8.1 for my current project at work, so with that said, this is why I've had to create this patch for Dojo 0.9+. It's probably not the prettiest thing, nor the most optimized, but it's all I have had time for.

If you decide to use this fix, PLEASE READ the comments carefully, as this will not work if you don't place things in the right places.

I've also yet to test this with a Custom Build, so some issues may come up when this point is hit. I'll be updating this shortly when I do finally get to test this in a build. Until then, here you are...

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"){

Random error on getComputedStyle

Hi,

Dojo: 1.0.2, (custom build)

In my page I use a TabContainer, which loads every tab's content trough XHR. If I'm changeing the active tab while it is loading in random cases I get an error in IE and FF.
IE: currentStyle is null or not an object
FF:

Object cannot be created in this context" code: "9
_doIt("GET", Object chain=[0] id=5 fired=0 paused=0 results=[2])dojo.js.uncompres... (line 6626)
xhrGet(Object preventCache=true)dojo.js.uncompres... (line 6683)
_downloadExternalContent()dojo4caf.js.uncom... (line 5863)
_loadCheck(undefined)dojo4caf.js.uncom... (line 5841)

Syndicate content