|
-
Apr 26th, 2001, 07:51 AM
#1
Thread Starter
New Member
ASP request.form with submit()
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.
-
Apr 26th, 2001, 11:43 AM
#2
Frenzied Member
Should work the same either way.... post your code and I'll take a look at it...
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
May 2nd, 2001, 01:35 AM
#3
Thread Starter
New Member
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&WCE=Form1&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.
Last edited by FlorisF; May 2nd, 2001 at 01:38 AM.
-
May 2nd, 2001, 11:15 AM
#4
Frenzied Member
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..
oOOo--oOOo
__ /\/\onte96
oOOo--oOOo
Senior Programmer/Analyst
MCP
[email protected]
[email protected]
Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..
-
May 3rd, 2001, 05:09 AM
#5
Thread Starter
New Member
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,
Floris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|