Ext.Ajax.request({
url: "...",
method: "POST",
params: {
currentID: mainNode.attributes.id
},
success: function (response) {
var resp = Ext.decode(response.responseText );
resp.totalCount;
}
}); //ajax over