PDA

View Full Version : xml Response



tzander
23 Apr 2008, 4:45 AM
does the xml Response to an ajax request need the Content-Type text/xml I thougth I read that somewhere or is text/html fine

Thanks

Animal
23 Apr 2008, 4:49 AM
text/xml should be fine. Basically, you just need to tell the browser that it should try to parse the response and create an XML document from the response. Otherwise it won't try (Which is quite right. You don't want it wasting time, trying to parse every Ajax response!)