I know that.  I am populating a hidden textarea field with the data and
posting it with the form, and thanks for the suggestion but what you are
suggesting is not going to work for what i want.  I am not only concerned
about form data, i am concerned about the state of containers that may be
hidden or visible as a result of the data being inputted.  For example, if a
radio button option is selected and i have some script that causes a html
element to become visible as a result of selection that radio button then i
the grabbed html to reflect that

 

From: Matthew Hazlett [mailto:hazl...@gmail.com] 
Sent: Friday, 16 March 2012 7:29 PM
To: mootools-users@googlegroups.com
Subject: Re: [Moo] Copying the HTML document

 


Can't save to a flat file with js alone, you would need to post it to an
aspx or php page.

but you could do something like this to capture the html page with the
values:
http://jsfiddle.net/pcKrg/ 





 <mailto:bvanoudtsho...@gmail.com> Barry van Oudtshoorn

Friday, March 16, 2012 4:16 AM

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.




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



 <mailto:st...@cfcentral.com.au> Steve Onnis

Friday, March 16, 2012 4:02 AM

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

 

 

-- 

Matthew Hazlett Owner, Clarity Computers
Tel: 603 707 1774 | Mobile: 603 707 1774
hazl...@gmail.com | http://www.linkedin.com/in/hazlema





 <http://www.facebook.com/profile.php?id=1491561960> Facebook
<https://twitter.com/#%21/hazlema> Twitter
<http://www.linkedin.com/in/hazlema> LinkedIn

<<image001.jpg>>

<<image002.jpg>>

<<image003.png>>

<<image004.png>>

<<image005.png>>

Reply via email to