Wednesday, 4 September 2013

IE 8 issue :Downloading pop up comes out when firing ajax for uploading file


Downloading pop up comes out when firing ajax for uploading file




This pop up comes out because ajax call after success need a response type in IE-8. So we can set the response by any of these way.

If you are using Struts2 you can simply set the content type in the parameter.

Struts.Xml:

<result name="success" type="json">
  <param name="contentType">text/html</param>
</result>


you can achive this using java you just need to set the result response in the JSON


return Json(result, "text/html");




No comments:

Post a Comment

Spring boot with CORS

CORS (Cross-Origin Resource Sharing) errors occur when a web application running in a browser requests a resource from a different domain or...