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

[Solved] Loading script error with IE9

2 Answers 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rolf Winter
Top achievements
Rank 1
Rolf Winter asked on 10 Dec 2011, 09:59 PM
my MVC/razor app using your grid control works fine in Firefox. In IE9 I get the error message:

Line: 1
Error: There is no value for the property "scripts": The object is null or undefined.

(The error message is translated to english by me.)

Looking at the debug window shows me the following code line:

(function(a){var b=a.telerik;b.scripts.push("telerik.grid.reordering.js");b.reordering={};b. ....

This happens for each Telerik script file. After confirming the error messages all works fine.
Here are all references used in my code:

<script src="@Url.Content("~/Scripts/jquery-1.6.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/telerik.grid.reordering.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/telerik.grid.resizing.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/telerik.grid.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.corner.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.alerts.js")" type="text/javascript"></script>

How can I avoid the error messages?

2 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 14 Dec 2011, 12:59 PM
Hi Rolf,

I assume that you have tried to manually include all JS files as external resources. If this is so, you need to make sure that you have imported all files and in the correct order. Please check this help article for more information on which files are needed by the Grid component.


All the best,
Georgi Tunev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Rolf Winter
Top achievements
Rank 1
answered on 15 Dec 2011, 01:44 PM
Thanks! That was the reason.
Tags
General Discussions
Asked by
Rolf Winter
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Rolf Winter
Top achievements
Rank 1
Share this question
or