PDA

View Full Version : importing xml, calling cross domain.



lammie1971
4 Jan 2011, 6:31 AM
Hi, I am trying to call a XML file using the following code and view it on my local server.

The code is as follows: (domain substituted).

$(document).ready(function() {
$.ajax({

type: "GET",

url: "http://www.myremotefile.com/xxx.xml",
dataType: "xml",
success: parseXml,


error: errorMsg
});
appropriate function....
});


Can anyone help please?

Thanks, Paul.