I am developing a website in MVC 4, where user fill some information and save it to upload. all the information except image is being saved on server using Javascript, Json
$(document).ready(function(){
var status = $('#status');
$('#frmUpload').ajaxForm({
beforeSend: function () {
if ($("#file").val() != "") {
$("#progressDiv").show();
}
status.empty();
},
success: function () {
showTemplateManager();
},
complete: function (xhr) {
if ($("#file").val() != "") {
var millisecondsToWait = 500;
setTimeout(function () {
$("#progressDiv").hide();
}, millisecondsToWait);
}
status.html(xhr.responseText);
}
});
});