I believe my load method is sometimes caching and I want to disable this.
I'm currently using:
function getClient(date, appId) {
$("#cPlaceholder").load("/GetClient?id=" + appId+",
function () {
$('#clientModal').modal('show');
});
}
But I've read that I should use ajaxSetup so changed to..
function getClient(date, appId) {
$.ajaxSetup ({
url:"/GetClient?id=" + appId+",
cache: false,
success: function(result){
("#cPlaceholder").html(result);
$('#cPlaceholder').modal('show');
}
});
}
But this does not seem to execute? Any ideas?