Hello,
Je comprends pas pq jquery n'arrive pas à parser mon xml qui est pourtant okay. je vous montre:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
function powa() {
    var xhr = $.ajax({
        type: "POST",
        url: "sbh.php",
        dataType: "xml",
        data: "hd=" + $("#hd").val() + "&hf=" + $("#hf").val(),
        error: function(xhr, a, b){
             alert(a);
             alert(b);
         },
 
        success: function(xml) {
            //blabla
    });
}
Et il me répond:
a = parsererror
b =
Code : Sélectionner tout - Visualiser dans une fenêtre à part
Error: Invalid XML: <?xml version="1.0" encoding="utf-8"?> <trucs><truc a="6" b="bidule" c="3"/></trucs>
Merci de votre aide !