1lukas1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Feb-02 10:17 UTC
Stoping ajax requests
I have a tag cloud, with on-hover event, When mouse gets over tag, related info is displayed in extra "about" div node. Everything is ok, while connection is fast, but with slow connection i get lag: e.g. i''d like to preview tag from the middle of the cloud, this means i have to pass-over some other tags. If i move mouse to preferred tag in less than second, view in "about" div changes "1st hovered tag" => lag => "2nd hovered tag" => lag => .... => "Xth hovered tag" => preferred tag. So i have to wait sometimes up to 10 or more sec. How to stop these reqests to be fully executed. Only thing what i figured out is to preload all "abouts", but may be there is other, smarter solution? p.s. im using == script.aculo.us web 2.0 javascript --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I wouldnt involove the server when you hover....just load all the info for each hover in to an array when the page loads. that was you shouldnt get lag On Feb 2, 10:17 am, "1luk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <1luk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have a tag cloud, with on-hover event, When mouse gets over tag, > related info is displayed in extra "about" div node. > Everything is ok, while connection is fast, but with slow connection i > get lag: > > e.g. i''d like to preview tag from the middle of the cloud, this means > i have to pass-over some other tags. If i move mouse to preferred tag > in less than second, view in "about" div changes "1st hovered tag" => > lag => "2nd hovered tag" => lag => .... => "Xth hovered tag" => > preferred tag. So i have to wait sometimes up to 10 or more sec. > > How to stop these reqests to be fully executed. > > Only thing what i figured out is to preload all "abouts", but may be > there is other, smarter solution? > > p.s. im using == script.aculo.us web 2.0 javascript--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---