1

is there any callback function for lightbox2 in Drupal ?

I need to trigger some functions when the lightbox content is ready

thanks

aneuryzm
  • 63,052
  • 100
  • 273
  • 488

3 Answers3

1

Like this?

http://www.erikhedin.com/web-design/drupal-tips/Easy-Ajax-Nodes-Lightbox-Content

lazysoundsystem
  • 2,039
  • 23
  • 23
  • I've solved differently, adding the code directly in the loaded page. Yeah, this was what I needed. – aneuryzm Jun 09 '10 at 07:05
0

Are you using the Lightbox2 module?

http://drupal.org/project/lightbox2

It has a myriad of options to use. It also adds itself as a Views field option when displaying an image.

Kevin
  • 13,153
  • 11
  • 60
  • 87
  • yeah I agree it has a lot of functions. Probably that's why I cannot find how to trigger a callback function when the content of the lightbox is loaded... I'm inspecting the code.. – aneuryzm Jun 08 '10 at 18:36
0

Like this: How to trigger event on arbitrary function call using jQuery

Community
  • 1
  • 1
Chris Burgess
  • 3,551
  • 3
  • 29
  • 42