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 <[EMAIL PROTECTED]> 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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to