Page 1 of 1

show/hide content on timer

Posted: Tue Mar 10, 2015 4:51 am
by Jay Maiden

Hi I'm am a Web designer building an app I have very little knowledge of Java how do I show hide content on a timer basis. For example the home page will change every 24 hrs . How do I go about that


show/hide content on timer

Posted: Tue Mar 10, 2015 5:16 am
by She

Hi Jay,

try this code in pageshow event:

setTimeout(function()
/change the Settings1 to your 2nd page/
{navigateTo ('Settings1');},5000);

Goodluck!


show/hide content on timer

Posted: Mon Mar 23, 2015 5:50 pm
by Jay Maiden

Coded and works perfectly but what is that unit of time you wrote 5000?


show/hide content on timer

Posted: Mon Mar 23, 2015 6:36 pm
by Bruce Stuart

It's the number of milliseconds - so 5000 is 5 seconds.....adjust up or down at will.... :-)