Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Pages not always changing on button click

Hi. Just having some issues (sometimes) with a Motorola mc3200. Its a handheld scanner running Android 4.1.?. I'v got a small app (3 pages) with a couple of buttons and input fields. The scanner works and populates the input fields perfectly but the problem is with the buttons. I have a click event on them to change pages. Sometimes it will work but mostly not. I tried putting the page change into javascript with an alert. The alert always works but doesn't always change page. Any ideas ?

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Pages not always changing on button click

I've often wondered what a virtual click is. How is it triggered ?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Pages not always changing on button click

Do you mean in builder or with JavaScript code?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Pages not always changing on button click

More info about jQuery Mobile events is here in our docs - http://devcenter.appery.io/documentat...

Bob Fludder
Posts: 0
Joined: Fri Sep 14, 2012 1:09 am

Pages not always changing on button click

Ahh. Makes sense. Thank you I'll give it a try

Bob Fludder7256823
Posts: 0
Joined: Tue Dec 02, 2014 9:48 pm

Pages not always changing on button click

Been thinking about this. My problem is more that the page doesn't change (navigate to) but the event does fire. Have 2 lines in the javascript. First line is alert second is navigate to.. I get the alert message but the page doesn't change. As i said only 3 pages. when I go from page 1 to page 2 works every time, 1 to 3 is good, 2 back to 1 fails frequently and 3 to 1 works. Nothing showing on the console. I will double check all my javascript again as maybe something has failed on page 2 but just not reported but if you have any other ideas let me know. Thanks

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Pages not always changing on button click

Hi Bob,

Strange problem.

Please show us your JS code that's you use in this JS event handler.

Also please try to add alert after Apperyio.navigateTo(). Then test it and take a look if second alert will be appear.

Regards.

Return to “Issues”