Click to See Complete Forum and Search --> : Form confirmation won't see past /div


stevesh
06-20-2003, 06:40 AM
I have a script I found on another site and modified for my form which pops up on submit and shows the customer what he ordered so he can go back and change it if necessary. It works fine until it reaches a </div> tag and then won't show any values after that. A small piece of the form is here:

www.paramountcoffee.net/jstest

I need the divs so the page will render the way I want it to. I suspect the problem is in the line:

for(var x = _f.firstChild; x ; x=x.nextSibling)

but I don't know enough Javascript (yet) to know how to fix it.

If someone could point me in the right direction, I'd appreciate it.

Charles
06-20-2003, 06:54 AM
You problem is invalid HTML. Correct the erors listed at http://validator.w3.org/check?uri=http%3A%2F%2Fwww.paramountcoffee.net%2Fjstest%2F.

By the way, HTML 4.0 was replaced by HTML 4.01 in 1999 I think it was. (And the FORM element in HTML 4.0 doesn't have a "name" attribute.) Use instead:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">