I use a VF Component and it's embedded in an inline Visualforce page. I have a button called 'Submit' in the Component. I want to refresh the whole Object record page instead the Visualforce page when I click on 'Submit'. I tried giving the following, adding onclick="top.location.reload(true);" but it seems not to be working. Any help on this would be appreciated!
<apex:commandButton value="{!$Label.Submit_Button}" action="{!saveRatings}" onclick="top.location.reload(true);" />
Best Answer
Please try using,
The main problem is that inline page will be in visualforce domain(eg ap1.visualforce.com) and main page will be in salesforce domain(eg ap1.salesforce.com). There are security restrictions regarding cross domain javascript.