Jquery on hover show additional information
I need a jquery that on hover show additional information about an employee these information must be retrieved from a database.Im using this one :
http://rndnext.blogspot.com/2009/02/jquery-ajax-tooltip.html
but this part of the code that it isn't working:
$.ajax({
type: 'GET',
url: 'personajax.aspx',
data: 'page=' + pageID + '&guid=' + currentID,
if i put a sample html开发者_运维问答 instead it works:
how the querystring shoul be written
Your code has syntax errors (parentheses are not closed). Plus it may be better to provide object instead of string, just for visibility purposes:
var pageID = ''; // your pageID
var currentID = ''; // your currentID
$.ajax({
type: 'GET',
url: 'personajax.aspx',
data: {'page': pageID, 'guid': currentID}
});
(of course assign correct pageID
and currentID
above)
This may solve your problems, but they may also be caused by the server-side script or some other problem within your script.
精彩评论