{"id":3793,"date":"2014-03-30T05:38:21","date_gmt":"2014-03-30T05:38:21","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/asp-net-mvc-3-and-jquery-unobtrusive-ajax-min-js-collection-of-common-programming-errors\/"},"modified":"2014-03-30T05:38:21","modified_gmt":"2014-03-30T05:38:21","slug":"asp-net-mvc-3-and-jquery-unobtrusive-ajax-min-js-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/asp-net-mvc-3-and-jquery-unobtrusive-ajax-min-js-collection-of-common-programming-errors\/","title":{"rendered":"ASP.NET MVC 3 and jquery.unobtrusive-ajax.min.js-Collection of common programming errors"},"content":{"rendered":"<blockquote>\n<p>I&#8217;ve read that the solution is usage of jquery.validate.min.js and jquery.validate.unobtrusive.min.js<\/p>\n<\/blockquote>\n<p>No, those 2 script have nothing to do with <code>jquery.unobtrusive-ajax.min.js<\/code>. They are used for unobtrusive validation. For Ajax.* helpers all you need is <code>jQuery<\/code> and <code>jquery.unobtrusive-ajax.min.js<\/code> (included in <strong>THAT<\/strong> order).<\/p>\n<p>So for unobtrusive AJAX you need:<\/p>\n<pre><code>\n\n<\/code><\/pre>\n<p>If you want to use unobtrusive validation you could also include the 2 scripts afterwards (in <strong>THAT<\/strong> order):<\/p>\n<pre><code>\n\n<\/code><\/pre>\n<p>Another very important thing that you should make sure is that you have removed absolutely any traces of <code>Microsoft*.js<\/code> scripts from your project. Those scripts are obsolete and starting from ASP.NET MVC 3 are no longer used by default. Also make sure that youhave enabled unobtrusive AJAX in your web.config, otherwise the system will fallback to the legacy Microsoft ajax scripts:<\/p>\n<pre><code>\n    \n    \n    \n\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve read that the solution is usage of jquery.validate.min.js and jquery.validate.unobtrusive.min.js No, those 2 script have nothing to do with jquery.unobtrusive-ajax.min.js. They are used for unobtrusive validation. For Ajax.* helpers all you need is jQuery and jquery.unobtrusive-ajax.min.js (included in THAT order). So for unobtrusive AJAX you need: If you want to use unobtrusive validation you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3793","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3793"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3793\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}