[Project_owners] Online/Offline

Adam Judson adamsplugins at gmail.com
Fri Apr 14 15:52:54 EDT 2006

Can you ping the server on start up with xhttp?

Seems like you need to check for success regardless.


On 14/04/06, Brian King <brian at mozdev.org> wrote:
> Adam Judson wrote:
> > Why do you want to test for this?
> >
> > Do you really want to know if they can see site X?  I can have a live
> > connection but if my proxy fails etc. I effectively don't...
> >
> > I wonder if you are trying to solve the right problem.
> I'm sending data to the server via XMLHttpRequest. If the user is
> offline, the data needs to be queued for when they do go online.
> I could check the request failure for certain characteristics, but it
> makes more sense to me to check the online status *before* sending the
> data. In that case I can just bypass the send and store it.
> --
> Brian King
> www.mozdev.org - free project hosting for the Mozilla community
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners

More information about the Project_owners mailing list