Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Submit another page
Message
 
À
11/12/1999 06:31:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00302201
Message ID:
00302622
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform