Garann,

A very simple way to do it is by having a page following this pseudo-code:

1. <script>var start = current time </script>
2. write some HTML (or JavaScript) comment containing n characters
3. <script>var end = current time </script>
4. <script>store 'end-start' in a hidden field of some HTML form and post
back the form</script>

Because browsers execute JavaScript statement as they are received from the
server, if you flush the server output right after steps (1) and (3), you
will get in the hidden field the time it takes to send n characters to the
browsers (a very good approximation of it, anyway).

Cheers,
Boris
_________________________________________________________________
TICL - a RAD toolkit for server-side Java
http://www.kobrix.com 


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Means, Garann R.
Sent: Wednesday, October 16, 2002 4:59 PM
To: [EMAIL PROTECTED]
Subject: Checking client connection speed

Hi,

Is there any simple means of getting the client's connection speed? I've
looked through the Servlets documentation as well as the standard
documentation and if the answer is there, I've missed it. But admittedly,
I'm no networking expert. A little push in the right direction would be a
great help.

Thanks in advance,
Garann Rose Means


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to