webOS Nation Forums >  webOS apps and software >  webOS development > Time and app?
Time and app?

  Reply
 
LinkBack Thread Tools Display Modes
Old 02/15/2010, 03:36 PM   #1 (permalink)
Member
 
kdubhotsauce's Avatar
 
Join Date: Feb 2009
Location: La Mirada, California
Posts: 102
Likes Received: 2
Thanks: 22
Thanked 20 Times in 13 Posts
Default Time and app?

Could anyone give me the code so that after a designated amount of time, the app closes?
kdubhotsauce is offline   Reply With Quote
Old 02/16/2010, 09:55 PM   #2 (permalink)
Member
 
djpushplay's Avatar
 
Join Date: Aug 2009
Location: Los Angeles
Posts: 159
Likes Received: 0
Thanks: 21
Thanked 11 Times in 11 Posts
Default

You can use:
setTimeout(referenceToFunction,timeInMilliseconds);

to wait a specified amount of time. For closing the app, see the discussion at:
http://forums.precentral.net/web-os-...correctly.html
__________________
mobigamedepot.com
djpushplay is offline   Reply With Quote
Reply

 

Tags
app, close, time

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0