rolled into a JS object and returned by the statement that launched it. If
you want a real form submit, you have to use a real window. If you HAVE to
have the modal window, you could pop it up, return the data to the calling
page, process it (in a hidden frame or flash movie) and then pop another
modal dialog with the 'thank you' message in it. Not very clean, but
you're totally circumventing the purpose of the modal dialog.
barneyb
-----Original Message-----
From: Ciliotta, Mario [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 11:28 AM
To: CF-Talk
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]

