Last active
March 8, 2018 14:14
-
-
Save thams017/aaf8913a21e9aa4ce11760fec87134b8 to your computer and use it in GitHub Desktop.
Loading Icon Image while saving record
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class actionStatusImage { | |
public Pagereference save(){ | |
return null; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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