function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
H_ManH_Man 

Javascript Reload

I've got a custom link that is opening a new window and displaying a page from an external website.  When my users are done I would like to close the window and refresh the SalesForce window so that it reloads showing the users the new data.
 
I've tried the normal Javascript calls, but they don't work, mostlikely because of the cross domain scripting security.
 
Does anyone know of a work around for this?
 
Thanks,
mshelmanmshelman
Have you tried opener.reload() This works fine for me in a similar situation.
H_ManH_Man
I tried that as well, and no luck either....still the Cross-Site scripting security issue.  Too bad there wasn't a method in SalesForce to refresh the page itself when it notices that the Pop-up window closed.
Michael2009Michael2009

You could try:

 

window.opener.location.href = "/" + caseId;

 

it works in Chrome and Firefox, but not working in IE8. I am also looking for a solution for IE.