Page 2 of 2

How to hide the spinning wheel ?

Posted: Wed Feb 19, 2014 2:31 pm
by marieall

Please can you help me with my message above?
I really don't understand why, but I can't access my "airports" section from the main menu. (see message above)

I am about to publish the app and this is holding me back :(


How to hide the spinning wheel ?

Posted: Wed Feb 19, 2014 3:36 pm
by Maryna Brodina

Hello! We're working on your request.


How to hide the spinning wheel ?

Posted: Wed Feb 19, 2014 3:38 pm
by marieall

thank you :)


How to hide the spinning wheel ?

Posted: Wed Feb 19, 2014 5:19 pm
by Maryna Brodina

Most likely you have error or typo in JS. Please check console. Are there any errors?


How to hide the spinning wheel ?

Posted: Thu Feb 20, 2014 11:10 am
by marieall

So I tested different things and I don't understand why, because it used to works, but the following JS code (for displaying a message if no internet connection when trying to access the database in the airport section) seems to block the process:
if (states[Connection.NONE]){
alert('Geen internet :(');
}

Do you know why?
If I take it off, it is working, otherwise, the first page of airport section doesn't display.


How to hide the spinning wheel ?

Posted: Thu Feb 20, 2014 11:13 am
by marieall

As for the code (advised by Appery a little earlier in this discussion)for displaying the spinning wheel, should I put it on event load, before load, or show?


How to hide the spinning wheel ?

Posted: Thu Feb 20, 2014 1:22 pm
by Kateryna Grynko

Hi Marie,

I'd recommend Load. You can check the Internet connection using online/offline event in Appery.io UI.


How to hide the spinning wheel ?

Posted: Fri Feb 21, 2014 10:25 am
by marieall

Hi Katya,

1-Regarding the spinning wheel
The following code advised by Appery above doesn't work, and even block the access to my page : Airports-List of Country

$.mobile.loading("show").attr("style", "display:block");

2-As for the internet connection checking, I already tried the online/offline event, with an action "run js" for displaying a small pop up message.

Even if I'm not setting the event on the home page, but on the page A1_Airports_Country (1st page after home page when selecting "AIrports" the pop up message only appears on the home page.
I want the pop up window to open only when the user tries to access the specific section of Airports, which is the only section for which internet is needed.
Any suggestion on how to set the pop as I wish?


How to hide the spinning wheel ?

Posted: Fri Feb 21, 2014 6:08 pm
by Maryna Brodina

Hello! Could you give us your public app link and steps to reproduce?