Skip to content

Instantly share code, notes, and snippets.

@imranp
Created September 7, 2011 13:12
Show Gist options
  • Save imranp/1200522 to your computer and use it in GitHub Desktop.
Save imranp/1200522 to your computer and use it in GitHub Desktop.
Ajax request using ExtJS
Ext.Ajax.request({
url : 'reportActionAjax.jsp' ,
params : {'id' : id, 'action' : 'delete'},
method: 'GET',
autoAbort: false,
timeout: 180000,
success: function (result, request) {
var response = Ext.util.JSON.decode(result.responseText);
var id = response.id;
},
failure: function (result, request) { }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment