I have a page that opens a login form in a modalDialog window. The javascript call is like so:
<script language="javascript">
function openLogin() {
parent.showModalDialog("login2.cfm",window,"dialogWidth:309px; dialogHeight:273px;help:0;status:no;");
}
</script>
The login2.cfm looks like this:
<form name="loginform" action="results.cfm" method="post" target="window" onsubmit="self.close();">
<table>
<tr><td colspan="2" background="images/1px_spacer.gif" width="270" height="8"> </td></tr>
<tr>
<td class="logintext">Username:</td>
<td><input type="text" maxlength="20" name="uname" class="loginfield"></td>
</tr>
<tr><td colspan="2" background="images/1px_spacer.gif" width="270" height="8"> </td></tr>
<tr>
<td class="logintext">Password:</td>
<td><input type="password" maxlength="16" name="pword" class="loginfield"></td>
</tr>
<tr><td colspan="2"width="270" height="15" align="right"><input type="button" name="cancel" value="Exit" class="loginbtn" onclick="self.close();"> <input type="submit" name="login" value="login" class="loginbtn"><img src="images/1px_spacer.gif" width="33" height="15" alt="" border="0"></td></tr>
</table>
</form>
When I try to submit the form it crashes the browser. Is there some reason why I can't do a standard form submission from a showModalDialog window?
Any help would be appreciated.
Cheers
Dave
-- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
