1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    5
    Vote Rating
    0
    BarbaraM is on a distinguished road

      0  

    Default Unanswered: How to get responsecode from store callback?

    Unanswered: How to get responsecode from store callback?


    i'm trying to handle session timeout server-side. When getting session timeout, my server send back a response with json {success: false}, ContentType: 'application/json', ResponseNo: 408

    store:

    var storeAssets = Ext.create('Ext.data.Store', {
    model : 'modCombo',
    autoLoad : false,
    proxy : { limitParam : undefined,
    startParam : undefined,
    paramName : undefined,
    pageParam : undefined,
    noCache : false,
    type : 'ajax',
    url : '/caricaAssets.json',
    reader : { root : 'data' }
    }
    });

    And client side, i handle callback loading store, like this:

    storeAssets.load({
    scope: this,
    callback: function(records, operation, success) {
    if (!success) { Ext.Msg.alert('Error'); }
    }
    });

    To perform different responses, i'd like to change alert. So, if response no. is 408, i can alert "session expired" (and so on, managing response numbers)

    But i didn't find any way to get response no. in store callback!!!!!

    Any suggest? Thanks

  2. #2
    Sencha - Community Support Team friend's Avatar
    Join Date
    Apr 2011
    Posts
    895
    Answers
    106
    Vote Rating
    27
    friend has a spectacular aura about friend has a spectacular aura about

      0  

Thread Participants: 1

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