나는 이미지 업 로더로 작업 중입니다. 문제는 이미지 업 로더가 아약스 진행률 표시 줄 이미지 만 표시하지만 비율은 표시되지 않는다는 것입니다.백분율로 Ajax 로딩 진행률 표시 줄
진행률 표시 줄과 관련하여 아래 코드에 백분율을 어떻게 구현할 수 있습니까?
jQuery.itemForm.submitFormIfNotImageLoading = 기능으로 인해 통신이 클라이언트 - 서버 당신이 할 수없는 디스플레이 비율 을 가진 영구 연결 하지 않고 있다는 사실에 {
if (jQuery.uploaderPreviewer.loadingImages()) {
if(loadingTime > $.itemForm.loadingTimeout) {
var settings = {
title: $.itemForm.messages.timeoutTitle,
message: $.itemForm.messages.timeoutMessage,
buttons: { 'OK': function() { $(this).dialog("close"); } }
};
$.globalFunctions.openDialog(settings);
}
else {
loadingTime += $.itemForm.checkingIntervalTime;
var progressBarValue = $("#progressbar").progressbar('value')
+ $.itemForm.progressBarInterval;
$("#progressbar").progressbar('value', progressBarValue);
var recursiveCall = "$.itemForm.submitFormIfNotImageLoading(" + loadingTime + ")";
setTimeout(recursiveCall, $.itemForm.checkingIntervalTime);
}
}
else {
submitForm();
}
};
function showImageLoadingMessage() {
var options = {
title: $.itemForm.messages.savingTitle,
message: $.itemForm.messages.savingMessage
};
$.globalFunctions.openDialog(options);
$("#progressbar").progressbar({
value: 0
});
var progressBarInterval = $.itemForm.checkingIntervalTime * 100/$.itemForm.loadingTimeout;
if (progressBarInterval != Number.NaN) {
$.itemForm.progressBarInterval = Math.floor(progressBarInterval);
}
};
HTML5 솔루션이나 기존 학교 방법을 찾고 있습니까? – VAShhh
나는 옛 학교 방법을 찾고있다. – techAddict82