This is client-side and would be better asked on a client-side group. Here
are a few comments however:
First of all you have set language="javascript" in the script tags but you
are using vbscript (get in the habit of using javascript client-side if you
can).
Do you want the form to submit whether popup window succeeds or not? If so
return "true" from your NewWindow() function. You are currently returning
the window handle or the new window.
Does the form submit and processing work properly if you leave out the
"onsubmit=" attribute. If not what error do you get?
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"n2K" <> wrote in message
news:%...
> Hello to all. I would like to open a new window (Function is called
> NewWindow and is writtent in VBscript) when a user submits a form. All the
> samples I found on the web indicate something like the following:
>
> <%@ Language=VBScript %>
> <html>
> <head>
> </head>
> <body>
>
> <script language="javascript">
>
> function NewWindow()
> NewWindow = window.open
>
("Slider.asp","progress","toolbar=no,scrollbars=no ,width=200,height=150,menu
bar=no,location=no,resizable=no");
> end function
>
> </script>
>
> <form enctype="multipart/form-data" action="SomeASPpage.asp" method="post"
> name="main1" onsubmit = NewWindow()>
> <input name="file" type="file" size="50">
> <INPUT type="text" id=text1 name=text1><INPUT type="text" id=text2
> name=text2>
> <input name="submit" type="submit" value="Do It">
> </form>
> </body>
> </html>
>
> What am I doing wrong? I've even tried RETURN NEWWINDOW() after ONSUBMIT.
> (Okay, it's probably not close - but I am new at this).
>
> TX...
>
>
>