Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

buttons onclick

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
0
0
US
Hi all,

Is it possible that clicking on one button will make another submit button get clicked?

The "fake" button is form1. The "real" submit button is in form2 and it is hidden by default. Click on the fake button will make the real button get clicked and then hide the fake button.

There is a JSF action associates with this button in form2. Just get form2 submitted won't do the job I need. The button must be clicked to perform some actions.

Thank you in advance.
 
Never mind, it's document.all("Button2").click()

Thanks.
 
I'd avoid the all collection at all costs. You could use the click() function of the button after referring to it properly, or you could simply call the submit() function of the form itself.

----
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top