title: jQuery AJAX and Google Currency calculator
body: <p>I have some code that performs an AJAX call to the google currency calculator.  Which in theory should return a JSON array that i can ten use to get some exchange rate related data.</p>
  
  <p>The Link is:</p>
  
  <blockquote>
    <p><a href="http://www.google.com/ig/calculator?hl=en&amp;q=1USD=?CNY" rel="nofollow">http://www.google.com/ig/calculator?hl=en&amp;q=1USD=?CNY</a></p>
  </blockquote>
  
  <p>Going to the link shows </p>
  
  <blockquote>
    <p>{lhs: "1 U.S. dollar",rhs: "6.49148317 Chinese yuan",error: "",icc: true}</p>
  </blockquote>
  
  <p>My javascript code (<em>I tired this with both POST and GET</em>):</p>
  
  <pre><code>jQuery.ajax({
      type: "GET",
      url: "http://www.google.com/ig/calculator",
      data: "hl=en&amp;q=1USD=?CNY",
      success: function(msg) {
          var currency = $.parseJSON(msg);
          alert (currency ['rhs'];);
     }
  });
  </code></pre>
  
  <p>Examining fire bug shows in <strong>red</strong> with an empty response</p>
  
  <blockquote>
    <p>GET <a href="http://www.google.com/ig/calculator?hl=en&amp;q=1USD=?CNY" rel="nofollow">http://www.google.com/ig/calculator?hl=en&amp;q=1USD=?CNY</a> 200 OK 255ms</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>