A couple ways to go about this.. one, use a flag so that if one action 
is in progress you back out of the other. Not the best solution since if 
you click two different links you will get the results for the first and 
the user will be like "wtf mate, I clicked this and I got that". Or, you 
cancel the Ajax request that is in-progress and start the new one. I 
posted about canceling in-progress requests a while back but never 
submitted a patch for it but a patch is really the only way to do that 
because different browsers need special cases to cancel properly. I also 
suggested caching requests so that any in-progress requests could be 
canceled on page unload to prevent problems in IE. Another possibility, 
you could probably override the insertion function to use a queue of 
some sort, I dunno.. I personally would like to see a patch for 
Prototype that adds support for cancelling requests as this is really 
the correct solution. I laid the groundwork for it but don't have the 
time or energy to get a patch accepted.

Good luck,
Colin

Clifford James wrote:
> Hiya there!
>
> I'm using This combo for reloading the page content;
> -Effect.BlindUp
> -Effect.Fade
> -Ajax.Updater
> -Effect.BlindDown
> -Effect.Appear
>
> All of this is handled as one function updateContent();
>
> Now I use this function in a link
> (onclick="updateContent('hereTheNewPage');").
>
> Now when I double click on a link with that function the BlindDown /
> BlindUp crashes.
>
> Its hard to explain but take a look at this demo site :
> http://cliffordjames.wobutidau.com
>
> Is there a way to fix this?
>
> Thanks,
>
> Clifford James
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to