:: Forum >>
simulate button click
This may be an easy question, but I cant seem to figure it out. I am wondering if I can programaticly fire the onControlClicked event of a button from another javascript function.
My first thought was to create a function that contains all the things I want to do, and then fire the function inside the buttons onControlClicked event. Then I could just call the function from anywhere.
This aproach seemed like a round about way at this. If I put several things inside the onControlClicked event it seems like there should be a way to call it later.
Please help.
Aaron Todd
Wednesday, February 27, 2008
You can just call it like any other method -
button.onControlClicked = function(){...};
...
button.onControlClicked();
Alex (ActiveWidgets)
Thursday, February 28, 2008
I knew it was something that I just really overlooked.
Thanks
Aaron Todd
Thursday, February 28, 2008
This topic is archived.
Back to support forum
Forum search