-
28 Jan 2013 6:41 AM #1
Ext.Loader.loadScript and callback
Ext.Loader.loadScript and callback
I need to have a callback in this function but It doesn't work.
Code:Ext.Loader.loadScript('my.js',function(){ console.log('ok'); //????????? });
-
30 Jan 2013 2:39 AM #2
nicolabaldo, if you see in API DOC the method "loadScript" should receive an object with the callback methods of success and failure. Try this:
Code:Ext.Loader.loadScript({ url: 'my.js' ,onLoad: function(){ console.log('ok'); } ,onError: function(){ console.log('error'); } });
I am sorry my english, I am learning yet
Portuguese blog: http://wessdevel.blogspot.com.br/
Twitter: @wlegolas
-
30 Jan 2013 3:10 AM #3


Reply With Quote