Results 1 to 5 of 5

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

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default 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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      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
      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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,790
    Answers
    583
    Vote Rating
    390
      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
      0  

    Default Thanks

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •