HI Geoff,

we successfuly used Offline ( https://github.com/hubspot/offline ) to
support that in our apps.

Cheers
Felix

2016-05-03 10:52 GMT+02:00 JumpStart <geoff.callender.jumpst...@gmail.com>:

> Has anyone tried modifying Tapestry’s client-side portion to detect a poor
> internet connection and, perhaps, pop up a dialog? I need it for a Tapestry
> app that’s used on mobile devices.
>
> I’m thinking that when there’s a page request or component event request,
> the javascript could send a “ping” request to the server-side, with a
> timeout of, say, 1 second.
>
> - If the “ping” request times out, then the javascript could pop up a
> dialog explaining that the internet connection is currently unreliable. The
> dialog would have only one button: OK. The page request or component event
> request will not be sent.
>
> - Otherwise (i.e. the “ping” request succeeds), the javascript would
> proceed as normal (i.e. sends the page request or component event request).
>
> Of course the internet connection could still degrade while the page
> request or component event request is in progress but, in the environments
> this app will be used, the probability of this is low if the “ping” test
> has succeeded immediately before it.
>
> Geoff
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to