Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
12-26-2005, 07:23 AM #1
- Join Date
- Dec 2005
- Thanked 0 Times in 0 Posts
How to send the source of current page?
Is it possible to send the source of the current page loaded (that the sctipt is on) to, say.. a php script via POST method?
What I was originally wanting to do was see if there was a way to "grep" a specific part out of the loaded page and send that value, but I think that would be too much of a pain for me to figure out and may be easier if I can just send the whole source and deal with it there.
12-26-2005, 06:22 PM #2
var source = (typeof window.XMLSerializer == "undefined")? document.documentElement.outerHTML : (new XMLSerializer()).serializeToString(document);
// now send source variable via ajax