Git Product home page Git Product logo

jsload's People

Watchers

 avatar

jsload's Issues

Loads script 'undefined'

There is bug in function loadScript(version 0.9):
after returning from function loadNext() script tries to load non existing file

line 223:if ( (iteration + 1) > srcSetObj.srcToLoad.length ) loadNext();
should be 

223:if((iteration + 1) > srcSetObj.srcToLoad.length){loadNext();return;}

Original issue reported on code.google.com by [email protected] on 14 Jan 2011 at 9:16

Issues in Safari 3 and Chrome

Hi Eric, this is a very nice piece of code.  We did have a couple issues, 
however, that we quickly patched.  Might not be the ideal fixes, but they 
work for our purposes.

1. Safari 3 was throwing several errors trying the load an "undefined" 
script.  I altered the createScriptEl function to check the url var before 
execution of the body. This issue also caused Chrome to crash. It iss 
possible that there is something in my code passing undefined to .load 
function, but so far I haven't seen any errors in IE or Firefox that 
validates any consistency.

   function createScriptEl(url, srcSetObj, iteration) {
            if (url != "undefined") {....

2.  Added a path property to the tag object to allow easy setting of a 
path variable without having to manually append it to the name property or 
depend on just 'http://' in the name string.

          In .getSrcToLoad prototype....

        if (tagName.indexOf("http://") > -1) {
            var filePath = tagName;
        } else if (tag.path) {
            var filePath = tag.path + tagName + '.js';
        }
        else {
            var filePath = (path ? path : "") + tagName + '.js';
        }


Regards,

Patrick Dillon
Integrify

Original issue reported on code.google.com by [email protected] on 20 Oct 2008 at 8:34

Attachments:

New tests for executionAfterLoad ordering fail in Safari

What steps will reproduce the problem?
1. Run the test page

What is the expected output? What do you see instead?

Only 20 out of 24 tests will pass. The four executionAfterLoad tests fail.
Safari is returning an execution log of ["end of document","window
loaded","callback executed"], which is not a pattern we expect.

Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 9 Oct 2009 at 1:18

Cannot Load External Scripts

What steps will reproduce the problem?
I've attached my setup of JSLoad and a screenshot of the output. if you dont 
mind taking a look. 
maybe i did something wrong.

What is the expected output? What do you see instead?
I want to load external scripts from Google AJAX Library. i've added the path 
configuration, but 
JSLoad still loads the version on my server.

What version of the product are you using? On what operating system?
i'm using JSLoad 0.9, i got it directly from the Downloads section. and i'm 
currently developing on 
Safari 4.0.5 and Firefox 3.6.2.

thx,
Rizky

Original issue reported on code.google.com by br4inwash3r on 12 Apr 2010 at 9:51

Attachments:

DOM is not correctly updated with opera

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();
    }
});

Original issue reported on code.google.com by [email protected] on 4 Mar 2009 at 2:56

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.