title: Javascript on loaded page not executed
body: <pre><code>// Change the value of the outputText field
  function setAjaxOutput(){
      if(httpObject.readyState == 4){
          document.getElementById('maincontent').innerHTML = httpObject.responseText;
      }
  }
  </code></pre>
  
  <p>i try to load a page which contain this script </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function() {
  alert('dfd');
  $("#formAddUser").validate({
      rules: {
          userImage: {
              required: true,
              accept: "png|jpg|gif|jpeg"
          }
      }
  });
  });
  &lt;/script&gt;
  
  &lt;div class="content-box"&gt;
  &lt;div class="content-box-header"&gt;
  ........................
  </code></pre>
  
  <p>Why javascript on loaded page not executed? Thank you.</p>