1. #1
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    227
    Vote Rating
    2
    nicolabaldo is on a distinguished road

      0  

    Default 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'); //?????????
    });

  2. #2
    Sencha User Legolas's Avatar
    Join Date
    Apr 2010
    Location
    Brazil/MG
    Posts
    58
    Vote Rating
    3
    Legolas is on a distinguished road

      0  

    Default


    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

  3. #3
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    227
    Vote Rating
    2
    nicolabaldo is on a distinguished road

      0  

    Default


    Perfect! Thanks a lot!

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar