I need to find a way to write ajax responses to a file. The responses are XML strings, which is more than fine by me.
What I would like to do, is click on something in my webpage, and save the XML that is returned to a file.
But since I know, that Javascript can't access local files by itself, it is also possible to just send the data on to another server, where PHP would take care of this.
Now the place where I'm stuck is the javascript and the interception. I know, that some of this can be done using greaseMonkey in Firefox. If so, how? Thanks!
Edit: Some explaining.
- The script that creates the output is not written by me.
- Yes, I could see the data in Firebug, seeing is one thing. I need to interpret the data
- There are a lot of requests going on here. About 1 every 2 seconds, so copying them by hand isn't an option.
Still, help?