Export to GitHub

jsload - issue #2

DOM is not correctly updated with opera


Posted on Mar 4, 2009 by Happy Monkey

What steps will reproduce the problem? 1. Try to access to javascript function in JSLoad.prototype.load callback function

What is the expected output? What do you see instead? I was enable to access to my namespace function, it's not in dom. However, corresponing js is loaded

What version of the product are you using? On what operating system? Opera 9.63, Revision 5261, Plate-forme Mac OS X, System 10.5.6

Please provide any additional information below.

Opera error: ecmascript http://localhost/~sebastien/nws/proxycachedns.html Event thread: readystatechange Error: name: TypeError message: Statement on line 14: Cannot convert undefined or null to Object Backtrace: Line 14 of linked script http://localhost/~sebastien/nws/modules/proxycachedns/proxycachedns-loader.js: In function callbackLoaded Nws.Services.ProxyCacheDns.Demo.load(true); Line 175 of linked script http://localhost/~sebastien/nws/libs/jsload/jsload.js: In function loadNext srcSetObj.callback(); Line 253 of linked script http://localhost/~sebastien/nws/libs/jsload/jsload.js loadNext(); Line 206 of linked script http://localhost/~sebastien/nws/libs/jsload/jsload.js: In function scriptOnLoad thisObj.loadScript(srcSetObj, iteration); ... stacktrace: ... Line 175 of linked script http://localhost/~sebastien/nws/libs/jsload/jsload.js: In function loadNext srcSetObj.callback(); Line 253 of linked script http://localhost/~sebastien/nws/libs/jsload/jsload.js loadNext(); Line 206 of linked script http://localhost/~sebastien/nws/libs/jsload/jsload.js: In function scriptOnLoad thisObj.loadScript(srcSetObj, iteration); ...


Loaded js files

Lié - ext-base.js eval - Id du script: 192 Lié - ext-all.js Lié - DomQuery.js eval - Id du script: 196 Inline - Id du script: 197 Lié - jsload.js Lié - modules.js Lié - proxycachedns-loader.js -> jsload load is called here Lié - str.js Lié - init.js Lié - uri.js Lié - thema.js Lié - conv.js Lié - comm.js Lié - utils.js Lié - cookie.js Lié - ui.js Lié - potreader.js Lié - core.js Lié - engine.js eval - Id du script: 213 eval - Id du script: 214 Lié - proxycachedns.js Lié - proxycachedns-ui.js Lié - proxycachedns-demo.js


proxycachedns-loader.js code

Ext.onReady(function(){ // Called when dom is ready jsLoader.load(['proxycachedns-demo'], callbackLoaded);

function callbackLoaded(){
    Nws.init({
        debugEnabled: true,
        exceptionCatchEnabled: false,
        useBrowserConsole: false
    });

    Nws.Services.ProxyCacheDns.Demo.load(true); // in proxycachedns-demo.js

    Nws.Ui.removeLoaderMask();
}

});

Comment #1

Posted on Oct 8, 2009 by Happy Giraffe

Thanks so much for the bug report, sdolard. My fix for issue 1 seems to have covered this one as well. You can find the fixed code at r11. More useful updates are coming soon!

Status: Fixed

Labels:
Type-Defect Priority-Medium