$('#maxpage').change(function(event){
var pars = "max="+this.value;
$.ajax({
url: "${createLink(controller: 'Search', action: 'searchProfile')}",
type: 'POST',
data: pars,
asynchronous:false,
success: function(data) {
location.reload();//reload the page on the success
},
});
});
location.reload();
I want reload the whole page in the success
function でエラーがスローされますが、エラーが発生します。