I want to store the whole HTML document as it stands as there are containers
shown or hidden based on what has been entered or selected with the inputs
which is why i want to grab it in its actual state, i guess much like fire
bugs output

 

From: Barry van Oudtshoorn [mailto:[email protected]] 
Sent: Friday, 16 March 2012 7:17 PM
To: [email protected]
Subject: Re: [Moo] Copying the HTML document

 

Perhaps something as simple as using data- fields, like in this (very
quickly thrown together and by no means ready for use) example:
http://jsfiddle.net/barryvan/XKbVp/

You can then read off the values from data-value in each of the inputs.

On 16/03/12 16:02, Steve Onnis 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

 






-- 
Barry van Oudtshoorn
www.barryvan.com.au

Reply via email to