I've a function to Edit fields of the MVC table bootstrap. But it gives me an error everytime i use thi function.
<script>
function createOrEdit(id) {
$.ajaxSetup({ cache: false });
var EditUrl = '@Url.Action("CreateOrEdit")' + '/' + id;
$("#modalCreateOrEditContent").load(EditUrl, function () {
$("#modalCreateOrEdit").modal({
keyboard: false
}, 'show');
});
return false;
}
</script>
and the error is:
jquery.min.js:4 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience
How to solve it?