www.webpolis.com.ar
2007-Sep-28 19:52 UTC
Why PeriodicalUpdater doesn''t work on Internet Explorer?
I have the following code: <script type="text/javascript"> Event.observe(window, ''load'', function() { var updater = new Ajax.PeriodicalUpdater(''chatbox'', ''chat.php'', {method: ''get'', asynchronous: true, frequency: 0.55, decay: 2, onSuccess: function(){$(''chatbox'').scrollTop=$ (''chatbox'').scrollHeight}}); }) </script> It''s for a chat program i''m making, but, the Periodical Refresh doesn''t work on Internet Explorer. If i send a message from Internet Explorer, i won''t see the message displayed but Firefox does see the message. Anyway, here is the url: http://www.avecesestoytriste.com.ar/chat/main.php Please help me, i think that IE only refresh the DIV (''chatbox'') one time and no more. Thanks Nico --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Jonathan Weiss
2007-Sep-28 19:59 UTC
Re: Why PeriodicalUpdater doesn''t work on Internet Explorer?
> Please help me, i think that IE only refresh the DIV (''chatbox'') one > time and no more.Use HTTP POST and not GET, IE will othervise case the request, see http://blog.innerewut.de/2007/9/22/ie-doesn-t-let-us-rest Jonathan -- Jonathan Weiss http://blog.innerewut.de --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
www.webpolis.com.ar
2007-Oct-03 14:42 UTC
Re: Why PeriodicalUpdater doesn''t work on Internet Explorer?
men... how can i give you a big T H A N K S !!!!! you were great thanks and good luck nico On 28 sep, 16:59, Jonathan Weiss <j...-eM0Q5iXcOashFhg+JK9F0w@public.gmane.org> wrote:> > Please help me, i think that IE only refresh the DIV (''chatbox'') one > > time and no more. > > Use HTTP POST and not GET, IE will othervise case the request, see > > http://blog.innerewut.de/2007/9/22/ie-doesn-t-let-us-rest > > Jonathan > > -- > Jonathan Weisshttp://blog.innerewut.de--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Richard Quadling
2007-Oct-03 14:54 UTC
Re: Why PeriodicalUpdater doesn''t work on Internet Explorer?
On 28/09/2007, Jonathan Weiss <jw-eM0Q5iXcOashFhg+JK9F0w@public.gmane.org> wrote:> > > > Please help me, i think that IE only refresh the DIV (''chatbox'') one > > time and no more. > > Use HTTP POST and not GET, IE will othervise case the request, see > > http://blog.innerewut.de/2007/9/22/ie-doesn-t-let-us-rest > > JonathanIf you wanted to keep your GET then try adding this to your code ... Ajax.Responders.register ( { onCreate: function(o_Requester) { // Timestamp each AJAX action. var o_Date = new Date(); o_Requester.url o_Requester.url + (o_Requester.url.indexOf(''?'') == -1 ? ''?'' : ''&'') + ''Stamp='' + o_Date.getTime(); } } ); -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---