Do you want to fetch all form data, or get the document html code with new form values?
The first option would be easy using element.toQueryString() http://mootools.net/docs/core/Element/Element#Element:toQueryString The way you are doing now doesn't work, as new form data are not being updated in the html code, but stored in each input element property (depending on input type it's value/ selected/ checked). That's how browsers work. Probably best way would be to retrieve input elements data, use it to update the html code, and then fetching document code $ (document.documentElement).get('html') On Mar 16, 9:02 am, "Steve Onnis" <[email protected]> wrote: > I have a web form and I am trying to find out a way that i can copy the > contents of a HTML page with all data in the form so i can save it to a > file. Can anyone suggest a way that i might be able to do this? > > I have been doing this > > new > Element("div").adopt($(document.body).getParent("html").clone()).get("html" ) > > to get the HTML document but the form fields are all blank. > > Appreciate any ideas. > > Steve
