可能重複:
request content on another domain/serverAjax請求的代碼放在不同的服務器
想使一個Ajax請求使用XMLHttpRequest的一個PHP代碼,我的應用程序工作Tomcat服務器上,和我試圖在WAMP服務器PHP代碼的請求(不同的服務器請求URL本地主機),我的PHP代碼只是接收的參數,使得在PostgreSQL數據庫的查詢,並將結果返回XML格式...我的主問題是如何將ajax請求發送到該PHP代碼從我的應用程序與本地主機URL在Tomcat上運行:8080 ...任何幫助將不勝感激,謝謝
請不要重複提問: http://stackoverflow.com/questions/1933065/ajax-request-to-different-host http://stackoverflow.com/questions/4011156/how-to-request-different-domain-with-ajax-in-jquery http://stackoverflow.com/questions/8322202/request-content-on-another- domain-server http://stackoverflow.com/questions/7033976/cross-domain-javascript-ajax-request-status-200-ok-but-no-response – rkosegi 2012-03-10 10:41:10
http://cmsnsoftware.blogspot.com/2012/ 02/how-to-use-cross-domain-ajax-request.html, http://stackoverflow.com/questions/8698682/ajax-call-working-fine-in-ie8-and-doesnt-work-in-firefox-and-chrome-browsers/8698786#8698786 – 2012-03-10 10:44:16