title: jquery ajax success loading js
body: <p>I tried to add google plus button in an <code>jquery ajax page</code>, I met some trouble.</p>
  
  <p>my code caused <code>Uncaught TypeError: Cannot read property 'prototype' of undefined</code> and failed loadind js to an ajax page.  So how to solve? Thanks.</p>
  
  <pre><code>$.ajax({
    url: url, 
    dataType: "html",
    type: 'POST',
    data: data, 
    success: function(html){
      $('#result').html(html);
      $('#googleplus').html('&lt;g:plusone href="'+window.parent.document.URL+'" size="tall"&gt;&lt;/g:plusone&gt;');
      $.getScript("https://apis.google.com/js/plusone.js");
    }
  });
  </code></pre>