Do you have a little bit more pseudocode.  And I want this to be
transparent as part of the application, E.g. I want the user to visit
the home page and then we calculate the speed and log it.

MyHomePage extends Page {

  public String onDomReady() {   

     return "wicketAjaxGet('/theFile');"
     // or jquery?
  }

}

theFile MountPoint extends Page {
  
}

-----Original Message-----
From: Martin Grigorov [mailto:[email protected]] 
Sent: Thursday, October 13, 2011 3:06 AM
To: [email protected]
Subject: Re: Detect Connection speed with Wicket or something similar

I think you need to do download of a file to get this measure.
E.g. onDomReady you fire an ajax request back to the server to a
predefined mount path which will init the download of relatively big
file.
When the ajax request ends you need to send a second one with the time
needed to do the first ajax request. The rest is pure maths to calculate
the speed.

On Wed, Oct 12, 2011 at 11:19 PM, Brown, Berlin [GCG-PFS]
<[email protected]> wrote:
> For our wicket applications, we want to detect the browser connection 
> speed, do you know of a library or approach for detecting the browser 
> speed.
>
> There is a thing in wicket called AjaxTimerBehavior that I could use 
> but it is a little flaky and not built for the purpose of detetching 
> browser speed.
>
> Do you have any ideas how to check this?
>
> I thought about using jQuery also, but wouldn't know how?
>



--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to