title: Retrieve JSON data from remote URL via jQuery AJAX
body: <p>I am using following code to get the data from URL.</p>
  
  <pre><code>$.ajax({
      url: 'http://183.77.251.173:90/api/function/getprice.aspx?code=1301&amp;length=3M',
      success: function (data) {
          alert(data.results[0].address_components[0].long_name);
      },
      error: function (jqXHR, exception) {
          alert(jqXHR.status);
      }
  </code></pre>
  
  <p>However it throws an error with status code of <code>0</code>. I don't know what the reason is for this? I tried to set <code>crossDomian:true</code> also but it still throws same error.</p>
  
  <p>I also modified the URL to <code>http://www.google.com</code> which also returns the error status code of <code>0</code>. Why? What is the reason? What is the correct way to get the data from a remote URL?</p>