Я проверил это на Firefox, то есть и работал.Но при тестировании на chrome я вижу в консоли firebug, что запрос никогда не загружается .
Это тестовая страница: http://gotune.to/index2.php
А вот и функция+ $ .ajax () запрос.
function getProgress(id) {
$.ajax({
type: 'POST',
cache: false,
url: "getprogress.php",
//Pass our upload identifier as a parameter.
data: {uid: id},
success: function (d) {
//Get the output as an integer.
var progress = parseInt(d, 10);
//If upload progress is not 100, change bar percentage and update again.
if (progress != '100') {
$('#ProgressBar').css('width', progress + '%');
//We aren't done, update again.
getProgress(id);
}
}
});
}
ОБНОВЛЕНИЕ
Пробовал с
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(textStatus+" - "+errorThrown);
}
Но все еще не работает.1019 *