title: How to get external html page content using jquery or ajax
body: <p>There's this question a friend asked me today and it's bugging me all day long. I have plowwed tens of forums searching for the right way <strong>To get an external html content and show it on my page</strong>.</p>
  
  <p>I want to address to <code>http://www.someExternalURL.com</code> and to retrieve all the html from this page.
  I tried the following:</p>
  
  <pre><code>$.ajax
  ({
      url: "http://www.someExternalURL.com",
      type: "GET",
      cache: false,
      crossDomain: true,
      data: {},
      jsonp: 'jsonCallback',
      dataType: "jsonp",
      success: function (data) {
          alert('good');
          jsonCallback = data.Result;
      },
      error: function (e) {
          alert(e.responseText);
      }
  });
  </code></pre>
  
  <p>Didn't work.</p>
  
  <p>Then I tried:</p>
  
  <pre><code>var all;
  $.get("http://localhost:60939/About.aspx", function (my_var) {
      alert(my_var);
  }
  </code></pre>
  
  <p>Only that the latter is good only for local pages. <strong>AND I NEED AN EXTERNAL</strong></p>
  
  <p>Any help'd be much appreciated.</p>
  
  <p>Thanks in advance</p>