Click here to Skip to main content
15,905,414 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can I do mouse hover popup on < a href="" > tag

like this url

bring mouse this link text on so pop up or tooltip open..

http://creativeindividual.co.uk/wp-content/uploads/2011/jquery-popup-div/

for example I have < a href="#">CustomerName< /a> if I mouse bring it on(CustomerName)open a popup so popup fill information about this customer from the mysql database.

How can I do?
Posted
Updated 8-Jan-13 13:23pm
v3

1 solution

The popup would have to do an AJAX call, or you'd have to push all your info down in your initial HTML. Beyond that, it's just a popup.

Much as I loathe it, the ASP.NET AJAX library has this[^]. Personally, I'd view the source to learn how to do it myself. It looks to me like it just uses mouse over and mouse out events. You could fire a timer in mouse over to make it wait for a hover.
 
Share this answer
 
v2
Comments
Member-2338430 8-Jan-13 19:55pm    
ok thanks something do it with javascript but Customer Name how can I take and send popup I will use var els=document.getElementsByTagName('a') method?
Christian Graus 8-Jan-13 19:56pm    
If the customer name is on the screen, you can look it up with jQuery. Don't use straight js, use jQuery. If you don't have that info on the client, you need to get it via AJAX
Member-2338430 8-Jan-13 19:57pm    
because information will come from database according to Customer Name
Christian Graus 8-Jan-13 19:58pm    
OK, so an AJAX call then
Member-2338430 8-Jan-13 19:58pm    
ok understood thanks a lot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900