关于选项 UploadProgress,我对$(a).AjaxSubmit
of有疑问。jQuery.Form
这是我的代码:
$("#ifrm").contents().find("form").ajaxSubmit({
data: { " + datos + " },
target: "#sbmt",
forceSync: true,
uploadProgress: function(event, position, total, percentComplete) {
alert(percentComplete);
},
success: function(html, status) {},
complete: function(xhr) {
if (xhr.statusText == "OK") {
eval(xhr.responseText)
}
else {
msgbox("Error en el Formulario", "Se produjo un error al subir el archivo.", 1);
return false;
}
}
});
警报永远不会出现。我需要进度条的事件。