General discussion
Thread display: Collapse - |
All Comments
Start or search
Create a new discussion
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Form validation in NN4 when form in DIV
My page is simple:
<.body>
<.div id="Layer1" style="position:absolute; left:50px; top:53px; width:101px; height:46px; z-index:1">
<.form action="otherpage.htm" method="post" name="form1" onSubmit="return validate();">
<.input type="text" name="textfield">
<.input type="submit" name="Submit" value="Submit">
<./form>
<./div>
<./body>
(NOTE: The "dots" were added above in the tags so my post does not contain HTML code. They do not appear in my actual page code!)
See - nothing but a single form with a single textfield. Move the form out of the DIV tag - it works fine. Put form back in DIV tag - it doesn't work (validates, but never "returns false" - it still submits)!
How can I validate a form that's inside a layer?!?!