The following snippet of code does not work as expected in IE using
prototype 1.5.0_rc1

What should happen is that the "in onSuccess" alert should pop up every
1.5 seconds.

What happens is that the "in onSuccess" alert pops up only once, at
page load.

<html>
<head>
<script src="/js/prototype.js" type="text/javascript"></script>
<script type="text/javascript">
new Ajax.PeriodicalUpdater({}, '/test.html',
    {
        'decay': 1, 'frequency': 1.5,
        'method': 'get',
        'onSuccess': onSuccess,
        'onFailure': onFailure
    });

function onSuccess(req, json) {
    alert("in onSuccess");
}
function onFailure(req) {
    alert("in onFailure");
}
</script>
</head>
</html>


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

Reply via email to