When using Views 2 and AJAX Filters, ColorBox fails to load a node view after the 2nd(yes more than one time) filter selection for that page. The page overlay has an overlay opacity of 1, the colorbox opens with no node data displayed. It can be closed and view returns, but unless page is refreshed never works right again. The filter has to be selected and applied twice to induce failure.

Firebug reports:
"P.html(a.close) show is not a function error" at:
;/* ColorBox v1.3.7 - a full featured, light-weight, customizable lightbox based on jQuery 1.3 */
(function(c){function o(b,d){d=d==="x"?n.width():n.hei .......

If an image on the same page is selected it returns "c(this).data(s) is undefined" at the same location.

The link appears valid in the AJAX'd html for the load:
Medusa "Lovers Lane Vineyard" -

Views 6.x-2.11
jQuery Update 6.x-2.0-alpha1

Comments

garyabbott’s picture

sorry about the link...

<a class="notfeatured colorbox-load initColorboxLoad-processed cboxElement" href="/node/236/colorbox?height=1000px&width=800px&iframe=true">Murphy-Goode "Liars Dice"&nbsp;-</a>

More Info:

Same problem occurs using Views Glossary. After the 2nd letter select with AJAX on, color box stops working. I'm getting drupal.behavior calls to my jquery code, but colorbox has a change after the 2nd AJAX call.

Load Page: InitColorbox and InitColorboxload called at their drupal.behavior points in main js.
1st AJAX: InitColorbox and InitColorboxload called at their drupal behavior points in main js. In addition another set of calls to similar init code in /event (event scripts?) what ever that is.
2nd AJAX: No Init calls to main js code but calls are made to the init routines at /event.
Colorbox stops working properly.
3rd AJAX: Same as 2nd.

frjo’s picture

Go to Colorbox settings and under "Advanced settings" select "Choose Colorbox compression level -> Development (Uncompressed Code)". This will make the error messages more readable.

Then test again and paste in the errors you get here.

garyabbott’s picture

I just turned off javascript optimization in performance and the issue goes away. Turn it back on and issue reappears.

garyabbott’s picture

OK, after more searching it appears AJAX load is the issue with compressed javascript. It just happened to pick your module to trash.
Using the -dev version of AJAX Load appears to fix the problem.

frjo’s picture

Category: bug » support
Status: Active » Fixed

Glad that you found a solution, and that it was not my bug :-).

Status: Fixed » Closed (fixed)

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

TelFiRE’s picture

Hmm,
are we supposed to be on the 2.x dev or the 1.x dev?
This problem is occuring for me on 2.x