title: How do I use MicrosoftMvcValidation.js without having to include MicrosoftAjax.js?
body: <p>It looks like there's an issue in MVC 2 RC1 if you want to use jQuery.Validate but not the main Microsoft AJAX - which is 25kb even when gzipped.</p>
  
  <p>According to Phil Haack you're supposed to be able to <a href="http://haacked.com/archive/2009/11/19/aspnetmvc2-custom-validation.aspx" rel="nofollow noreferrer">just include these scripts</a>:</p>
  
  <pre><code>   &lt;script src="/Scripts/jquery-1.3.2.js" type="text/javascript"&gt;&lt;/script&gt;
     &lt;script src="/Scripts/jquery.validate.js" type="text/javascript"&gt;&lt;/script&gt;
     &lt;script src="/Scripts/MicrosoftMvcJQueryValidation.js" type="text/javascript"&gt;
  </code></pre>
  
  <p>Unfortunately in some reorganization they did between Beta and RC - you also now need to include <code>MicrosoftAjax.js</code> which defines the <code>Type</code> prototype functions that are used by <code>MicrosoftMvcJQueryValidation.js</code> (the first line is <code>Type.registerNamespace('Sys.Mvc');</code> which is defined in <code>MicrosoftAjax.js</code>)</p>
  
  <p>Has anyone already extracted out the necessary code from <code>MicrosoftAjax.js</code> that is needed?
  I'll have to do it sooner or later but if anyone has already done it that would help a lot!</p>