1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    13
    Vote Rating
    0
    rans is on a distinguished road

      0  

    Default Unanswered: storeIng.load({url: "blabla.jsno"});

    Unanswered: storeIng.load({url: "blabla.jsno"});


    Hi, how do I know if the this commend was successful or not?
    storeIng.load({url: "blabla.jsno"});

    thanks
    rans

  2. #2
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,341
    Answers
    498
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      0  

    Default


    See the docs here:

    http://docs.sencha.com/ext-js/4-1/#!...re-method-load

    Note the third argument passed to the callback is success.

  3. #3
    Ext JS Premium Member
    Join Date
    Nov 2009
    Location
    St Louis,MO
    Posts
    267
    Answers
    20
    Vote Rating
    18
    James Goddard will become famous soon enough James Goddard will become famous soon enough

      0  

    Default


    It's a matter of personal preference but I would use:
    http://docs.sencha.com/ext-js/4-1/#!...ore-event-load

    as that would cover autoLoad as well.

  4. #4
    Sencha User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,341
    Answers
    498
    Vote Rating
    248
    skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of skirtle has much to be proud of

      0  

    Default


    Good point, I probably should have mentioned the load event in my original reply. It is a viable alternative to the callback but I'm not sure I'd call it 'a matter of personal preference'. That implies that they're effectively interchangeable but in many cases there's only one that will give the desired results. Difficult to say which from the OP's question.

    In most of my apps I don't bother detecting load errors on individual stores, I just have a catch-all error handler on Ext.Ajax instead. It depends what the errors signify and how you want to handle them.

  5. #5
    Sencha User
    Join Date
    Oct 2012
    Posts
    13
    Vote Rating
    0
    rans is on a distinguished road

      0  

    Default Thanks

    Thanks


    it's works!!
    the problem was that I wrote the "success" function and didn't let the program building it

Thread Participants: 2

Tags for this Thread

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