my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes OnMouseOver in Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "OnMouseOver in Ajax" Watch "OnMouseOver in Ajax" New topic

OnMouseOver in Ajax

siva sankar
Ranch Hand

Joined: Jul 13, 2006
Posts: 68
i am having a jsp page which diplays details of 100 users from the database.whenever a mouseover event is fired on the username in the jsp ,it has to show the address of the user.the address of the user has to be retreived from the database.i used ajax to meet this requirement.But the ajax call is called continuously when the mouse(cursor) is placed on the username.I want the ajaxcall to be called only once when a mouseover event is fired.Please let me know the solution on meeting this requirement.

Thanks in Advance,
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60760

Remove the listener after the first invocation.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
wood burning stoves
subject: OnMouseOver in Ajax
Similar Threads
server side javascript and Mouseover?
Mouseover on the whole td elemet
Please suggest me a tutorial for learning Ajax to use with JSP
rendering onto an gif/jpeg image????
not able to pass request parameters when the JSON call is made from Open portal