I have a popup by using colorbox, it’s normally working on FF and IE 7+, but it’s can not load the content of the static block.
My source code
<script type="text/javascript">
jQuery(document).ready(function defaultPopup(){
jQuery.noConflict();
var direct = '<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('popup')->toHtml();?>';
if(direct){
jQuery('#popup_home').colorbox({
html:direct,
maxHeight:jQuery(window).height(),
open:true,
overlayClose:false
});
return false;
}
});
HTML :
<div id="popup_home" style="display:none">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('popup')->toHtml();?>
Are you running this locally? Colorbox uses Ajax and Chrome doesn’t allow Ajax requests locally.
http://code.google.com/p/chromium/issues/detail?id=40787