Je l'ai utilisé ceci:XML Parsing avec jQuery
$(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);
});
}
J'ai utilisé un fichier XML local sur mon ordinateur, il fonctionne très bien, mais quand je change l'URL d'un site Web, il ne cesse de charger tous les temps ...
Comment puis-je faire fonctionner cela?