dbassett74
22 Jun 2009, 2:22 PM
Per the documentation for Ext.Ajax.request, it should return a transactionId. Although the following code successfully performs the request, it never returns a transactionId:
var id = Ext.Ajax.request({
url: 'Service.asmx/getAgencyData'
, method: 'POST'
, jsonData: { agencyId: pnl.getComponent('AgencyIdTextField').getValue()}
, headers: { 'Content-Type': 'application/json;charset=utf-8'}
, success: function(response, options) {
}
, failure: function(response, options) {
}
});
Ext.Msg.alert('transactionId', id); <--- this always has an empty object for id
What am I missing?
var id = Ext.Ajax.request({
url: 'Service.asmx/getAgencyData'
, method: 'POST'
, jsonData: { agencyId: pnl.getComponent('AgencyIdTextField').getValue()}
, headers: { 'Content-Type': 'application/json;charset=utf-8'}
, success: function(response, options) {
}
, failure: function(response, options) {
}
});
Ext.Msg.alert('transactionId', id); <--- this always has an empty object for id
What am I missing?