vicb/tipsy-swift — Issue #9: how to access tip DOM element from within plugins.tip({})?
Author: AndrewFreemantle
Created: 2012-02-13 18:55:53+00:00
State: open

Please update the documentation to show how one can get at the DOM element that the tip is shown for.

For example:

A pair of pliers
A blowtorch

How would one get at the $(....).attr("data-id") when doing an Ajax call like so:

// Ajax content
$("a.target").tipSwift({
plugins: [
$.tipSwift.plugins.tip({
filterContent: function(content, positionner) {
content.html(' - some loading image - ');
// If one does an ajax call here to get a string, how does one get at "data-id" ?
content.load(myAjaxLoadedString, function() { positionner(); });
}
})
]

Many thanks