How to reload the contents of a popup (modal)

0

I have a form that one of the buttons when you click opens a popup (modal). Inside this popup I have a simple crud to insert, edit and delete people. When I click on one of these options, a new form opens in a new tab. I wanted to know how I can after saving / editing / deleting this tab, I close this tab and update my modal that was open in the previous page. I already managed to make the flap close, but I can not update the popup, or else make it reopen.

    
asked by anonymous 17.03.2015 / 15:58

1 answer

0

You can use the window.opener and re-assign the location.href itself. This will work as a re-load of the page that opened it:

<script>
    window.opener.location.href = window.opener.location.href;
</script>
    
17.03.2015 / 16:21