briancray / tooltipsy

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

it doesn't support dynamic content #2

Closed buremba closed 13 years ago

buremba commented 13 years ago

For example, I use: content: function () { return $('.active').width()+'*'+$('.active').height(); } My .active element's width is changable but tooltipsy shows first width value. How can I fix this problem?

briancray commented 13 years ago

what does .active represent?

buremba commented 13 years ago

it represent a div but it's not a problem. for example i use alert() in content element but only it seems when page loading. however i wanna see alert every mouseover. it's another way to explain the problem.

briancray commented 13 years ago

do the alert in the show function

afeld commented 12 years ago

@briancray would love an example of how to do this. my content isn't quite as dynamic as the example above, but when i want to update the text im needing to destroy() and re-create the tooltip.

briancray commented 12 years ago

Yea, the tooltip only calculates its size on the first time it's shown for efficiency. Right now destroying the tooltip is the only work around.

afeld commented 12 years ago

Understandable that it's not dynamic, but would be great to call $('.hastip').tooltipsy() on the same element and have it use the re-format with the new content or something.