Login Register

frame

dojo.io.frame: browser asks to save 'json' response as a file

I am using dojo.io.frame to upload the file. When the file is uploaded, server(server side code) returns response in the form of json. But when the response is returned, handler is not called, instead browser opens the file save window. Saved file has the json response in it. I dont know why browser asks to save the response as file. why handler is not getting called?

I am using following code to upload the file. File gets uploaded successfully, but the callback function isnt getting called.


dojo.io.iframe.send({
method: "post",
handleAs: "json",

Syndicate content