【发布时间】:2013-04-24 12:23:55
【问题描述】:
jQuery.ajax(this.action, {
data: jQuery(":text", this).serializeArray(),
files: jQuery(":file", this),
iframe: true,
processData: false
}).complete(function(data) {
document.getElementById('jform_profile_Photo').value=data;//alert('Hiiiii')
//document.getElementById('fields-container').innerHTML= 'Image changed !';
window.location.reload();
});
您好,我正在使用 ajax 功能上传个人资料图片。在firefox和google chrome上传头像后,页面会自动加载,新头像可见图片来了。
【问题讨论】:
-
如果我不使用任何重新加载功能,在 firefox 和 google chrome 中工作正常,但在 IE 中不行。如果我使用任何重新加载功能,例如 window.location.reload();或 window.location.reload(true);