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();
});
Hi, I am using ajax function to upload a profile picture. In firefox and google chrome after uploading the profile picture, the page is loading automatically and the new profile picture is visible, but in IE, even the page is loading the profile picture is not updating, if we refresh the page once again then the profile picture is coming.