Javascript setTimeout
by "Charlton, Mark" <Mark.Charlton(at)sgcna.com>
|
| Date: |
Wed, 15 Nov 2000 11:39:18 -0500 |
| To: |
"'hwg-languages(at)hwg.org'" <hwg-languages(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
Hi
Following on from the VBScript Wait I have been trying to get a javascript
script to write a few lines and then pause and write a few more, using the
setTimeout and running a function which uses document.write
My attempts are available at
http://www.mcwebtree.com/hwg/mctest4.htm
http://www.mcwebtree.com/hwg/mctest4.download.me
(it really wants to process this, regardless of extension, txt failed so I
chose this!)
and
http://www.mcwebtree.com/hwg/mctest3.htm
http://www.mcwebtree.com/hwg/mctest3.download.me
This has a logic error I have just created but cannot find DOH!
BE WARNED THEY ARE NOT THAT STABLE, THEY KILL NN4.75
Q1) Why does the function printSlowly clear the page when called
Q2) Why then doesn't the second script ever get executed. Initially I had
all the scripts on one page and then when the first script ran the second
said it couldn't be found, so I tried to write it to the second page, and
now it will run if I reload the stage 2 page, sometimes.
Q3) Why does the second display, (output from printSlowly()), print with a
space between each character?
Q4) Is there any other way I can get a page to render bit by bit using JS?
Thanks for your help, (if you can understand my problem)
Mark
=============================================
Mark Charlton
Mailto:Mark.Charlton(at)sgcna.com
Phone: 508-795-2546
Fax: 508-795-5976
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.