[jQuery] Re: Returning html in json object

2009-08-17 Thread Ryan
Just to address your comments first; I set the headers to application/json and now I get a download dialog (with or without html in the json) The addUpload function doesn't get called which is the problem. In any event this is what it looks like: function addUpload(data) { alert('addUpload called

[jQuery] Re: Returning html in json object

2009-08-17 Thread MorningZ
First, in PHP you should specify the content-type to be "text/plain" or "application/json" leaving it alone as "text/html" could potentially cause confusion Second, you should show what function "addUpload" is/does On Aug 17, 4:48 pm, Ryan wrote: > I am having problems with the return dat