I've used this:
$(document).ready(function () {
$.ajax({
type: "GET",
url: "http://domain.com/languages.php",
dataType: "xml",
success: xmlParser
});
});
function xmlParser(xml) {
$('#load').fadeOut();
$(xml).find("result").each(function () {
$(".main").append('' + $(this).find("language").text() + '');
$(".lang").fadeIn(1000);
});
}
I used a local XML file on my computer, it works fine, but when I change the URL to an website, it just keeps loading all the time...
How do I get this to work?