Jquery Fancybox fails to show image
I don't know why it fails bu开发者_Go百科t when you click a link that is an image, fancybox fails showing a message like, "The requested content cannot be loaded...". I've checked the href( is set dynamically) and its the correct path. I initialized the fancybox like so $("a.fancybox").fancybox(), which is basically all links that is of type fancybox. It use to work but for some reason it doesn't work anymore. Relative nor direct path works. Any clue?
If I am not mistaken, the fancybox()
plugin uses the class fancybox
- what might be happening is that you are conflicting that class name. try naming the class a_fancybox
and see if things change.
精彩评论