You have to name the window you open and specify the target in your form.

<SCRIPT LANGUAGE="_javascript_" TYPE="text/_javascript_">
<!--
function Popup(){
  var win = window.open("blank.html", "form_popup" , "toolbar=no,scrollbars=yes,width=400,height=300,resizable=yes");
  win.focus();
  return true;
}
//-->
</SCRIPT>
<form action="" method="post" target="form_popup" Popup();">
...
<input type="submit">
</form>

blank.html is an empty html page to initially open in the popup.

Pascal

> -----Original Message-----
> From: Robert Orlini [mailto:[EMAIL PROTECTED]
> Sent: maandag 19 april 2004 21:26
> To: CF-Talk
> Subject: OT: _javascript_ popup onsubmit
>
> Any help w/this _javascript_ would be appreciated. Since I'm
> very new to _javascript_.
>
> <script>
>   function popup(popupType) {
>   window.open(this);
>   }
> </script>
>
> <form method="post" action=""
> <select name="date"> <option
> value="#dateFormat(dateAdd('m',i,now()),'mm')#">#dateFormat(da
> teAdd('m',i,now()),'mmmm yyyy')# </select> <input
> type="submit"> </form>
>
> The main page displays the page I want in the popup. The
> popup gives and error because the date field is not being
> passed to it. Any suggestions please?
>
> Robert O.
> ô�ô
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to