We use this extensively.  I got stuck on that submit thing for a bit.  Since
youre already stuck on ie with the modal window thing, you can also use
MSXML2.XMLHTTP to do submits. Works quite well.  I can email you an example
if you like.  Its also decently documented on msdn.


DRE

-----Original Message-----
From: Ciliotta, Mario [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10, 2003 12:28 PM
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]

Reply via email to