seran128 wrote: > I have two buttons on my page. Update and Realtime > If the user presses Update then presses RealTime right after pressing > Update and before the first request is completed it locks my page up. > > How do I stop all ajax requests on a button click even > I think you can use the count of active requests that is stored in the Ajax object.
if (Ajax.activeRequestCount == 0) { // no pending requests; fire request... } - Ken Snyder --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---