Well, you can't do that. It violates the same-origin policy. Also, you can't use Javascript to save files. But you can fetch the file on the server side (i.e. with PHP, using simplexml_load_file or something) and use it however you like; either directly use the data to build the HTML, or pass it off to Javascript as JSON.
Also, what's
Quote:
|
I don't know where to put the URL and which url to use.
|
supposed to mean? How would I know which URL you need to use for whatever you are doing? What's wrong with the one in your original post?