1 Reply Latest reply on Nov 22, 2013 10:46 AM by elainecc

    Requesting XML from remote server

    LordMysterious Level 1

      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