Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use a form to write to a pre-existing XML file

Status
Not open for further replies.

mechro99

Programmer
Nov 27, 2001
54
US
Hi,

I'm trying to create a program that will contain an offline html form to enter personal information. I'd like to save that information to an XML file.

All this must be done with client-side scripting, since it will be offline. Is there a way to do this?

Thanks,
Dan
 
Have a look at "document.innerHtml" property. It'll return the full HTML page content (all that is between <HTML> and </HTML> tags) as an XML DOM Document. After, save it with save("localpath") method.

Water is not bad as long as it remains outside human body ;-)
 
Can you give me an example of how to use that property? Do I use it in the form action?

 
Well, I searched a bit and found that when I did it, it was in an intranet with a very precise target (IE6 on win2000 pc) so I used the "Microsoft.XMLDOM" activeX to achieve this.

Water is not bad as long as it remains outside human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top