mouse over and ajax tooltip

I have a number of links which I would like to get some information by using ajax calls and display the information as tooltip.

I have bind the function that make the ajax call with the event on mouseover of the link something like:

$('#div a').bind('mouseover', function () {
   //sending the ajax call
}

everything looks/work fine except, when the user unintentionally move the mouse pointer over all the links, I saw that there are many ajax calls.

so my question how can I prevent the ajax call unless the users hover the mouse pointer on the link for at least 3 or 4 seconds first.

Answers


Look up the JavaScript window.setTimeout() function.


Need Your Help

Android: Alarm manager and Intent filters Not working

android android-intent alarmmanager

So I am setting an alarm which triggers an intent. I also have a broadcast listener which has an intentfilter to catch that intent but for some reason its not working. I am not sure where the problem

Validation library for Node.js

javascript validation node.js

Is there a good validation framework for node.js that validates a variable for: