I do almost this where the file shown is an image (requested as a link
to a php file - the response is then shown as an image file) you may
be able to use this...
(note: the fancybox dimensions are not set dynamically from the larger
content so you if you do not know these before hand you will need to
fake it somehow - i have asked for a tip on doing this so fingers
crossed)
________________________________________________
# php file that gets displayed as the large image
function getImage($id){
$filename = path/to/imageGenerator.'?id='.$id;
return '<img src="'.$filename.'" alt="'.$filename.' rel="fancybox"
class="thumbnail" border="0" >';
}
echo getImage($id);
________________________________________________
# html for each image cell to call the dynamic image
<div class="imageCell">
<a class="group1" href="{IMAGE}" border="0" rel="fancybox"
class="thumbnail">
<img src="{THUMBNAIL}" border="0" alt="{NAME}" target="_BLANK">
</a>
<div class="caption">
<label>Edit</label><input name="imageName" type="radio"
value="{IMAGE}" onclick="document.form.submit()">
</div>
</div>
________________________________________________
hope it helps - it works for me in my instance