I have the following :
$.ajax({
type: "post",
url: "something.cfm",
data: formData,
cache: false,
success: function (result) {
$("#formSub").html(
'<input type="button" name="btnSave" id="btnSave" class="submitButton save" value="Save" disabled="disabled"/>'
);
},
error: function (xmlHttpRequest, status, err) {
confirm("Error!" + err);
},
});
On IE8 or IE7, sometimes the success function does not run and the disabled btnSave does not appear. So, people keep submitting the same form over and While working on another application, I found out that the cache:false
does not seem to work.