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 !!!
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.
>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
Kevin Spencer wrote in message <6adcok$...@news.scott.net>... >Alan Morris wrote in message ><6achqt$m9...@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
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.
>>Alan Morris wrote in message >><6achqt$m9...@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
>I also have been attempting this unsuccessfully.
First I tried to use the
>confirmation page as my goto page and that didn't
>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.
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