Node is saved as draft in My Content >> Draft
-
Abort previous ajax request before giving other
To abort previous ajax request before giving another
var lastXHR;
$("#ccode2").change(function (){
lastXHR && lastXHR.abort && lastXHR.abort();
lastXHR=$.ajax({
type: "POST",
.................//your code//
})
})
Here lastXHR is aborted first before starting a new one.
0 Comment(s)