Hi, I have a customer request, with which I feel unable to deal with. The Prototype+Scripty application I have does lots of its work via periodical executers. Now the customer wants that the application still does it job after standby of the computer. I am really lost where to start investigating if it is possible at all. It seems for me that the javascript engine stops and is not restarted, so I cant do any javascript event tricks. I am open for any good ideas :-) .: Fabian _____________________________________________________________________ Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren! http://www.digitaledienste.web.de/freemail/club/lp/?lp=7 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
That isn''t possible. Javascript is a client side scripting language, so if the browser is closed (or in this case the entire pc is shutdown) the scripts you were running stop. To take a simple example: You''re trying to play a CD without a cd- player. What you could try though is saving the current variables to the server on exiting the page (onUnload) and using those when the user logs back in. But there is no way to know if a pc went in standby or just powered off. Greetz, Wizz On Jan 25, 9:56 am, Fabian Lange <fabian.la...-S0/GAf8tV78@public.gmane.org> wrote:> Hi, > I have a customer request, with which I feel unable to deal with. > The Prototype+Scripty application I have does lots of its work via periodical executers. > Now the customer wants that the application still does it job after standby of the computer. > I am really lost where to start investigating if it is possible at all. It seems for me that the javascript engine stops and is not restarted, so I cant do any javascript event tricks. > > I am open for any good ideas :-) > > .: Fabian > _____________________________________________________________________ > Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren!http://www.digitaledienste.web.de/freemail/club/lp/?lp=7--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Wizz, sorry that I do not accept your CD player example. First the PC isnt powerd down, it is going into standby. Thus also the browser is not closed. Thus no onUnload happens. The point is that rich clients will resume trying to do networking and as soon networking is up again as well will successfuly handle this. So actually it might be only a problem doing correct error handling for the split seconds the network might be down while the app, here our javascript is still running. Anyone understanding my use case? Or more answers like: "you cant drive your car with no fuel" .: Fabian -----Ursprüngliche Nachricht----- Von: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Gesendet: 25.01.08 12:40:32 An: "Ruby on Rails: Spinoffs" <rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Betreff: [Rails-spinoffs] Re: resume periodical executer after PC standby? That isn''t possible. Javascript is a client side scripting language, so if the browser is closed (or in this case the entire pc is shutdown) the scripts you were running stop. To take a simple example: You''re trying to play a CD without a cd- player. What you could try though is saving the current variables to the server on exiting the page (onUnload) and using those when the user logs back in. But there is no way to know if a pc went in standby or just powered off. Greetz, Wizz On Jan 25, 9:56 am, Fabian Lange <fabian.la...-S0/GAf8tV78@public.gmane.org> wrote:> Hi, > I have a customer request, with which I feel unable to deal with. > The Prototype+Scripty application I have does lots of its work via periodical executers. > Now the customer wants that the application still does it job after standby of the computer. > I am really lost where to start investigating if it is possible at all. It seems for me that the javascript engine stops and is not restarted, so I cant do any javascript event tricks. > > I am open for any good ideas :-) > > .: Fabian > _____________________________________________________________________ > Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren!http://www.digitaledienste.web.de/freemail/club/lp/?lp=7_______________________________________________________________________ Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On 25.1.2008, at 14.00, Fabian Lange wrote:> > Hi Wizz, > sorry that I do not accept your CD player example. > > First the PC isnt powerd down, it is going into standby. Thus also > the browser is not closed. Thus no onUnload happens. > > The point is that rich clients will resume trying to do networking > and as soon networking is up again as well will successfuly handle > this. So actually it might be only a problem doing correct error > handling for the split seconds the network might be down while the > app, here our javascript is still running. > > Anyone understanding my use case? > Or more answers like: "you cant drive your car with no fuel"Just to make it sure, Fabian means that the periodical execution will keep on _after_ the computer wakes up and the browser window is restored, right? Not during the sleep. I have no idea whether that works or not, but since the state of the computer should be exactly the same as before going to sleep, I wouldn''t be surprised if it did. //jarkko -- Jarkko Laine http://jlaine.net http://dotherightthing.com http://www.railsecommerce.com http://odesign.fi --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi there, We''ve been working on a prototype powered PHP widget framework (lets you write PHP applications a bit like the Java Echo 2 framework) and although I hadn''t tested going to standby before now, just did a quick test and our applications continue to run fine. In fact even hibernate worked finewhich was a great surprise. The periodic timers just seem to kickstart themselves without any issues at all (no human intervention required by us). We don''t use sessions in our application, maybe your trouble is with sessions instead? regards Gareth On Jan 25, 12:27 pm, Jarkko Laine <jar...-k1O+Gnc6WpmsTnJN9+BGXg@public.gmane.org> wrote:> On 25.1.2008, at 14.00, Fabian Lange wrote: > > > > > Hi Wizz, > > sorry that I do not accept your CD player example. > > > First the PC isnt powerd down, it is going into standby. Thus also > > the browser is not closed. Thus no onUnload happens. > > > The point is that rich clients will resume trying to do networking > > and as soon networking is up again as well will successfuly handle > > this. So actually it might be only a problem doing correct error > > handling for the split seconds the network might be down while the > > app, here our javascript is still running. > > > Anyone understanding my use case? > > Or more answers like: "you cant drive your car with no fuel" > > Just to make it sure, Fabian means that the periodical execution will > keep on _after_ the computer wakes up and the browser window is > restored, right? Not during the sleep. > > I have no idea whether that works or not, but since the state of the > computer should be exactly the same as before going to sleep, I > wouldn''t be surprised if it did. > > //jarkko > > -- > Jarkko Lainehttp://jlaine.nethttp://dotherightthing.comhttp://www.railsecommerce.comhttp://odesign.fi--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry.... worked fine with Firefox and Internet Explorer (running under Vista), don''t have any other browsers on this pc to test them but looks like cross-browser is good under Windows at least. On Jan 25, 2:57 pm, GarethAtFlignet <garethinwa...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi there, > > We''ve been working on a prototype powered PHP widget framework (lets > you write PHP applications a bit like the Java Echo 2 framework) and > although I hadn''t tested going to standby before now, just did a quick > test and our applications continue to run fine. In fact even hibernate > worked finewhich was a great surprise. > > The periodic timers just seem to kickstart themselves without any > issues at all (no human intervention required by us). > > We don''t use sessions in our application, maybe your trouble is with > sessions instead? > > regards > Gareth > > On Jan 25, 12:27 pm, Jarkko Laine <jar...-k1O+Gnc6WpmsTnJN9+BGXg@public.gmane.org> wrote: > > > On 25.1.2008, at 14.00, Fabian Lange wrote: > > > > Hi Wizz, > > > sorry that I do not accept your CD player example. > > > > First the PC isnt powerd down, it is going into standby. Thus also > > > the browser is not closed. Thus no onUnload happens. > > > > The point is that rich clients will resume trying to do networking > > > and as soon networking is up again as well will successfuly handle > > > this. So actually it might be only a problem doing correct error > > > handling for the split seconds the network might be down while the > > > app, here our javascript is still running. > > > > Anyone understanding my use case? > > > Or more answers like: "you cant drive your car with no fuel" > > > Just to make it sure, Fabian means that the periodical execution will > > keep on _after_ the computer wakes up and the browser window is > > restored, right? Not during the sleep. > > > I have no idea whether that works or not, but since the state of the > > computer should be exactly the same as before going to sleep, I > > wouldn''t be surprised if it did. > > > //jarkko > > > -- > > Jarkko Lainehttp://jlaine.nethttp://dotherightthing.comhttp://www.railsecommerce....--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---