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,menubar=no,location=no,resiz able=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... 6 1819
are you expecting this to open before you post back?
If so, have your button NOT be a submit, have it call the function, then do
a form.submit() in it's event.
This is all clientside though, and not ASP related.
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"n2K" <ne****@mentorits.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... 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,menubar=no,location=no,resiz able=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...
Quite right, it is client side. I'm not sure what you mean by form.submit()
in the Function's event? In addition, do I remove the SUBMIT button in my
form/
thanks
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... are you expecting this to open before you post back? If so, have your button NOT be a submit, have it call the function, then do a form.submit() in it's event. This is all clientside though, and not ASP related.
-- Curt Christianson Site & Scripts: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"n2K" <ne****@mentorits.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... 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,menubar=no,location=no,resiz able=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...
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" <ne****@mentorits.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl... 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...
Good points about Javascript. Again, in the learning phasse, but I'm getting
there.
Yes, the form works correcly without the onsubmit. The idea here is that I'm
trying to determine the size of a file that I want to pass to the ASP script
that uses a COM HTTP (asptypelibrary) component. I utlimately want to
display a progress bar. However, with the AspTypeLib, you cannot access the
form object once you're instansiated the component. A little confusing as I
know COM, but not reall "Snuffy" about ASP etc.
But I do thank you for the pointers and assist.
"Mark Schupp" <no****@nospam.com> wrote in message
news:uS****************@tk2msftngp13.phx.gbl... 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" <ne****@mentorits.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... 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...
Sorry Mark, I should be a little more explanative.
Want I want to do is to start my Progress Bar BEFORE I submit the form. So
my thunkin was that I could use the onsubmit to call a function. The
function determines the file size using filescripting, then starts my pbar
(my pbar needs the incriment value which I calculate from the file size),
THEN submit the form to my asp script.
Obvisouly, not there yet.
"Mark Schupp" <no****@nospam.com> wrote in message
news:uS****************@tk2msftngp13.phx.gbl... 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" <ne****@mentorits.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... 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...
onClick=ClickMe()
function ClickMe()
{
...blah blah, your client side stuff....;
form1.submit();
}
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"n2K" <ne****@mentorits.com> wrote in message
news:ef**************@TK2MSFTNGP10.phx.gbl... Quite right, it is client side. I'm not sure what you mean by form.submit() in the Function's event? In addition, do I remove the SUBMIT button in my form/
thanks
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... are you expecting this to open before you post back? If so, have your button NOT be a submit, have it call the function, then do a form.submit() in it's event. This is all clientside though, and not ASP related.
-- Curt Christianson Site & Scripts: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
"n2K" <ne****@mentorits.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl... 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,menubar=no,location=no,resiz able=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...
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Paul |
last post by:
I link to a web site from an Excel spreadsheet. The page i link to is
getCookie.asp which sets a cookie then returns back some html which opens a
new window, to the same site but a different page...
|
by: Les |
last post by:
Hi,
I'd like to find out how to use the window.open() script in Fireworks MX. I have posted my question in the Fireworks forum but
didn't get any replies. Since it's javascript, maybe someone...
|
by: Marshall Dudley |
last post by:
When I do the following line in Netscape, the popup loads as it should,
but the parent window usually, but not always, reloads as well.
<a href="#"...
|
by: David McCulloch |
last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it.
Why not?
(Don't ask why I simply did not open the window with the new size....my
original problem was how to open a...
|
by: Samir Pandey |
last post by:
Hello,
I am using the following javascript code to open a new window.
Somehow, IE always opens a new window. It doesn't open target url in
the window name given.
All i want is, if there is a...
|
by: NeverLift |
last post by:
But, if it's not open, I don't want to open it . . . using
window.open will open it if it doesn't exist, even if the url in that
open is null (the window is then empty -- but it's open).
The...
|
by: Larry R Harrison Jr |
last post by:
I have pull-down menus in javascript and I have the code for opening a link
in a new window. But I want it to open a full-sized window. I can't figure
out the syntax. What I have so far:
...
|
by: Dominic Tocci |
last post by:
I'm searching for a way to use window.open on my web page to open a window
in firefox that allows the sidebars to work (bookmarks, history, etc).
When I use the following:
var...
|
by: anthony.turcotte |
last post by:
Hi,
I've looked for a solution to this problem on google, read posts in
this newsgroup and I still haven't found anything that could help me.
Here's the scenario.
1. User accesses...
|
by: Geoff Fox |
last post by:
I am in the final moments of designing a new website. One of the pages
(http://www.auditionfactory.com/samples.php) has four links to show
sample work. I would like these links to open new...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |