title: Get Chinese Romanization from Google Translate API
body: <p>The Google language translate API works cleanly to translate into Chinese:</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://www.google.com/jsapi"&gt;&lt;/script&gt;
  &lt;script&gt;
    google.load('language','1');
    function googletrans(text) {
      google.language.translate(text,'en','zh',function(result) {
        alert(result.translation);
      });
    }
  &lt;/script&gt;
  &lt;input onchange="googletrans(this.value);"&gt;
  Example input: "Hello"
  Result: "你好"
  </code></pre>
  
  <p>My problem is I can't get the Romanization (pronunciation using English letters).  This is a <a href="http://code.google.com/p/google-ajax-apis/issues/detail?id=381" rel="noreferrer">known issue</a>.</p>
  
  <p>Now the data is right there on translate.google.com (Example input: "Hello" Result: "Nǐ hǎo") and I can even see it by pointing my browser to:</p>
  
  <pre><code>http://translate.google.com/translate_a/t?client=t&amp;text=hello&amp;hl=en&amp;sl=en&amp;tl=zh-CN&amp;otf=2&amp;pc=0
  Result:
  {"sentences":[{"trans":"你好","orig":"hello","translit":"Nǐ hǎo"}],
   "dict":[{"pos":"interjection","terms":["喂"]}],"src":"en"}
  </code></pre>
  
  <p>But somehow when I try to get this URL with ajax it fails (XMLHttpRequest Exception 101).  Is there any way to retrieve this Romanization data with ajax?</p>