Hercules
unread,May 25, 2012, 1:48:50 PM5/25/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fancybox
Dear All,
I have small issue with calling fancybox. To make story short:
I have a product page which opens in fancybox. Within this page I have
a link for related products. Clicking on it closes fancybox and opens
related product in fancybox. As you already guessed product page which
will open also has related products., so clicking on related product
doesn't open fancybox. I was wondering if you could help me in
resolving this issue.
Here is my code:
Link to product: <a href="blabla" id="fancy1">Product</a> Works,
opens in fancybox.
Link within product page (related product): <a href="blabla"
id="fancy1">Product</a> Works, opens in fancybox.
Link within opened related product page: <a href="blabla"
id="fancy1">Product</a> Doesn't open in Fancybox.
$(document).ready(function() {
$("a.fancy1").fancybox({
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : false,
'autoDimensions' : false,
'width' : 620,
'height' : 'auto',
'overlayShow' : true,
'overlayOpacity' : 0.8,
'overlayColor' : '#ccc',
onComplete: function() {
$("a.fancy1").fancybox({
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : false,
'autoDimensions' : false,
'width' : 620,
'height' : 'auto',
'overlayShow' : true,
'overlayOpacity' : 0.8,
'overlayColor' : '#ccc'
});
}
});
});
I have tried naming fancy2 for related products and nothing works.