PDA

View Full Version : Loading Javascript Dinamically



mysticav
1 Aug 2010, 12:44 AM
Does Extjs have a function to load javascript files on fly, with onload capability ?

If not, does anybody knows about a well-done, professional script that does that ?

I would like to have a library that allow me to do this:

library.load('myfile.js').onload(function(){
alert('the script was loaded !');
});

mysticav
1 Aug 2010, 12:49 AM
Does Extjs have a function to load javascript files on fly, with onload capability ?

If not, does anybody knows about a well-done, professional script that does that ?

I would like to have a library that allow me to do this:

library.load('myfile.js').onload(function(){
alert('the script was loaded !');
});

Animal
1 Aug 2010, 2:03 AM
http://www.sencha.com/deploy/dev/docs/?class=Ext.Loader

Apparently still a beta feature, but use it as a base.

mysticav
1 Aug 2010, 1:39 PM
Specifically, I need something like
jQuery.getScript();

44gatti
26 Aug 2010, 6:33 AM
I use another script. See this thread!
http://www.sencha.com/forum/showthread.php?108144-Ext.Loader-examples