Luci Emilian
Posts: 0
Joined: Wed Feb 05, 2014 9:55 am

Click event on button not fires !

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 ?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Click event on button not fires !

Hi Luci,

Why don't you just click the second button?

Luci Emilian
Posts: 0
Joined: Wed Feb 05, 2014 9:55 am

Click event on button not fires !

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

Luci Emilian
Posts: 0
Joined: Wed Feb 05, 2014 9:55 am

Click event on button not fires !

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

Appery('mobilebutton_2').click();

Luci Emilian
Posts: 0
Joined: Wed Feb 05, 2014 9:55 am

Click event on button not fires !

what is wrong ?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Click event on button not fires !

Luci,

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

Luci Emilian
Posts: 0
Joined: Wed Feb 05, 2014 9:55 am

Click event on button not fires !

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Click event on button not fires !

Should be working, we'll check this.

Luci Emilian
Posts: 0
Joined: Wed Feb 05, 2014 9:55 am

Click event on button not fires !

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!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Click event on button not fires !

Luci,

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

Return to “Issues”