returning JSON response to a ajax call prompts file download containing the response

Posted by user200018 on Stack Overflow See other posts from Stack Overflow or by user200018
Published on 2009-12-22T23:23:56Z Indexed on 2010/06/12 10:02 UTC
Read the original article Hit count: 242

Filed under:
|
|

i am submitting a from using jQuery ajax, and server is returning json response. but instead of the script, parsing the json result, the browser is prompting me to download the json response.

I have had this problem before, where i forgot to return false at the end of the event handler. But this time im clueless why this is happening. anyone has experienced this problem.. thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about JSON