0

I have so many records to print. I need "EDIT" and "DELETE" for that in one page so, I just made listing (that name list.php) with EDIT DELETE Link.

I used JS to open NewWindow(listedit.php) when Click on Edit. Records have been updated from that poupup window. When records has been updated I want to reload my list.php when record have been updated from listedit.php I want to reload the list.php.

can any one suggest where and with what I can do it?

Hemi
  • 829
  • 1
  • 9
  • 12
  • Related/possible duplicate: http://stackoverflow.com/questions/3762329/refresh-the-parent-window-from-the-child-window-in-javascript – bcmcfc Oct 25 '12 at 10:28

1 Answers1

2

in your popup page:

$('#closeButton').click(function(e) {
    window.opener.location.reload(true);
    window.close();
    e.preventDefault();
});

this lines reloads the parent page and closes the popup.

Vahid Chakoshy
  • 1,497
  • 15
  • 27