A.Goutam
A.Goutam

Reputation: 3494

Microsoft JScript runtime error: 'jQuery' is undefined after publish the application

Before publish it works fine but when i publish and run it give me an error called - Microsoft JScript runtime error: 'jQuery' is undefined . I am using these .js at my Master Page .

 <script type="text/javascript" src="../../Scripts/chrome.js"></script>
<%-- <script type="text/javascript" src="../../Scripts/jquery.js"></script>--%>
<script type="text/javascript" src="../../Scripts/jquery-1.js"></script>
<script type="text/javascript" src="../../Scripts/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.simplyscroll.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.simplyscroll.js"></script>
<script type="text/javascript">
    (function ($) {
        $(function () {
            $("#scroller").simplyScroll();
        });
    })(jQuery);
</script>
<script type="text/javascript" src="../../Scripts/script.js"></script>
<script type="text/javascript" src="../../Scripts/coin-slider.min.js"></script>

Visual Studio 2010 - running in IE9 IE8 Google crome. Any advice greatly appreciated!

Upvotes: 0

Views: 2130

Answers (1)

palaѕн
palaѕн

Reputation: 73896

You can try this:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">window.jQuery || document.write('<script type="text/javascript" src="path/to/your/jquery"><\/script>')</script>

This is the use Google's hosted jQuery, but on Google fail, you can fall back to your hosted library. Please try to use the latest jquery [Current Release: v1.8.3]. You can get it from here.

Upvotes: 2

Related Questions