Why are my AJAX requests failing? I have a website
www.foo.com
, and I'm running Tomcat on the same server, www.foo.com:8080/services
. However, when a file on foo.com
makes an ajax call as such:
$.get("http://foo.com:8080/services/action.do", null, myCallback );
I get an error response, rather than the xml document I get if I manually browser to the url given above. What could be going wrong here?