Using Fancybox to play youtube videos in a modal box.
My Problem is that I keep getting The requested content cannot be loaded. Please try again later.
The modal box is popping up so I know the script is running, it might be a problem with my API call... here is my call:
<script type=text/javascript>
$(document).ready(function() {
/* This is basic - uses default settings */
$(a.fancybox).fancybox({
'hideOnContentClick': true
});
/* This is a non-obtrustive method for youtube videos*/
$(a[rel=fancyvideo]).fancybox({
overlayShow: true,
frameWidth:640,
frameHeight:360,
});
});
</script>