All,
i want to avoid hard coding refs to buttons etc in my code but cant seem to work out how to pass a pointer to the button that triggered the action…
Current set up – button on canvas called “Test_btn” with a custom Javascript function that currently is called like so
ItemClicked('Test_btn')
which supplies the instance name of the button to the ItemClicked function which is then displayed in an alert prompt.
function ItemClicked(ItemRef) {
alert(ItemRef);
}
Im sure this is easy but cant seem to get the right combination…..
Anybody done this before?
Thanks