Hello all, I am using XMLHttpRequest to retrieve an XML document which has been created server-side using PHP and returned in responseXML and responseText of the XMLHttpRequest object. However I do not wish the browser to display this data as it's an XML file containing Global Positioning Data (eventually to be uploaded onto a GPS device) but instead would like to prompt the user to save it. Is it possible to do this once the XML document is available in responseXML or responseText of the XMLHttpRequest object ? Many thanks Kerry
Yes, it's possible. you can send that XML data to a php file which do the saving part for you and sending you back a file for download.
But how do I do that ? Sorry I should have made it clear in my post that I'm in need of code hints. How do I get to 'prompt' the user to 'Save as' if I am looking at the responseText and/or responseXML ? Or is there some otherway of handling the data once This initial HTTPRequest has been made ?
Worked the solution out. For my need XMLHTTPRequest is overkill, I just set an url to the location. Case solved !