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.

View Comments to “Form data preview with DOM”

  1. Jonathan Holst Says:

    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.

  2. Chris Says:

    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

    # ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens (“-”), underscores (“_”), colons (“:”), and periods (“.”).

    What is the fetish of every framework out there to mess around with IDs? .NET and Spring are both very naughty at that.

  3. Matthijs Says:

    Looks great Chris. Looking forward to an explanation of the code, hope you’ll find some time.
    Thanks.

blog comments powered by Disqus
Christian Heilmann's blog – Wait till I come! is the blog of Christian Heilmann , a developer evangelist living and working in London, England. Download vcard.

Feed me, Seymour: Entries (RSS) and Comments (RSS).