ajax - ajaxSubmit not working in IE jQuery Form plugin -
i using jquery form plugin upload images in mvc project.
for reason code in ie no longer working (worked before): can tell submit successful, image successful uploaded, , recoded in database, response seems somehow corrupted in ie.
function showresponse(responsetext, statustext, xhr, $form) { $("#loading").hide(); addimage(responsetext.imageid); buildarray(); }
i tested on firefox, chrome, safari, working fine, when use in ie.
i got error:
message: 'imageid' null or not object
anyone have had similar problem before?
thanks in advance!
well problem solved changing content type "text/plain" "text/html", that's it.
omfg, internet explore!
code have changed:
return json(newimage, "text/html", encoding.unicode, jsonrequestbehavior.allowget);
hope else well.
Comments
Post a Comment