Skip to content

Instantly share code, notes, and snippets.

@thams017
Last active March 8, 2018 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thams017/aaf8913a21e9aa4ce11760fec87134b8 to your computer and use it in GitHub Desktop.
Save thams017/aaf8913a21e9aa4ce11760fec87134b8 to your computer and use it in GitHub Desktop.
Loading Icon Image while saving record
public class actionStatusImage {
public Pagereference save(){
return null;
}
}
<apex:page controller="actionStatusImage" tabStyle="Account">
<apex:form id="formId">
<apex:pageBlock id="pgBlckId" title="Loading Image">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save" reRender="pgBlckId" status="actStatusId"/>
<apex:actionStatus id="actStatusId" >
<apex:facet name="start" >
<img src="/img/loading.gif" />
</apex:facet>
</apex:actionStatus>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment