1. #11
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    87
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Code:
    var data = [];
    Ext.each(grid.getSelectionModel().getSelections(), function(rec){
      data.push(rec.get('id'));
    });
    Ext.Ajax.request({
      url: 'myurl',
      params: {
        id: data
      },
      success: function(){
        // do something
      },
      failure: function(){
        // do something else
      }
    });

  2. #12
    Sencha User
    Join Date
    Nov 2010
    Posts
    47
    Vote Rating
    0
    anshu_gupta is on a distinguished road

      0  

    Default


    i tried this but data is showing properly in firebug but when i receive it server its showing me as null. In my data object i have two params. id and a boolean value but when i retreive them in my restful webservice its null. what maybe the issue? i am stuck in it.

  3. #13
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    87
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Does your server know how to handle multivalued parameters like 'id' in the previous example (e.g. in Java you need to use request.getParameterValues instead of request.getParameter)?

    Alternatively, you could concatenate the array values, e.g.
    Code:
    params: {id: data.join(';')}

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