This is a migrated thread and some comments may be shown as answers.

jQuery is undefined

2 Answers 1216 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Cliff Gibson
Top achievements
Rank 1
Cliff Gibson asked on 11 Aug 2011, 01:58 PM
I've got the following page created in an empty project, but when I run the page I get "Microsoft JScript runtime error: 'jQuery' is undefined" within "kendo.all.min.js"...am I missing something...I've attached project structure image for reference.


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="KendoApp.Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title title="Kendo UI"></title>
    <link href="styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
    <link href="styles/kendo.kendo.min.css" rel="stylesheet" type="text/css" />
    <script src="js/kendo.all.min.js" type="text/javascript"></script>
    <script src="js/jquery-1.6.2.min.js" type="text/javascript"></script>
</head>
<body>
  
<script type="text/javascript">                
    $(document).ready(function () {                    
        var data = [                            
            "12 Angry Men",                            
            "Il buono, il brutto, il cattivo.",                            
            "Inception",                            
            "One Flew Over the Cuckoo's Nest",                            
            "Pulp Fiction",                            
            "Schindler's List",                            
            "The Dark Knight",                            
            "The Godfather",                            
            "The Godfather: Part II",                            
            "The Shawshank Redemption"                        
            ];
        //create AutoComplete UI component                    
        $("#input").kendoAutoComplete({
            dataSource: data,
            separator: ", "
        });
    });            
</script>
  
<input id="autocomplete" />
  
</body>
</html>

2 Answers, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 11 Aug 2011, 02:19 PM
Hello Cliff Gibson,

As the KendoUI depends on the jQuery, jQuery should be included before the KendoUI
script file(s). Please refer to this help article under Installing and Getting Started with Kendo section.

All the best,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Cliff Gibson
Top achievements
Rank 1
answered on 11 Aug 2011, 02:22 PM
that simple...thank you!
Tags
General Discussions
Asked by
Cliff Gibson
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Cliff Gibson
Top achievements
Rank 1
Share this question
or