PDA

Click to See Complete Forum and Search --> : ASP request.form with submit()


FlorisF
Apr 26th, 2001, 07:51 AM
Hello,

is maybe anyone familiar with the difference of the javascript generated way to submit a form with form.submit() or form.submit.click() and the real "manual" click?
In the first case the request.form() is empty, while in the second case it's filled with the form data as it should be.
The funny thing is that the button gets clicked, still the form (with POST) is ignored.
With this construction of an image in one frame to submit a form in another frame I would like to avoid the usage of the normal submit button in the frame where the form is in.
The context is an IIS application in VB with webclass (where the request.form() is going).

Anyone who knows why this doesn't work or how it could work?
Any ideas on how to realise this construction in another sense?

Thanks a lot,

Floris.

monte96
Apr 26th, 2001, 11:43 AM
Should work the same either way.... post your code and I'll take a look at it...

FlorisF
May 2nd, 2001, 01:35 AM
Hi,

thanks for your interest!
The code is the following, and I tried both ways of submitting below. The webclass responds in a way that I arrive at the _Form1 but s is empty.When I click the submit-button by hand it is not...

In frame "frame1" there's this form:

<form name="form1" action="FFT.ASP?WCI=PSelect&amp;WCE=Form1&amp;WCU" target="_top" method="post">
<input type="submit" value="Submit files for processing" name="B1" style="text-align: right">

In another this link:

<a href=" + URL + " onClick=""top.frame1.form1.B1.click()"" target=""_top""> ...or...
<a href=" + URL + " onClick=""top.frame1.form1.submit()"" target=""_top"">

In the sub PSelect_Form1:

s = Request.Form(1)

It would be very useful to make this work. The form is in a frame to allow scrolling because of the frame, and the link with the submit could take the submit button out of the scrolling frame and thus giving it a fixed place on the screen.

Thanks a lot,

Floris Frieswijk.

monte96
May 2nd, 2001, 11:15 AM
Are you working with IIS or are you trying to do this in VB?



I believe to have access to the Request object in VB you have to create an instance of the ASP object model. I don't usually mess with that stuff cuz I've never ran into a client that was interested in it. Always ASP on an IIS WinNT server or VB for client server..

FlorisF
May 3rd, 2001, 05:09 AM
As to (IIS ExOr VB) it's more like (IIS And VB): server-side VB with Webclass...
I do have access to the request.form because of the ASP that is generated by the Webclass which shows in the fact that I can access it by posting the form manually.
Thanks,

:confused: Floris