dimanche 4 octobre 2009

EXTJS (Ajax)

Extjs (Ajax)    




Example 1


Ext.Ajax.request({

url: 'url_data.php',

success:function(conn, response, options) {

var res = Ext.decode(conn.responseText);

},

failure: otherFn,

params: { param1: 'P1' , param2: 'P2'}

});


Example 2


var conn = new Ext.data.Connection();


var req = conn.request({

url: 'url_data.php',

success: function(resp, opt) {

var res = Ext.decode(resp. responseText);

},

failure: otherFn,

params: { param1: 'P1' , param2: 'P2'}

});






Aucun commentaire:

Enregistrer un commentaire