I would have said "can't be done" so
#1. How do you do that?!
#2. There is a good chance that LocalDB connection is related / managed by a 
browser thread.

R

On 15 janv. 2011, at 02:19, Alon Raskin <[email protected]> wrote:

> Hi Everyone,
> 
> I know its a long shot but I wanted to see if anyone had any workarounds/tips 
> on how to fix the following:
> 
> I am trying to trigger some code when the user goes from offline to online. 
> The 'catch' is that the user may not even be in the browser. Here is the 
> scenario:
> 
> 1. User opens page
> 2. Leaving the page open, user navigates away from the browser while still 
> leaving the page open.
> 3. User goes offline (airplane mode)
> 4. Later user goes back online 
> 5. At that point, even if the browser is not on,I want to read a table in the 
> db and do some xmlhttprequest.
> 
> Before you say it can't be done I have almost got it working. I can update 
> the dom and make xmlhttprequest calls without having the browser open. The 
> only thing that doesn't seem to work is the Db reads. For some reason when 
> the online event is fired all the db calls fail. Not sure if it has to do 
> with the fact that the browser is running in a background thread and it won't 
> allow for any asynch processing. That makes sense except the xmlhttprequest 
> are also asynch and they work great.
> 
> Your thoughts/comments are appreciated.
> 
> Alon
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "iPhoneWebDev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/iphonewebdev?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to