I'm using links with the colorbox-load class to display content of a node within an overlay. When opening the link for the first time everything works as expected, the content and all necessary js files get loaded just 1 time. After closing the overlay and reopening the link things start to get weird. The node content and the necessary JS files get loaded 3 times.

I remarked this bug because the JS driven parts in the overlay do only work after all the files have been loaded. The attached image shows just the content loads of the repetitions of the closing and reopening, but all the JS files get reloaded accordingly.

Repeating the closing and reopening of the overlay/link leads to 9 content loads, 27 content loads, 81 content loads and so on. I have no idea what's causing this multiple load especially why it's always times 3 loads. Please help.

CommentFileSizeAuthor
colorboxbug_click3.jpg460.7 KBs_leu
colorboxbug_click1and2.jpg472.91 KBs_leu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

imonemus’s picture

I was having the same problem when only giving the class "colorbox-load" to the link. When I added, for example, "?width=500&height=500&iframe=true" to the link, the problem went away. To be fair, the documentation does tell us to do this.

frjo’s picture

Category: bug » support
Status: Active » Fixed

When you load an entire web page in an Colorbox you must use iframe, there is no way around that.

I recommend you check out the new colorbox node module:

http://drupal.org/project/colorbox_node

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

improvement of description