I’m trying to use the Fullscreenr Jquery plugin in my asp.net project. Here is the code on my master page:
<script src="Fullscreenr/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="Fullscreenr/jquery.fullscreenr.js" type="text/javascript"></script>
<script type="text/javascript">
var FullscreenrOptions = { width: 907, height: 680, bgID: '#bgimg' };
jQuery.fn.fullscreenr(FullscreenrOptions);
</script>
It fails on the jQuery.fn.fullscreenr(FullscreenrOptions); line. The full error is :
Microsoft JScript runtime error: ‘jQuery’ is undefined.
Any ideas?
It’s most likely that your
srcpath is wrong. Use the network viewer that will be present in the developer tools of your favourite web browser, and check you’re not getting a 404 response for theFullscreenr/jquery-1.3.2.min.jsresource.You might find that the
srcis missing a leading slash, and in fact should be:Also check the case of the the path, in case your web server is case sensitive.