I have a table where the user can delete a record. When they select delete, they are presented with a popup confirmation window.
When the user confirms, the record should be deleted (this works perfectly), and the popup window should close (this also works perfectly), and finally the parent window should refresh removing the deleted record from the table.
This is the part that does work. I've tried all sorts of combinations of the following code and I've no idea what I'm doing wrong since the parent seems to refresh a little, but there is no change to the page. If I then refresh manually, the table updates and the deleted record disappears.
Ideas what could be the problem?
<form action="" method="post" name="confirm_delete" target="_parent" id="confirm_delete" onclick="self.close(); window.opener.location.reload();" alt="refresh">
<input type="submit" name="Delete" id="Delete" value="Remove Guest" />
<input name="guestid" type="hidden" id="guestid" value="<?php echo $row_guest_select_remove['guestid']; ?>" />