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
[QUOTE="Dr J R Stockton, post: 4965741"] In comp.lang.javascript message <c3c66281-7ec8-45e7-9f77-c8c7e9d2ba89@l1 g2000hsa.googlegroups.com>, Thu, 7 Feb 2008 07:58:16, [email]avicalc@gmail.com[/email] posted: Others seem not to have observed that the implication of your wording of (1) and (2) is that (3) is required to be applied to (2) and not _necessarily_ to (1). You can use setTimeout or setInterval, terminating when complete; but that only gives an illusion of demonstrating actual progress. Examples in <URL:[URL]http://www.merlyn.demon.co.uk/js-dates.htm[/URL]> ff., particularly in js-date0.htm#TaI and js-date2.htm#RC. To demonstrate real progress in processing the JSON data, ISTM that you should divide it into chunks which you expect to take a fraction of a second, each executed in response to a short timeout (say 10 ms). Each chunk ends by calling for a screen write indicating progress, and the timeout allows that to actually occur. It's a good idea to read the newsgroup c.l.j and its FAQ. See below. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
Display Progress Bar/setTimeout()
Top