<script>
$(document).ready(function() {
$("#various2").fancybox({
'width': 800,
'height': 570,
'type':'iframe'
});
});
</script>
I’m getting error in IE8 and 7 but not in IE9
Object doesn’t support property or method ‘fancybox’
and error is on this line
$("#various2").fancybox({
and my scripts are at bottom before </body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" defer="defer"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.1.min.js"%3E%3C/script%3E'))</script>
<script src="js/plugins.js" defer="defer"></script>
<script>
$(document).ready(function() {
$("#various2").fancybox({
'width': 800,
'height': 570,
'type':'iframe'
});
});
</script>
I guess, you should debug around defer=”defer” part. Different IE versions may be interpreting it different way, causing js libs to be parsed after body script gets parsed.