Possible Duplicate:
request content on another domain/server
am trying to make an ajax request to a php code using xmlHTTPrequest, my application works on tomcat server, and am trying to make a request to PHP code in WAMP server (different server with request URL localhost), my PHP code simply receives a parameter,makes a query in a PostgreSQL database,and returns the result in XML format...my main problem is how to send the ajax request to that PHP code from my application that run on Tomcat with URL localhost:8080... any help will be appreciated, thanks