Page 1 of 1

Page reloads on select click when i come from another page.

Posted: Thu Mar 30, 2017 1:42 pm
by Tom7044357

I have a select that i fill with values from a restservice.

However, the problem is, that if i come from another page and i click on a select that exceeds the height of the mobile screen it shows the values shortly,then reloads the page. If i reload the page with location.reload() via a button, or if i set that page as start up page it works fine.

Does anyone have an idea how this can be fixed?


Page reloads on select click when i come from another page.

Posted: Thu Mar 30, 2017 1:59 pm
by Serhii Kulibaba

Hello Ron,

Please clarify, do you use any event handler on the select component?
Please also check if there are any errors in the browser console. You can learn here: https://docs.appery.io/docs/using-bro... how to open the console.


Page reloads on select click when i come from another page.

Posted: Thu Mar 30, 2017 2:42 pm
by Tom7044357

Hi Sergiy,

I have a event handler on the select component, but if i delete it, it stil reloads the page. Only now I noticed i got a Synchronous XMLHttpRequest warning so i suspect that's the problem.

Thanks for the help and fast reply.


Page reloads on select click when i come from another page.

Posted: Fri Mar 31, 2017 8:18 am
by Serhii Kulibaba

Do you run any JS code or service on the page show event of that page?
If you - you have to know, the JQM runs a page show event after closing a select component.
Another workaround is: to set a property "native" = true for that select component