[jQuery] Re: Asynch problems with code. WAS: User Environment Detection Suite.

2007-08-24 Thread Andy Matthews
2007 6:19 PM To: jQuery (English) Subject: [jQuery] Re: Asynch problems with code. WAS: User Environment Detection Suite. I'm not sure I get the problem (correct me if I'm wrong!), but I'll give it a go. It sounds like you're not putting the "stop timer" code in the ca

[jQuery] Re: Asynch problems with code. WAS: User Environment Detection Suite.

2007-08-24 Thread Herr M.
I'm not sure I get the problem (correct me if I'm wrong!), but I'll give it a go. It sounds like you're not putting the "stop timer" code in the callback for the request. In jQuery, I would do like this: var startTime = ( new Date() ).getTime(); $.get("url_to_exact_size_file.html", function(){