Kod
$(document).ready(function(){
updateComments();
function showComments(xml) {
$('#comments_box').html('');
$("comment",xml).each(function(id) {
comment = $("comment",xml).get(id);
$('#comments_box').append("<div class=\"comm\">"+$("content",comment).text()+"</div>");
});
}
function updateComments() {
$.post("./backend/getComments.php", { } , function(xmlData) {
showComments(xmlData);
});
setTimeout(updateComments, 10000);
}
});
updateComments();
function showComments(xml) {
$('#comments_box').html('');
$("comment",xml).each(function(id) {
comment = $("comment",xml).get(id);
$('#comments_box').append("<div class=\"comm\">"+$("content",comment).text()+"</div>");
});
}
function updateComments() {
$.post("./backend/getComments.php", { } , function(xmlData) {
showComments(xmlData);
});
setTimeout(updateComments, 10000);
}
});
Jest on kompatybilny z wszystkimi fajnymi przeglądarkami, jednak nie działa pod żadną werją IE. Co może być powodem ?