title: ASP .NET MVC - script reference inside partial view loaded by jQuery Ajax
body: <p>Ok. I have this code to load my form:</p>
  
  <pre><code>    $.ajax({
          type: "GET",
          url: "/Board/Post/QuickEditPost",
          data: dataString,
          success: function (data) {
              $('#quick-edit-content').html(data);
          }
      });
      $('#quick-edit-dialog').dialog('open');
  </code></pre>
  
  <p>It's working fine. Form is loaded, I can edit my post and so on.
  But to make it fully functional I need:</p>
  
  <pre><code>    &lt;script src="@Url.Content("~/Scripts/tiny_mce/jquery.tinymce.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/tiny_mce/tiny_mce.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      tinyMCE.init({
          theme: "advanced",
          height: "450",
          width: "600",
          mode: "textareas"
      });
  </code></pre>
  
  <p></p>
  
  <p>Which is not loaded into jQueryUI dialog.
  And my question is why is not loaded and how to overrride this behavior.I tried to put those references in head section, but that's not an real option, I need then in few specific places over entire application. Not to mention it doesn't work either.</p>