views:

40

answers:

1

The following URI works in my browser (getting back the intended xml file):

http://ipaddress:port/server/gate?Command=GET%26info

But when I write the following to work with jQuery, it doesn't. The response is 200 OK but I get a blank XML file.

$(document).ready(function() {
          $.ajax({
            type: "GET",
            url: "http://ipaddress:port/server/gate?Command=GET%26info",
            dataType: "xml",
            success: parseXml
          });
    });

I tried replacing the %26 with & but that doesn't work either. Is there something I am fundamentally doing wrong?

A: 

If you have access to the server that serves the xml, you can now in FF3.5 and IE8 and more use CORS - cross origin resource sharing. It works like magic

Example here in my question which has not yet been answered

mplungjan