Skip to main content

Posts

Showing posts from August, 2014

Refreshing Parent Window of Inline Visualforce Page from Child Window Opened from Inline Visualforce Page

The problem statement is From Inline Visualforce We need to open a Child window and then from that child window we need to refresh the Parent window of the Child window or redirect Parent window of the child window .

Last night ,I was struggling on how to redirect the Parent Window from the child window that was opened from the Inline window 
I tried hard on how to solve this ,but finally last resort was to post the query on salesforce stackexchange .The below is the link for the same
http://salesforce.stackexchange.com/questions/46192/how-to-refresh-the-parent-window-after-opening-a-pop-up-window-from-inline-page
The error was due to Javascript security of web browser .
I tried the below script on the child window
<script> function test(){ alert('hello'); window.opener.top.location.href='https://googleflowauth-dev- ed.my.salesforce.com/001900000096agv'; } </script>
Unsafe JavaScript attempt to initiate navigation for frame with URL 'https:/…