Although it looks to me like I should be able to do this using a regular
button and the Script Wizard, I can only get one OR the other to work.
If I use an ordinary button, I can set it up with a button type of "Submit".
However, when I set an onSubmit event handler to go to the page I want,
nothing happens.
If I set up the button type as normal and use the Script Wizard to do a
Submit, followed by a Goto Page, I get an error saying "Object Required:
'Download'", where Download is the name of the form I'm using and no
hyperlink jump.
If I code the event the other way round, the jump seems to work, but the
Object Required error comes up and the form is not submitted.
Can anyone help me with this please ? I've spent hours so far and got
nowhere !!!
> I've been trying to get a process running which involves the submission of a
> form and a jump to another page by clicking on a button once.
>
> Although it looks to me like I should be able to do this using a regular
> button and the Script Wizard, I can only get one OR the other to work.
>
> If I use an ordinary button, I can set it up with a button type of "Submit".
> However, when I set an onSubmit event handler to go to the page I want,
> nothing happens.
Do you get an error message?Does it submit the data and stay on the same
page?
Does it even submit the data?
>
>
> If I set up the button type as normal and use the Script Wizard to do a
> Submit, followed by a Goto Page, I get an error saying "Object Required:
> 'Download'", where Download is the name of the form I'm using and no
> hyperlink jump.
>
> If I code the event the other way round, the jump seems to work, but the
> Object Required error comes up and the form is not submitted.
>
> Can anyone help me with this please ? I've spent hours so far and got
> nowhere !!!
I have had a very similar problem and after *hours* of work I finally
came up
with a work-around.
If the page that you would like to go to has no form in it then just
type its
URL in as the confirmation page for your first form. After you press
the submit
button it will take you right there.
If the second page has a form in it this will not work because the PWS
does
something funny. I can't explain it quickly you just have to try it.
Instead I
create a simple confirmation page that just says:
Thank you.
Click Here to Continue with ...
And that takes you to the second form.
This is obviously not a perfect solution but it really isn't bad
either. I
guess I should try creating an OnLoad JavaScript on the "Thank You" Page
to see
if this will take me safely to the next form. But I really did not have
any
more time to spend on that project. It works. I'm happy.
Arthur Weinberger
art...@math.binghamton.edu
When you submit a form, a request is sent to the server. When you go to a
page, a request is sent to the server. You can only send one request to the
server at a time. The server must respond to the request before you can send
another request. So, obviously, you can't do both at once.
Depending on the type of form submitted, and what it's doing, the page you
want to go to can be set up as the response from the server. However, you
didn't go into any details about what kind of form you're submitting, so I
can't be any more specific.
Hope this helps,
Kevin Spencer
Microsoft MVP
http://www.connectrans.com/takempis
Specializing in Internet Database Connectivity
with IDC and ASP, and interactive Internet programming
Kevin Spencer wrote in message <6adcok$7...@news.scott.net>...
I also have been attempting this unsuccessfully. First I tried to use the
confirmation page as my goto page and that didn't work. It just blinked and
went nowhere. My form is simple 3 line with the two buttons.
Then I tried script with the following:
<input LANGUAGE="JavaScript" TYPE="submit"
VALUE="Submit"
ONCLICK="Window.location.href =
"http://holo-spectra-pc/HS-Home/Formatamatic_DLoad.htm""
NAME="B1"> </p>
When this runs, I get a script error "Window is undefined"
What is the way to do this seemingly simple and valuable procedure?
Thanks,
Bill Arkin
Have you tried using the FP98 Form option to
assign the page you want to jump to as the
confirmation page?
Tom Rowe
Bill Arkin wrote in message ...
You can place a bit of Javascript at the bottom of the form results page:
window.document.location="myzipfile.zip"
When the page loads, the script will execute, and the file will be
downloaded.