hello, i'm trying to use two or more instances of PeriodicalUpdater on a single webpage in FireFox on my Mac, but when I do this, it keeps increasing FireFoxes' s CPU and memory usage until FireFox freezes. any ideas?
here's the quesiton, i posted to the prototype.js google group, but no one has responded: So I want to have multiple instances of Ajax.PeriodicalUpdater on my page, but when I do this on my Intel Mac in Firefox, the webbrowser consumes all of my CPU and the real memory used by Firefox keeps increasing. Eventually, Firefox freezes. What am I doing wrong? How can I have multiple updaters running on the same page? Here is a simple example of my client html page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Testing Ajax Periodical Updater</title> <script src="/javascripts/prototype.js" type="text/javascript"></ script> <script src="/javascripts/scriptaculous.js" type="text/javascript"></ script> <script src="/javascripts/effects.js" type="text/javascript"></script> <script src="/javascripts/dragdrop.js" type="text/javascript"></ script> <script src="/javascripts/controls.js" type="text/javascript"></ script> </head> <body> <p id="test_1"></p> <p id="test_2"></p> <p id="test_3"></p> <script language="javascript" type="application/javascript"> var updater_1 = new Ajax.PeriodicalUpdater('test_1', '/ajax/test.php', { method: 'post', frequency: 1, decay: 1, parameters: 'id=1'}); var updater_2 = new Ajax.PeriodicalUpdater('test_2', '/ajax/test.php', { method: 'post', frequency: 1, decay: 1, parameters: 'id=2'}); var updater_3 = new Ajax.PeriodicalUpdater('test_3', '/ajax/test.php', { method: 'post', frequency: 1, decay: 1, parameters: 'id=3'}); </script> </body> </html> And here is the test.php code: <?php $id = $_POST['id']; echo "test " . $id . ": " . time(); ?> --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
