PDA

View Full Version : Facebox - Don't show content of a div



popobcn
02-02-2010, 05:37 PM
1) Script Title: Facebox

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/facebox/index.htm

3) Describe problem:
Nowadays i'm working with this script to show photos in one local project, and work's fine... But when I try to load a content of a DIV don't show anything :confused: ?




<!-- Before </head> -->
<script src="facefiles/jquery-1.2.2.pack.js" type="text/javascript"></script>
<link href="facefiles/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="facefiles/facebox.js" type="text/javascript"></script>

<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox()
})
</script>

<!-- Some code for load content of the page -->

<a href="#coco" rel="facebox">Load div test</a>
<div id="coco" style="display:none">
hello test!
</div>


The modal window of facebox don't show anything... But, when I test to load photos or content via IFRAME work's well (I don't understand since like it can work well in almost all the aspects, less in this one!)

What can be happening?

Thank's!

PD.: I ask for excuses you, but my english is really poor