开发者

tooltip jquery plugin with ajax support is needed ! [closed]

开发者 https://www.devze.com 2023-02-03 15:26 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
开发者_高级运维

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

i need a jquery plugin to show full description of some data as a tooltip when mouse over that data's row in table. the description should load with ajax.


I recommend jQuery TOOLS Tooltip. I use it on my projects.

But as for AJAX, you will probably need to code it yourself with event listeners.


As a matter of fact, I just recently released my fork of jQuery UI Tooltip.

It supports remote content by feeding a function to the content option that takes care of the ajax request.

Something like this:

$("table tr").tooltip({
    content: function(response) {
        // Init the ajax call (you can use .post or .ajax as well)
        // response is the callback that will handle the response
        $.get("url_to_tooltip_content", response);
        // Return text that will show until a response have been recieved
        return "Loading..."; 
    }
});
0

精彩评论

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