briancray / tooltipsy

Introducing a jQuery tooltip plugin for control-obsessed designers.
http://tooltipsy.com
MIT License
326 stars 97 forks source link

OnDemand-Content of tooltip #33

Open spranger opened 9 years ago

spranger commented 9 years ago

I have a List of man Labels I want to "tooltipsy" , and each tooltip get its content via ajax-call. In the .tooltipsy()-function an ajax-call is made on setup, even if I never need this tooltip.

Is there a way to ajax-load the tooltip-content just on demand?

jschnarel commented 9 years ago

Also needing to dynamically change the tool tip on the fly, I added this code just above the "show" function: resetTooltip: function(t) { this.title = t; if (this.$tipsy) { this.$tipsy.remove(); } this.ready = false; },

Call it this way: $('#objId').data('tooltipsy').resetTitle("new tooltip text");