Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Posts: 3
Name: Kirk
Trades: 0
Does the setTimeout() function pause all code? Or will it continue running the code underneath it even before the timer has completed?
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
Olynsky is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-14-2008, 11:48 AM Re: Do timers stop all code?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,518
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-15-2008, 04:57 AM Re: Do timers stop all code?
Experienced Talker

Latest Blog Post:
Long time no … erm post?
Posts: 45
Name: Matthew Bagley
Trades: 0
as chrishirst said if you post your JS we can tell if it will / wont
__________________
Matthew Bagley
Paramiliar Design Studios

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Paramiliar is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Do timers stop all code?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.30494 seconds with 12 queries