You need to sign in to do that
Don't have an account?
Swamy P R N
Refreshing parent window
Hi Guys,
I created a Button and displaying on Record Detail Page.This button opens a small VF Page.In that page i wrote some logic,when my functionality is done at that time i need to refresh the parent window as well as i need to close the child(opened) window.
I wrote like the below one, closing is working but its not refreshing parent record ID.
1st Trail :
top.parent.window.opener.location.href = "/{!rew.id}";
top.window.close();
2nd Trail :
window.opener.location.reload();
window.top.close();
Both are not working...can you justify..
I created a Button and displaying on Record Detail Page.This button opens a small VF Page.In that page i wrote some logic,when my functionality is done at that time i need to refresh the parent window as well as i need to close the child(opened) window.
I wrote like the below one, closing is working but its not refreshing parent record ID.
1st Trail :
top.parent.window.opener.location.href = "/{!rew.id}";
top.window.close();
2nd Trail :
window.opener.location.reload();
window.top.close();
Both are not working...can you justify..
use below line for refreshing parent window.
window.top.location='/{!rew.id}';
Its refreshing on same window,but i needed to refresh on parent window i.e, where i open that window in that place.