Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Submit and GotoPage with one click

1 view
Skip to first unread message

Alan Morris

unread,
Jan 24, 1998, 3:00:00 AM1/24/98
to

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.

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 !!!

Arthur Weinberger

unread,
Jan 24, 1998, 3:00:00 AM1/24/98
to Alan Morris

Alan Morris wrote:

> 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

Kevin Spencer

unread,
Jan 24, 1998, 3:00:00 AM1/24/98
to

Alan Morris wrote in message
<6achqt$m9g$1...@nclient3-gui.server.virgin.net>...

>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.
>
>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 !!!


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

Bill Arkin

unread,
Jan 24, 1998, 3:00:00 AM1/24/98
to

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 =
&quot;http://holo-spectra-pc/HS-Home/Formatamatic_DLoad.htm&quot;"
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

Thomas A. Rowe

unread,
Jan 25, 1998, 3:00:00 AM1/25/98
to

Alan & Bill,

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 ...

Kevin Spencer

unread,
Jan 25, 1998, 3:00:00 AM1/25/98
to

Alan Morris wrote in message
<6af8ss$24g$1...@nclient3-gui.server.virgin.net>...
>Kevin,
>
>Thanks for the information.
>
>What I am trying to do is to provide a name and phone number field and a
>single button to submit the details entered and trigger a zipped file
>download. This is running on an IIS 3.0 Intranet in work.
>
>I'm able to use the FP extensions, but can't find anything to do what I'd
>like "off the shelf".
>
>I thought I'd be able to achieve what I wanted with the scripting wizard,
>but because I've never used JavaScript or VBScript before, and as Web
>technology is new to me, I've not got anything working so far.
>
>I've had a look at the MSDN and TechNet, and some Web sites, but so far
>everything is as clear as mud !


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.

0 new messages