Re: Show countdown from 10 to 0 seconds
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Show countdown from 10 to 0 seconds

From: Tim Roberts <timr@probo.com>
Date: Thu Jul 28 2005 - 08:21:16 CEST

SOR <webmaster@sparesorrepair.co.uk.INVALID> wrote:

><comp.lang.php , Simon , spambucket@example.com>
><3kpr8eFvgb4nU1@individual.net>
><Wed, 27 Jul 2005 17:32:09 +0100>
>
>> > - print 10 on the screen
>> > - while loop timed for a one second delay
>> > - print 9 on the screen
>> > - repeat until 0
>> >
>> > But using some sort of witty animated gif to amuse the user until the
>> > refresh takes place would probably be much better .
>>
>> Have you even tried it yourself to see what happens?
>
>Of course not :-)

I'll tell you what would happen. The user would see nothing at all for a
ten-second delay, followed by "10 9 8 7 6 5 4 3 2 1 0", displayed all at
once.

HTTP is not an "interactive" facility. The contents of a page are batched
up and transmitted in large chunks.

-- 
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc.
Received on Mon Oct 24 02:09:00 2005