title: Cross domain request on Google Weather XML
body: <p>I want to grab the google weather xml, using ajax call but I 'm getting the following error:</p>
  
  <pre><code>405 Method not allowed
  </code></pre>
  
  <p>Its always been a trouble to make a cross domain call, I know we can do it using jsonp but the api is returning xml.</p>
  
  <pre><code>var weather= function(){
  
  url = 'http://www.google.com/ig/api?weather=karachi';
  var gurl = "http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&amp;q=" +escape( url);
  
  
  /*SERVER CALL FOR CROSS DOMAIN*/
  //ServerCallRAW('http://www.google.com/crossdomain.xml', function(_dataCD){
  
      //console.log(_dataCD);
      ServerCallXML(url, function(_dataAPI){
  
          console.log(_dataAPI);
      //});
  });
  
  };
  
  
  function ServerCallXML(_url,callback) {
      $.ajax
      ({
          type: "GET",
          url: _url,
          dataType: 'xml',
          //contentType: "application/json; charset=utf-8",
          contentType: "text/xml; charset=iso-8859-1",
          async: false,
          //data: {'json':'{"username":"' + username + '", "password":"' + password + '"}'},
          success: function (result) {
              callback(result);
          }
      });
  };
  </code></pre>
  
  <p>thanks</p>