title: how to remove this error "Uncaught TypeError: Cannot read property 'translatedText' of null "
body: <p>I have exactly same Question 
  <a href="https://stackoverflow.com/questions/919522/how-can-i-use-google-translate-via-ajax-using-jquery">How can I use Google Translate via Ajax using jQuery?</a>
  trying to change text using google api .But I am getting this 
  Uncaught TypeError: Cannot read property 'translatedText' of null.
  I am trying to get "hello world" in different language  (like french and german).can you please tell me how I will achieve this ?</p>
  
  <p><a href="http://jsfiddle.net/n0217sn0/" rel="nofollow noreferrer">http://jsfiddle.net/n0217sn0/</a></p>
  
  <pre><code>$.ajax({  
      url: 'https://ajax.googleapis.com/ajax/services/language/translate',  
      dataType: 'jsonp',
      data: { q: 'Hello world!',  // text to translate
              v: '1.0',
              langpair: 'en|es' },   // '|es' for auto-detect
      success: function(result) {
          alert('dd');
          console.log(result)
          alert(result.responseData.translatedText);
      },  
      error: function(XMLHttpRequest, errorMsg, errorThrown) {
                  alert('dddd')
  
          alert(errorMsg);
      }  
  });
  </code></pre>
  
  <p>Thanks</p>