3.2.0

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
February 27,
You can just call it like any other method -

button.onControlClicked = function(){...};

...
button.onControlClicked();
Alex (ActiveWidgets)
February 28,
I knew it was something that I just really overlooked.

Thanks
Aaron Todd
February 28,

This topic is archived.

See also:


Back to support forum