Skip to content

Instantly share code, notes, and snippets.

View imranp's full-sized avatar

Imran Perwez imranp

  • Glasgow, Scotland
View GitHub Profile
@imranp
imranp / gist:1200522
Created September 7, 2011 13:12
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;
},
@imranp
imranp / gist:1200517
Created September 7, 2011 13:09
Iterate over a map.
for (Map.Entry<String, String> entry : map.entrySet())
{
System.out.println(entry.getKey() + "/" + entry.getValue());
}