How can I stop a periodical updater? Here''s how I start it: <script type="text/javascript" charset="utf-8"> function initial(sender){ var streamer = new Ajax.PeriodicalUpdater(''ajaxcontentarea'', ''inc/ datenlader.php?sender=''+sender, { method: ''get'', frequency: 5});} </script> The call streamer.stop(); don''t stop the periodical updater. Can u help me? --~--~---------~--~----~------------~-------~--~----~ 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 Jun 24, 2007, at 5:51 AM, flughund wrote:> > How can I stop a periodical updater? Here''s how I start it: > > <script type="text/javascript" charset="utf-8"> > function initial(sender){ > var streamer = new Ajax.PeriodicalUpdater(''ajaxcontentarea'', ''inc/ > datenlader.php?sender=''+sender, { method: ''get'', frequency: 5});} > </script> > > The call streamer.stop(); don''t stop the periodical updater. Can u > help me? >You''re so close! Try streamer.dispose(); instead. Walter --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
thanks Walter, but still not working. I get the error "streamer not defined" (by firefox). Heres tha page: http://www.radiovote.ch/ whats wrong? I u can help... :-) Dave --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Oh, I see what''s going on here. You are declaring the variable inside an anonymous function, and then trying to destroy it outside that function. It doesn''t exist outside that context. Try declaring the variable first, outside your function, then set a value to it inside your function, then try destroying it. Walter On Jul 7, 2007, at 2:41 AM, flughund wrote:> > thanks Walter, > > but still not working. I get the error "streamer not defined" (by > firefox). Heres tha page: > http://www.radiovote.ch/ > > whats wrong? I u can help... :-) > Dave > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---