Tom7044357
Posts: 0
Joined: Thu Aug 14, 2014 4:58 pm

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

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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.

Tom7044357
Posts: 0
Joined: Thu Aug 14, 2014 4:58 pm

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

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.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

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

Return to “Issues”