+ Start a Discussion

How to refersh Standard Page layout up on button click on visualforce page

Hi There how are you  ?


I have a requirement when i click button on visualforce page ,button should close the visualforce page and refersh the standard page layout.


basically the button will inserts  records on custom object  after insertinf it should close visulaforce and refersh standard page layout.


I was using parent.location java script function but it is not working it is refershing the visulforfce page .I need to close the visualforce page and refersh standard page layout.

Well Standard pages and Visualforce pages are served from different servers. Probably you wont be able to refresh the standard page due to cross domain policy. Any JS access to parent frame will be declined by the browser.

Thank's Avi, but don't we have anyother way to do that ?