PDA

View Full Version : Runtime Javascript Loader



shibubh
26 May 2009, 2:33 AM
this is simple runtime javascript loader class.


Example :


Ext.ensure({
js: ['../js/somejs.js', '../js/OtherjsFile.js'],
callback: function() {
var win = new Ext.ux.MyWindow({});
win.show();
},
scope: this
});


example download and unzip the window.zip file in example dir

dawesi
31 May 2009, 7:00 PM
is this the same as the remote loader in the examples?

based
6 Jun 2009, 12:04 PM
Hi, i am looking for a way to Remote Component creation. Is "remote loader" for that?
Can you give me any link for this?

I checked the Ext.ux.Plugin.RemoteComponent polugin, but i am looking for a more mature way.

moegal
7 Jun 2009, 8:19 AM
Shibibh,

Very nice, any way to unload the js file when done? Is that even possible?

Thanks, Marty

mr.a
27 Oct 2009, 5:27 PM
I tried your plugin and it works well, but recently I find the js loaded in this way is not shown in firebug in FF thus I can't trace the code. Any solution to this trouble?

sam.ds.chen
20 Dec 2009, 10:12 PM
I tried your plugin and it works well, but recently I find the js loaded in this way is not shown in firebug in FF thus I can't trace the code. Any solution to this trouble?

Maybe writting a logging window with ExtJS is a good idea. Or you may be intrested in YUI logger...
Although break point is not supported by loggers, they can print out some debug messages, which would help you find out where the bug is.