Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
Display Progress Bar/setTimeout()
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Joost Diepenmaat" data-source="post: 4965699"><p>Javascript is single-threaded. If you have a single long running</p><p>function you'll have to wait.</p><p></p><p>If you don't want that, you'll have to break up the function (and</p><p>javascript makes it /relatively/ easy to do so) using timeout callbacks,</p><p>for instance.</p><p></p><p>See setTimeout()</p><p><a href="http://developer.mozilla.org/en/docs/DOM:window.setTimeout">http://developer.mozilla.org/en/docs/DOM:window.setTimeout</a></p><p></p><p>I could go into /much/ more detail, but I think that would take a couple</p><p>of hours to write.</p><p></p><p>Joost.</p></blockquote><p></p>
[QUOTE="Joost Diepenmaat, post: 4965699"] Javascript is single-threaded. If you have a single long running function you'll have to wait. If you don't want that, you'll have to break up the function (and javascript makes it /relatively/ easy to do so) using timeout callbacks, for instance. See setTimeout() [URL]http://developer.mozilla.org/en/docs/DOM:window.setTimeout[/URL] I could go into /much/ more detail, but I think that would take a couple of hours to write. Joost. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
Display Progress Bar/setTimeout()
Top