title: Linking jQuery UI to the ASP.NET MVC 2 project
body: <p>What I am trying to accomplish is using jQuery UI dialog method from my own JavaScript source code file. I have this kind of links in the Site.Master</p>
  
  <pre><code>&lt;script src="/Scripts/jquery-1.4.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/jquery-ui.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/Scripts/Common.js" type="text/javascript"&gt;&lt;/script&gt;  
  </code></pre>
  
  <p>Common.js is my own helper file. jQuery works fine there, but when I try to call for example:</p>
  
  <pre><code>$(document).ready(function() {
      $("#dialog").dialog();
  });
  </code></pre>
  
  <p>I'll get "Microsoft JScript runtime error: Object doesn't support this property or method"</p>
  
  <p>Any ideas why this happens? jQuery Works fine, but jQuery UI doesn't.</p>
  
  <p>Additional question: if I use jquery-ui.js, do I need other files like core, dialog etc. or does it really contain everything?</p>