Jay Maiden
Posts: 0
Joined: Tue Mar 10, 2015 4:51 am

show/hide content on timer

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

She
Posts: 0
Joined: Wed Oct 08, 2014 12:46 am

show/hide content on timer

Hi Jay,

try this code in pageshow event:

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

Goodluck!

Jay Maiden
Posts: 0
Joined: Tue Mar 10, 2015 4:51 am

show/hide content on timer

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

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

show/hide content on timer

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

Return to “Issues”