Ext.Ajax.request({
url:'abc/abc/abc',
success: function(response){
var result = Ext.decode(response.responseText);
var value=result.roles;
}
});
How can I get "value=result.roles" from ext.ajax.request?
I am trying to use an action.
Ext.Ajax.request({
url:'abc/abc/abc',
success: function(response){
var result = Ext.decode(response.responseText);
var value=result.roles;
getValue(value);
}
});
function getValue(value) {
return value;
};
But I still can't get the value.
How can I do this?
success: function ( result, request ) {
var jsonData = Ext.util.JSON.decode(result.responseText);
var resultMessage = jsonData.data.result;
fn_AKExt(resultMessage, ‘Success’);
},
failure: function ( result, request ) {
var jsonData = Ext.util.JSON.decode(result.responseText);
var resultMessage = jsonData.data.result;
fn_AKExt(resultMessage, ‘Error’);
}
Check out How To Use Ext.Ajax.Request With Response Text for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With