You are correct Duncan...this is indeed how a modal should behave - though
posting could be performed on the 'OK'

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 01 October 2003 09:46
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] showModalDialog form submit crash



correct me if i'm wrong, but a modal dialog is to accept one of two things:
OK or Cancel.  (it's a long time since i ever used one of these, and never
for the web, so might well be wrong).  trying to submit a form to somewhere
else isn't what it's expecting.


Duncan Cumming
IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------


 

                    Dave Phipps

                    <[EMAIL PROTECTED]        To:     ColdFusion User group
<[EMAIL PROTECTED]>               
                    cf.co.uk>            cc:

                                         Subject:     [ cf-dev ]
showModalDialog form submit crash                 
                    01/10/2003

                    09:24

                    Please

                    respond to

                    dev

 

 




Hi,

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">&nbsp;</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">&nbsp;</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();">&nbsp;<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]






-- 
** 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]

-- 
** 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]

Reply via email to