I see my method for error handling invoked but since there’s no arguments in, I don’t know how to check what kind of error it is.
var xdr = new XDomainRequest();
xdr.onerror = function(e){
alert(e);
}
In the above example e is undefined.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When executing CORS, the error message is not available. And XDomainRequest is by the very definition of it cross-origin.
See this discussion as well as this definition.