Page 1 of 1

Pages not always changing on button click

Posted: Tue Dec 02, 2014 10:37 am
by Bob Fludder

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 ?


Pages not always changing on button click

Posted: Tue Dec 02, 2014 10:54 am
by Bob Fludder

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


Pages not always changing on button click

Posted: Tue Dec 02, 2014 11:30 am
by Illya Stepanov

Do you mean in builder or with JavaScript code?


Pages not always changing on button click

Posted: Tue Dec 02, 2014 11:31 am
by Illya Stepanov

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


Pages not always changing on button click

Posted: Tue Dec 02, 2014 11:57 am
by Bob Fludder

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


Pages not always changing on button click

Posted: Tue Dec 02, 2014 9:48 pm
by Bob Fludder7256823

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


Pages not always changing on button click

Posted: Wed Dec 03, 2014 12:18 am
by Yurii Orishchuk

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.