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

[Solved] Jquery 1.42 Error object undefined

2 Answers 91 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.
Henrique Potter
Top achievements
Rank 1
Henrique Potter asked on 15 Jul 2010, 07:38 PM

When enabling "<%Html.EnableClientValidation(); %>" in a page with Telerik components, we get a object null definition from the Jquery 1.42 the script that the jquery uses.

When i don´t enable client validation on a page, no error happen.

Any clues about what´s happening?!

2 Answers, 1 is accepted

Sort by
0
King Wilder
Top achievements
Rank 2
answered on 15 Jul 2010, 08:56 PM
I'm not sure this might answer your question, but the "EnableClientValidation()" method is used with the Microsoft Ajax scripts, not jQuery.

If you don't have the required Microsoft scripts included, you'll probably get some sort of error.

Include these files from the Scripts folder and see if you still get the error:

MicrosoftAjax.js
MicrosoftMvcAjax.js
MicrosoftMvcValidation.js
0
Henrique Potter
Top achievements
Rank 1
answered on 15 Jul 2010, 09:48 PM

No that was not the case i had already registered these scripts.

I figured out anyway, what i did was register all the used scripts within the

01.<% Html.Telerik().ScriptRegistrar().DefaultGroup(group => 
02.       {
03.           group.DefaultPath("~/Scripts/Componentes");
04.           group.Add("~/Scripts/MicrosoftAjax.js");
05.           group.Add("~/Scripts/MicrosoftMvcAjax.js");
06.           group.Add("~/Scripts/MicrosoftMvcValidation.js");
07.           group.Add("~/Scripts/Message.SAC/Message.SAC.Validacao.js").Compress(true).Combined(true);
08.             
09.       }).Render();
10.         
11.    %>

Tags
General Discussions
Asked by
Henrique Potter
Top achievements
Rank 1
Answers by
King Wilder
Top achievements
Rank 2
Henrique Potter
Top achievements
Rank 1
Share this question
or