PDA

View Full Version : modal window disappears



c0mrade
11-10-2008, 01:50 PM
1) Script Title:
DHTML Modal window
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm
3) Describe problem:
When executing this script on click it works perfectly. But when I do it on form submit it displays for less than a second and it disappears. ex:<form id="clientForm" name="clientForm" method="post" action="user.php?add=record" onsubmit="ageprompt();">

any hints ? thank you

rangana
11-10-2008, 02:00 PM
<form id="clientForm" name="clientForm" method="post" action="user.php?add=record" onsubmit="return ageprompt();">


It should be that ageprompt function would either return false/true. If false, the form won't submit, the later will.