You need to sign in to do that
Don't have an account?

Refresh parent window when save and close iframe popup
Hi
I am working with projects and project contains several task .
when i selected project , i will show all task it contains.
if task clicked , it will open iframe popup. after editing that page need to save and close the iframe popup .and refresh the parent project page.
I did save and close edit task page . but the parent window doesn't refresh.
closing popup iframe done by jquery
lilke
parent.parent.j$("#project-modal").trigger('reveal:close');
if i give window.parent.reload();
doesn't work
any help appriciated
thanks
Karthik
Hi Karthik,
Could you please try this code:
top.window.opener.location.href = top.window.opener.location;
This will refresh the parent window.
Thanks
Subha
Hi
I tried that code but no refresh happen.
i alert parent page location by
alert(parent.parent.window.location);
it works but when i try
top.window.opener.location.href =parent.parent.window.location;
doesn't get result
Then try
parent.parent.window.location.href =parent.parent.window.location;
try this:
top.window.onunload=function()
{
parent.window.opener.location.href="/{!$CurrentPage.Parameters.opid}";
}
you can replace the url accordingly,this has worked for me although IE 9 has some issues.
Also, if the pop up is visualforce page and parent page is standard page than you will not be able to do the refresh.
make a vf page and put the detail page in that.
there are some restriction related to domain when refrshing parent window.