views:

54

answers:

2

My firefox downloads the JSON response of an AJAX call as a file. It's suppose to be handled by the JavaScript i.e. JSON object. Can anyone explain how to stop this behavior or there is something I am missing.

Thanks.

+2  A: 

Your code may be making a regular POST instead of an xhr call.

fig
I think you are right, I am using AJAX upload with using the POST in another frame I guess.
codemeit
@codemeit: We can only confirm if you show us your source code…
Marcel Korpel
A: 

If you mean calling a script that returns plain JSON directly from Firefox JsonView is a nice Plugin for viewing JSON responses in Firefox.

Daff