PDA

View Full Version : target refreshing issue


arne
03-01-2006, 02:33 PM
Hi,
i have webpage where people can delete photos they have uploaded. When they click on 'click here to delete this foto', a popup windows shows up, in wich they can confirm with 'yes' or 'no'. If yes, the photo is deleted, if no, the window closes. THAT works fine, the problem is. If they click yes, the photo gets deleted, but i want the popupwindow to make the original window to refresh, because else it looks like the photo is not deleted (until you refresh). So a popup window should make the main page to refresh.

Anyone?
Thank you very much for your time and your help
Arne

A1ien51
03-01-2006, 02:48 PM
From the child you can call:

window.opener.location.reload();

or

window.opener.location.href = window.opener.location.href;

Eric

arne
03-01-2006, 04:18 PM
ok thank you (the second option didn't work but the first one did !)
THANK YOU VERY MUCH FOR YOUR HELP !