Letractively / tooltips

Automatically exported from code.google.com/p/tooltips
0 stars 0 forks source link

Initialize tooltips after ajax update to page??? #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the scenario?
1. get tooltips working correctly
2. add content via ajax
3. get tooltips to work for new content

So I am using Ruby/Rails, which probably doesn't matter in this case, but I 
need to re-initialize 
the tooltip js from the controller after new content has been added to the 
page.  Anyone know 
how to handle this?

When I use lightbox, the call is Lightbox.prototype.updateImageList();

Certainly there must be something similar, but I don't know enough javascript 
to figure it out.  
Any help is greatly appreciated.

Thanks,
Phillip

Original issue reported on code.google.com by pSauerb...@gmail.com on 20 Jun 2009 at 3:36

GoogleCodeExporter commented 9 years ago
I ended up using:

$$(".tt").each( function(link) {new Tooltip(link)});

Original comment by pSauerb...@gmail.com on 23 Jun 2009 at 7:17