OK. Not quite so perfect. At first it seemed to work fine. When I
manually set the text...
$(".ToolTip").tooltip({bodyHandler: function() {
return "Add Comment"
},showURL:false});
It works fine. However, when I set it as the result of a function, I
get a 'nodeType' is null or not an object error.
Example:
function test() {
return TextResult.OfSome.AjaxFunction()
}
$(".ToolTip").tooltip({bodyHandler: function() {
return "Add Comment"
},showURL:false});
Any insight?
Thanks,
K-
On Apr 3, 4:52 pm, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Kyle Holder schrieb:> Hi,
>
> > I have a page with about 30 instances of the tool tip object on them.
> > These are dynamically updated divs. In order to change the text
> > inside the tooltip, you need to re-initialize them by calling $
> > ("#object").tooltip(). This works perfectly. However, when I do that
> > too many times (the number changes), the tool completely kills
> > javascript in my browser. The number of "refreshes" changes (I can't
> > say it's 5 or 10), but it keeps happening.
>
> > Any thoughts?
>
> Instead of reinitializing the tooltip plugin, use the bodyHandler option
> to retrieve the updated tooltip. That should avoid rebinding the same
> event oder and over again.
>
> Jörn