Hello,
I'm using jQuery to make an AJAX call to a remote server, but with the code as it is (and ostensibly correct) I get an empty response. If I change the dataType to "script," I get the expected XML in the response, but I'm unable to do anything with it. Here's some pseudocode I'm working with:
function sendData(data) { $.ajax( { type: "GET", url: "remote_server", dataType: "xml", data: "parameter=" + data, complete: function(xml) { console.info('XML result is',xml); }, contentType: "text/xml; charset=utf-8" }); }
A few additional things to note are that I'm using a local .htm file to call the remote server. When I use a Web browser (http://remote%5Fserver/page?parameter=value), I get a valid XML response. Finally, the XML response header has encoding type of ASCII, though I've also tried changing the charset value in my code to ASCII with the same result.
I appreciate any help you can provide.