<script type="text/javascript"> (function() { new Ajax.PeriodicalUpdater(''messages'', ''/data/messages/'' + $(roomcode).value + ''.html'', { method: ''get'', frequency: 5, decay: 1, onSuccess: function(transport) { var t = transport; $(updateText).innerHTML = "Updating..."; }, onFailure: function(transport) { var t = transport; $(updateText).innerHTML = "Failed Updating..."; } }) })(); </script> The code above works fine in IE7, but not in Firefox 3. Probably some browser differences I''m not aware of because of my limited experience. Any help is appreciated. Barry http://talistya.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Polgardy
2008-Jul-09 17:17 UTC
Re: Why isn''t this working in Firefox 3.0? Does work in IE 7.
What is updateText? $(updateText) expects it to be a variable name with a value, but I don''t see it defined here. Or roomcode actually. Are they defined elsewhere? -Fred On Wed, Jul 9, 2008 at 12:14 PM, bavelasq <bvelasquez-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > <script type="text/javascript"> > (function() { > new Ajax.PeriodicalUpdater(''messages'', ''/data/messages/'' + > $(roomcode).value + ''.html'', { > method: ''get'', frequency: 5, decay: 1, > onSuccess: function(transport) { > var t = transport; > $(updateText).innerHTML = "Updating..."; > }, > onFailure: function(transport) { > var t = transport; > $(updateText).innerHTML = "Failed Updating..."; > } > > }) > })(); > </script>-- Science answers questions; philosophy questions answers. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---