Forum: Rails Spinoffs (closed, excessive spam) Why isn't this working in Firefox 3.0? Does work in IE 7.

26f54ea0bfbffe1d9cfca48cbf21aa54?d=identicon&s=25 bavelasq (Guest)
on 2008-07-09 19:15
(Received via mailing list)
<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
F490e41cd5de1393a9f6958b70dae6ab?d=identicon&s=25 Frederick Polgardy (Guest)
on 2008-07-09 19:18
(Received via mailing list)
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@gmail.com> wrote:

>              onFailure: function(transport) {
>                var t = transport;
>                $(updateText).innerHTML = "Failed Updating...";
>              }
>
>            })
>        })();
> </script>


--
Science answers questions; philosophy questions answers.
This topic is locked and can not be replied to.