开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜