title: Ajax call from localhost or using full URL to live server not working
body: <p>I have a webpage on live server. Suppose 'www.mydomain.com/server_script/test.php' this one. Now I'm making a AJAX call from localhost like</p>
  
  <pre><code>var data={
                      type:'data1'                           
  
                  };
  
                  jQuery.ajax({
                            url: 'http://www.mydomain.com/server_script/test.php',  //load data 
                            global: false,
                            type: "POST",
                            dataType: "xml",
                            data: data,
                            async: false, 
                            success: loading_complete
                  });
  </code></pre>
  
  <p><strong>It supposed to provide me a XML structure.</strong> But it's not working. It doesn't provide anything also not showing any error. </p>
  
  <p>When I'm working with all local files, it's working properly. like</p>
  
  <pre><code>var data={
                      type:'data1'                           
  
                  };
  
                  jQuery.ajax({
                            url: 'server_script/test.php',  //load data 
                            global: false,
                            type: "POST",
                            dataType: "xml",
                            data: data,
                            async: false, 
                            success: loading_complete
                  });
  </code></pre>
  
  <p>But I need to retrieve data from web server. <strong>This is required because I need to fetch data from one site and collect it from another.</strong> </p>
  
  <p>I've also tried to put the calling page in live server and call the file as 1st code sample, it didn't work either. It only works as with the 2nd code sample. </p>
  
  <p>I'm novice to Jquery Ajax and php. Am I missing something? How can I make a call to a page that is hosted on a different domain and get the response in XML?? Please help.........</p>