Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Requesting XML from remote server

$
0
0

Hey Guys

 

I'm attempting to request an XML file from a remote server using the following function (I have removed the actual URL and variables):

 

function requestData() {

$.ajax({
  url: "xmlFile.xml",
  //url: REMOTE
  type: "GET",
  dataType: "text/xml",
  data:{"fileId":"REMOVED","var2":"REMOVED"},
  success: function(data) {
   alert("Successfully loaded XML file " + $(data).text());
  },
  error: function(xhr, status, error) {
   alert("error - " + xhr +" - "+ status +" - "+ error);
      }
});
}

 

Now it works just fine using the local ticket (xmlFile.xml) and it works fine in Chrome requesting the file from the remote server. However, it doesn't work in Internet Explorer, I get a 'No Transport' error.

 

Where am I going wrong with this and what could I do to make it work in IE?

 

Cheers


Viewing all articles
Browse latest Browse all 9897

Trending Articles