Enhanced tooltip not working inside a reloaded floatbox

Page: 1

Author Post
Member
Registered: Sep 2013
Posts: 5
Hello,

I have a page where you click to open a floatbox containing an image that opens an enhanced tooltip when hovered on.

This works as expected, but I need to fb.reload the iframe contents and the new contents also has a tooltip. The problem is that the same tooltip that initially works doesn't work when the iframe is reloaded with new (the same) content.

I'm hoping you might have some ideas to get a tooltip in a floatbox with reloaded content working.

Thanks!
Administrator
Registered: Aug 2008
Posts: 3382
After dynamically adding or modifying elements with floatbox markup, fb.activate() must be run against the new content to light up those elements.

http://floatboxjs.com/instructions#dynamic
Member
Registered: Sep 2013
Posts: 5
Indeed this fixes it!

I spent hours looking for something like this, but perhaps I should have just covered the general instructions better. Either way, thanks for the much-appreciated help!

Please have a beer on me ;)
« Last edit by bjorng on Wed Sep 25, 2013 4:17 am. »

Page: 1