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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,585
    Answers
    540
    Vote Rating
    319
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      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 Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,585
    Answers
    540
    Vote Rating
    319
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi