Information générale
Catégorie:
Applications Internet
>>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()
Thank you very much.
Mark
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement