
Hi All,
I am trying to reload the Parent page from child page on save. I am using the below code to refresh it.
window.parent.opener.location.reload(true);
This code is working fine for the first time I save the child record. But if i am staying on the same child page and modified something on the page then saving the record. now i am getting the error as Permission denied.
This error is coming because, in the code "window.parent.opener.location.reload(true)" is not able to find location value.
the location value is coming as {...}.
Any help is appreciable.
*This post is locked for comments
I have the same question (0)Hi Ashok,
Try to get parent window in the OnLoad Event of the child. And store it in the Cache of your navigator with a unique name. To do it use JQuery.
And when you try to save your child form, if you find directly your window parent you can use this window.parent.opener.location.reload(true) otherwise you retrieve your object using the same name from Cache.
This is the code :