title: ajax loaded content, script is not executing
body: <p>I am using jquery address plugin for loading pages, but without hash(#).</p>
  
  <p>index.html:</p>
  
  <pre><code>&lt;a href="page.html"&gt;Link&lt;/a&gt;
  &lt;div id="content"&gt;
  
      &lt;script&gt;
  
          $(document).ready(function() {
  
              $.address.init(function(event) {
  
                  $('a').address();
  
              }).change(function(event) {
                  // do something depending on the event.value property, e.g.
                  console.log(event.value);
  
                  $.ajax({
                      type: "POST",
                      url: event.value,
                      success: function(msg){
                          $('#content').html( $(msg).find("#content").html() );
                      }
                  });
              });
              $('a').click(function(e) {
                  $.address.value($(this).attr('href'));
  
              });
          });
  
      &lt;/script&gt;
  
  
  &lt;/div&gt;
  </code></pre>
  
  <p>page.html:</p>
  
  <pre><code>&lt;div id="content"&gt;
      &lt;p&gt;text&lt;/p&gt;
      &lt;script&gt;
          $(document).ready(function() {
              alert('loaded');
          });
      &lt;/script&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>In #content div will be loaded #content html from page.html(maybe i should use other function, not .html(), correct me please), in that div is script tag, but i dont get alert when that page is loaded from ajax, it works on without ajax loading.
  Can someone help me ?</p>
  
  <p>EDIT:
  I am getting this error when i'm trying to click on link with js function:</p>
  
  <p><code>XMLHttpRequest cannot load javascript:;. Cross origin requests are only supported for HTTP.</code></p>
  
  <p>DEMO: <a href="http://fbstatusi.com/desavanja/kalendar/mesecna_lista" rel="noreferrer">http://fbstatusi.com/desavanja/kalendar/mesecna_lista</a></p>
  
  <p>click on link <code>Zurka 123</code></p>