jQuery colorbox plugin isn't loading inline content

Posted by Summer on Stack Overflow See other posts from Stack Overflow or by Summer
Published on 2010-05-21T17:57:13Z Indexed on 2010/05/21 18:00 UTC
Read the original article Hit count: 233

Filed under:
|

Hi,

I'm trying to use the jQuery colorbox plugin to show a little warning when a warning icon is clicked.

Check out the problem:
- Go to http://dev.imagineelection.com/browse/zip/10011
- Click on one of the warning icons (scroll down to see one). See how the colorbox that pops up is empty?

I've tried to isolate the problem:
- If you click "View Source" -- the div id="address-alert" is in there
- If you click "View Generated Source" (for example, with Firefox Web Developer plugin) -- the div id="address-alert" has been taken out, but it has not been replaced inside the new div id="cboxCurrent" that colorbox has put at the top of the page

The jQuery call I'm doing is:

if (jQuery().colorbox) {
  $(".warning-class").colorbox({width:"50%", inline:true, href:"#address-alert"});
}

What is going on? Why won't the inline content work?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-plugins