jquery - Getting status 0 and statusMessage "n/a" in IE7 after ajaxForm.submit() -


i'm uploading file using hayageek upload plugin, uses ajaxform plugin. problems start when want handle upload errors ie7. works fine in firefox, chrome , ie10, in ie7 status 0 in response's xhr object, no matter if server returns error or not.

this controller's code:

response.statuscode = 400; //no matter code return, 0 return json(new {errorid = 400, level = 1, message = "error message"}, jsonrequestbehavior.allowget); 

and i'm getting in xhr object using ie7:

{aborted: 0, responsetext: "<div class=...", responsexml: object {...}, status: 0, statustext: "n/a"} 

notice in responsetext entire view, instead of "error message". happens when specify response.statuscode. if comment line response.statuscode = 400; correct message in responsetext, still status : 0.

i've tried datatype: 'json', status : parseerror, because it's trying parse responsetext, entire view in html instead of error message i'm sending controller.

is there way receive proper status code , message response in ie7 or should give up?


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -