View Full Version : How to get the HTTP status code on AjaxProxies calls?
aonjavadev
17 Feb 2011, 11:18 AM
When I make a proxy call how can I check the HTTP status code (for status code such as 302, session timeouts) when the call returns? I am using Ext.data.Store and Ext.data.JSONStore objects for loading my stores and I don't see anything in the API that can help me. Any suggestions?
aonjavadev
17 Feb 2011, 12:42 PM
I found how to do this, so I thought I'd put up my result.
myStore.load({
scope: this,
callback: function(records, operation, success){
var httpStatus = operation.response.status;
my.utils.verifyCallStatus(httpStatus);
// console.log(httpStatus);
// console.log(records);
//console.log(operation);
//console.log(success);
}
});
Powered by vBulletin® Version 4.2.3 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.