2011-01-10 7 views

答えて

1

jQuery TOOLS Tooltipをお勧めします。私は自分のプロジェクトに使っています。

しかし、AJAXの場合は、イベントリスナーでコードを作成する必要があります。

1

実際には、私はちょうど私のfork of jQuery UI Tooltipをリリースしました。

ajaxリクエストを処理するコンテンツオプションに関数を渡すことで、リモートコンテンツをサポートします。

このような何か:

$("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..."; 
    } 
}); 
関連する問題