Form data preview with DOM
I got asked to set this up as a proof of concept for an upcoming project, and it might be helpful to you guys, too:
Previewing collated form data with DOMscripting
The code is a bit wooly at the moment and I will clean it up and explain a bit more if I get the time.
In the meantime, just give it a swirl.


January 30th, 2006 at 9:09 pm
Looks great.
A minor bug (at least in firefox 1.5) seems to be that an id can’t start with a hyphen—it doesn’t trigger the label action. But that’s really not that important to the code. Good job.
January 30th, 2006 at 9:42 pm
It is not really important for HTML either, as IDs must start with an alphanumeric character, at least according to the HTML specs for ID
What is the fetish of every framework out there to mess around with IDs? .NET and Spring are both very naughty at that.
February 6th, 2006 at 12:38 pm
Looks great Chris. Looking forward to an explanation of the code, hope you’ll find some time.
Thanks.