General information
Category:
Internet applications
>>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only