Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Submit another page
Message
 
 
To
11/12/1999 06:31:01
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00302201
Message ID:
00302622
Views:
24
>I can submit a page from another page using script. Two things I'd like to ask. First, should the submitted page (the one being submitted) have a Submit button?

Thats up to you. The form does not require one if you are calling the form's submit method via script.

>Second, can I specify some parameters while doing oWindowName.document.form1.submit()?

Sure,

If you are issuing a form post then populate any required parameters into form objects such as the hidden type. For form get then you can add the required querystring parameters to the form's action property prior to invoking the form's submit method.

ie: form post
oWindowName.document.form1.hiddenobj1.value = "some param 1"
oWindowName.document.form1.hiddenobj2.value = "some param 2"
oWindowName.document.form1.action = "yourURL.htm"
oWindowName.document.form1.method = "POST"
oWindowName.document.form1.submit()

ie: form get
oWindowName.document.form1.action = "yourURL.htm?P1="+parm1+"&P2"+parm2
oWindowName.document.form1.method = "GET"
oWindowName.document.form1.submit()
Michael McLain
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform