Hi Jörn,

Your small code change did work, tnx for your help.

/Jens


On 5 Jul., 22:17, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Jens wrote:
> > thanks for the update.
>
> > I am loading content to a page dynamically (Ajax: $.get) and have used
> > tooltip to apply tooltip on the fly on each part. All elements uses
> > the same tooltip selector.
> > My problem with the new version is tooltip fails if you call it more
> > than once:
>
> > $(".toolTip").Tooltip();
> > $(".toolTip").Tooltip();
>
> > It worked in the previous version!
>
> > My work-around at the moment is to start a timer that applies toolTip
> > after 2 seconds (hoping all elements are loaded)
>
> Well, calling the plugin method more then once was never intended usage,
> so there was no way I could foresee that. I wonder why it worked before.
> Checking if an element is already tooltipped is quite easy, as tooltip
> settings are added as an expando to each tooltipped element. I'm not yet
> convinced that this check should be done by the plugin, so could you
> just give it a try? Tested:
>
> $(".toolTip").Tooltip();
> $(".toolTip").not("[EMAIL PROTECTED]").Tooltip();
>
> --
> Jörn Zaefferer
>
> http://bassistance.de

Reply via email to