The following code works fine when on the page but does not when in the Google Map info bubble:
l($row->title, 'node/' . $row->nid . '/lightbox2', array('attributes' => array('rel' => 'lightframe')))
Any thoughts on a solution?
The following code works fine when on the page but does not when in the Google Map info bubble:
l($row->title, 'node/' . $row->nid . '/lightbox2', array('attributes' => array('rel' => 'lightframe')))
Any thoughts on a solution?
Comments
Comment #1
milehighlife commentedI still haven't found a solution to this issue. I believe it's an issue of trying to invoke Lightbox from within the Google info bubble and that there's a Javascript issue here. Any thoughts?
Comment #2
stella commentedprobably because the Google Maps bubble is added to the page using ajax or some other javascript, and the lightbox2 javascript has run before it and processed all rel="lightframe" attributes present on the page at that time. So you need to use Drupal.attachBehaviors() to attach lightbox2 behaviors to the new page context/content.
Comment #4
dan1eln1el5en commentedI have similar issue, did you find a solution or rather how did you fix it ?