Click here to Skip to main content
15,888,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to open JQuery dialog on a click. When I click a cell I get
'JQuery' is undefined error.

It works in chrome. The strange thing is it worked in IE till yesterday and suddenly stopped working.

It gives me an error in in jquery-ui.js. in v1.11.4

My code looks like

HTML
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <%--<meta name="viewport" content="width=device-width" />--%>
    <meta http-equiv="Page-Exit" content="Alpha(opacity=100)" />
    
    <link href="Styles/Site.css" rel="stylesheet" type="text/css" />
     
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>    
 
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/jquery-1.10.2.js" type="text/javascript"></script>
    <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js" type="text/javascript"></script>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"/>

</head>

What could possibly be the issue??

What I have tried:

I have tried putting the Ui line after library. The site works in intranet hence added the meta tag for compatibility too. The lapse of the site in IE11 has been sudden
Posted
Updated 4-Aug-16 7:41am
Comments
Suvendu Shekhar Giri 4-Aug-16 13:39pm    
Try removing duplicate reference to js files.
Karthik_Mahalingam 4-Aug-16 22:10pm    
Possible solution
Anjali0904 7-Aug-16 22:50pm    
Thanks.. I did that and it worked...

1 solution

You are loading two different versions of jQuery and jQueryUI. You only need to load one of each.
 
Share this answer
 
Comments
Karthik_Mahalingam 5-Aug-16 1:38am    
5
Anjali0904 7-Aug-16 22:48pm    
Thank you...That was exactly the issue.
But I am still unable to understand how it worked for 2-2.5 months and suddenly crashed.
Can itbe some Windows/ IE update??
AnvilRanger 8-Aug-16 14:43pm    
That is always a possibility, but only you could explore that with your code. I am honestly surprised it worked at all considering you were loading 2 different versions of jQuery and jQueryUI

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900