This is an Embedded VF page on the standard Contact detail page. I am having a Command button on my VF page with following JS function:
<apex:commandButton value="Click ME" onclick="jsFunction(); return false;"/>
...
function jsFunction(){
if(confirm('Do you want to continue?')){
processing();
}else{
pageReload();
}
}
function processing(){
<!-- Action functions to update the Contact fields-->
pageReload();
}
function pageReload(){
window.top.location.href='/{!Contact.Id}';
}
Page reloads successfully(on two occasions), but I am not seeing the updated value of the Parent Contact record reflecting immediately. I need to refresh the browser window manually to see the new changes. Am I missing something here?