I am popping up a modal dialog using $this->renderAjax , when the button on that modal is clicked, i need it to close the modal and refresh the main page (index) that it was on - if anyone can link me to understand how to do this, thanks
I am popping up a modal dialog using $this->renderAjax , when the button on that modal is clicked, i need it to close the modal and refresh the main page (index) that it was on - if anyone can link me to understand how to do this, thanks
JavaScript on button click:
location.reload();
$('#myModal').on('hidden.bs.modal', function () {
document.location.reload();
})
See the documentation.