pui.click question - RESOLVED
Posted: Mon Feb 28, 2011 9:38 pm
I'm having some weird things occur in a test app I'm working with.
I have a menu bar, and when clicking, the onoptionclick uses pui.click(value). The values are the ID of buttons(from the choicevalues of the menu bar).
When some of the items are selected on the menu bar, the proper button is clicked and the proper "click action" occurs for that button. On some, it does not seem to work. I put alert(value); along with the pui.click(value); of the onoptionclick event, and I can see the proper ID of the button is being used, but for some reason, the button that is supposed to be clicked does not get clicked, and instead it "acts" like I pressed submit.
For testing, I placed a simple button, and in it's click event I just put an alert("testing"); when I press that button, I see the alert. When I use the menu bar to pui.click that same button, it does not show the "testing" alert.
Is there another way to click a button using script that I should be using? Also, I had assumed that I could make the buttons "hidden" and they would still "click". Is that correct? (i've tried both hidden and visible with same results).
THANKS
I have a menu bar, and when clicking, the onoptionclick uses pui.click(value). The values are the ID of buttons(from the choicevalues of the menu bar).
When some of the items are selected on the menu bar, the proper button is clicked and the proper "click action" occurs for that button. On some, it does not seem to work. I put alert(value); along with the pui.click(value); of the onoptionclick event, and I can see the proper ID of the button is being used, but for some reason, the button that is supposed to be clicked does not get clicked, and instead it "acts" like I pressed submit.
For testing, I placed a simple button, and in it's click event I just put an alert("testing"); when I press that button, I see the alert. When I use the menu bar to pui.click that same button, it does not show the "testing" alert.
Is there another way to click a button using script that I should be using? Also, I had assumed that I could make the buttons "hidden" and they would still "click". Is that correct? (i've tried both hidden and visible with same results).
THANKS