drupal - Lightbox: how to parse the lightbox dynamically loaded html content (AJAX) -


I am using a modal lightbox on a page of my website to display my nodes.

I'm using some plugins like tooltips for external jquery-plugin and drupal plugin jQuery media (to load Flash Video Player for some video file areas).

These plugins are loaded when the main page loads and they parse the html content of the page.

When I load the lightbox dynamically (and I use AJAX to update my content), then the html inside the lightbox is not parsed ... so no tooltips, no video .

How do I solve it? Should I again trigger plugins from the lightbox callback function? Or should I use something other than lightbox?

Thanks

Loaded these plugins when the main page is loaded And they parse the html content of the page.

If those plugins are implemented as Drupal.Behaviours (as they should, Instead of simply firing at .ready () or .onload () ), you just need to call Drupal.attachBehaviors (yourAjaxResponseContent) View dynamically loaded content and this tune For some details on the trip.

If the plugins do not use Drupal.behavior root, then you will need to modify them either (recommended), or manually trigger them to process new content yourself.


Comments