mdvignesh Posted March 23, 2012 Share Posted March 23, 2012 i am having reals.php on clicking search goes to getdetail.php using ajax when i click the image it goes to that image file not a fancy box 17861_.php 17862_.php Link to comment https://forums.phpfreaks.com/topic/259558-fancybox-not-working/ Share on other sites More sharing options...
Adam Posted March 23, 2012 Share Posted March 23, 2012 You have the jQuery bind defined in the wrong file; $(document).ready(function() { $("a#single_image").fancybox(); }); This should go in the same document where the element exists, getdetail.php. Link to comment https://forums.phpfreaks.com/topic/259558-fancybox-not-working/#findComment-1330474 Share on other sites More sharing options...
mdvignesh Posted March 23, 2012 Author Share Posted March 23, 2012 I already tried it its not working in getdetail.php But the fancy box is working in getdetail.php not by ajax call Link to comment https://forums.phpfreaks.com/topic/259558-fancybox-not-working/#findComment-1330479 Share on other sites More sharing options...
Adam Posted March 23, 2012 Share Posted March 23, 2012 Re-reading your OP I'm a little unsure what you're trying to do. What element exactly (what's the selector for it) should load in FancyBox, but isn't? Link to comment https://forums.phpfreaks.com/topic/259558-fancybox-not-working/#findComment-1330480 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.