Reply
Do timers stop all code?
Old 04-14-2008, 09:53 AM Do timers stop all code?
Olynsky's Avatar
Junior Talker

Posts: 3
Name: Kirk
Does the setTimeout() function pause all code? Or will it continue running the code underneath it even before the timer has completed?
Olynsky is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-14-2008, 10:48 AM Re: Do timers stop all code?
chrishirst's Avatar
Super Moderator

Posts: 11,866
Location: Blackpool. UK
javascript programs are typically event driven so if your timeout code stops events from being handled. Yes it will

It it doesn't stop events, than No it won't.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-15-2008, 03:57 AM Re: Do timers stop all code?
Experienced Talker

Latest Blog Post:
Long time no … erm post?
Posts: 45
Name: Matthew Bagley
as chrishirst said if you post your JS we can tell if it will / wont
__________________
Matthew Bagley
Paramiliar Design Studios
Who am I | Free Layouts |Website Development | UK SEO
Paramiliar is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Do timers stop all code?
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12965 seconds with 13 queries