开发者

jQuery:Something fishy about my URL?

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({
     开发者_C百科       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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜