- On a page I have a couple of links (which represents customers).
- Clicking on a link loads some customer content in another div without reloading the whole page.
- The reloading happens trough a Drupal.behaviors function
On initial load of this page the first customer's content contains a colorbox enabled link (a class="colorbox-load") and works great.
But when I am loading another customer's content trough the Drupal.behaviors function the colorbox enabled link in that particular content opens up a blank page and not the popup it supposed to be showing.
What am I doing wrong here?
I think the problem is because the colorbox and jquery files are not beeing loaded / referenced anymore but I am unsure of how/where to load them.
Thanks for any help in advance
Comments
anyone?
anyone?
I got this solved by calling
I got this solved by calling Drupal.attachBehaviors() after the content was loaded (onComplete)