You will need to use _javascript_. On the modal form window, use _javascript_ to
write the data you want to pass back to the opener window at onSubmit. To
get the data back to the original opener window, you will need to use the
window.opener and then the rest of the DOM path to your form object that you
want the data written to.

-Kevin

----- Original Message -----
From: "Ciliotta, Mario" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, October 10, 2003 1:28 PM
Subject: OT: Help with CF and modal window

> Hi all,
>
> I was wondering if anyone could help me out.  I have page that has a link
on
> it, that when you click on it opens up a modal window (always on top - my
> users what it this way).  The modal window that is opened is a form that
you
> fill out and hit submit and CF will save it to the database.  The problem
is
> that I cannot get the modal window to submit to the same window that is
> opened.  It submits in a new window and then I get a CF error that the
form
> variables are not defined.
>
> Basically this is a rough description of what I am trying:
>
> 1) Form opens with links to click on
> 2) clicking on one link will open a modal window on top of the original
form
> with all the links.
> 3)  User fill out form on modal window, hits submit and a thank you
message,
> along with other text appears.
> 4) user hits close button or return and the modal window will close and
the
> link page is still there.
>
> Sorry for the long description but it is the best way I can explain it.
>
> If anyone has any ideas, that would be great.
>
> Thanks in advance,
> Mario
>
>
> Here is some of the code: (very simple version)
>
> Link page:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> <html>
> <head>
>  <title>Untitled</title>
>  <script language="_javascript_">
>  function modelesswin(url,mwidth,mheight){
> if (document.all&&window.print) file://if <file://if>  ie5
>
eval('window.showModelessDialog(url,"","help:0;resizable:0;dialogWidth:'+mwi
dth+'px;dialogHeight:'+mheight+'px")')
> else
>
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=
1,scrollbars=1")')
> }
> </SCRIPT>
> </head>
>
> <body>
>
> To load via link, use something like below:
>       <a href=""> here</a>
>
> </body>
> </html>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to