So, I've been working on a page to update previous calls with new
calls when click on certain lnks.
For example:
<a href="onClick='new Ajax.PeriodicalUpdater{method: get, index.php?
page=1, frequency: 300, decay 300 }'>Home</a>
<a href="onClick='new Ajax.PeriodicalUpdater{method: get, index.php?
page=2, frequency: 300, decay 300 }'>Articles</a>
I click on the Home link, it updates fine BUT when I click on the
Articles link, that info is pulled as well in addition to the info
that was pulled when clicking the Home link too. So, it's rotating
between both.
What could I do to stop the first ajax call when I click on a second
click to make a new ajax call? Any help is greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---