Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Order of script-processing


  • From: glenn_lanier at netzero.net (Glenn E. Lanier, II)
  • Subject: [Javascript] Order of script-processing
  • Date: Mon Sep 26 08:51:30 2005

I read your flow as three separate routines:
 
show()
SetTimer(slow(),5); // Start in 5 seconds.
SetTimer(hide(),10); // Start in 10 seconds.
 
What I am suggesting is only one timer:
 
show()
SetTimer(slow(), 5);
 
slow()
{
.....
 
hide();
}
 
That way, if slow takes 30 seconds, then the image isn't hidden early.
 
--G

-----Original Message-----
From: javascript-bounces@xxxxxxxxxx [mailto:javascript-bounces@xxxxxxxxxx] On
Behalf Of SkyScanner
Sent: Monday, September 26, 2005 8:44 AM
To: [JavaScript List]
Subject: Re: [Javascript] Order of script-processing


Huh? That's exactly what I did do...  show:slow:hide
 
Tim in Ireland.

----- Original Message ----- 
From: Glenn E. Lanier, II <mailto:glenn_lanier@xxxxxxxxxxx>  
To: '[JavaScript List]' <mailto:javascript@xxxxxxxxxx>  
Sent: Monday, September 26, 2005 1:52 PM
Subject: RE: [Javascript] Order of script-processing
showGif('icon_5');
setTimeout("slowRoutine()",10);
setTimeout("hideGif('icon_5')",10);

 [GEL>] Why don't you move hideGif() to the end of slowRoutine? That way, if it
takes more time on a slower machine, your image isn't hidden early. 



  _____  




_______________________________________________
Javascript mailing list
Javascript@xxxxxxxxxx
https://lists.LaTech.edu/mailman/listinfo/javascript


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20050926/32cbcd7d/attachment.html