Page 1 of 1

Click event on button not fires !

Posted: Wed Feb 05, 2014 9:55 am
by Luci Emilian

I have two buttons . In the first button i put a javascript that invoke a click event on second button but not happening (in second button i have an alert message) .
What is the problem ?


Click event on button not fires !

Posted: Wed Feb 05, 2014 10:26 am
by Kateryna Grynko

Hi Luci,

Why don't you just click the second button?


Click event on button not fires !

Posted: Wed Feb 05, 2014 10:39 am
by Luci Emilian

Because in my project i have this buttons invisible and i want to make this programatically .


Click event on button not fires !

Posted: Wed Feb 05, 2014 10:43 am
by Luci Emilian

I put this javascript code in the click event of first button :

Appery('mobilebutton_2').click();


Click event on button not fires !

Posted: Wed Feb 05, 2014 10:44 am
by Luci Emilian

what is wrong ?


Click event on button not fires !

Posted: Wed Feb 05, 2014 11:31 am
by Kateryna Grynko

Luci,

It's better to add the alert code as a custom JavaScript function and call it on button click.


Click event on button not fires !

Posted: Wed Feb 05, 2014 12:06 pm
by Luci Emilian

Appery('mobilebutton_2').click();
Should have this line of code work, right?


Click event on button not fires !

Posted: Wed Feb 05, 2014 12:28 pm
by Kateryna Grynko

Should be working, we'll check this.


Click event on button not fires !

Posted: Wed Feb 05, 2014 1:45 pm
by Luci Emilian

Solved! I tried on a new project with one page.
There seems to be an incompatibility of projects from one version to another.
On every page of the old project if we put this code was not working.
In the new project works. Mystery for now :).
Thanks for your efforts!


Click event on button not fires !

Posted: Wed Feb 05, 2014 2:07 pm
by Kateryna Grynko

Luci,

Thank you for the update! Glad it's working.