I have an embedded visualforce page which calls a controller method on load.
<apex:page name="calloutPage" standardController="Case" extensions="WsCallout" action="{!getSomething}" standardStylesheets="false" >
Is there a way to call a javascript function after the controller method finishes execution, something similar to an oncomplete on a commandbutton? I am looking to reload the case page after the inline visualforce page's action call is complete.
function caseload(){
window.top.location='/{!Case.id}'; return false;
}
UPDATE: The idea is to do a callout to an external web service on page load and based on the values coming in, update some case fields. The case fields are getting updated as expected. However, the UI still shows the old values. If the page is refreshed a second time the UI shows the new values.