Activity Forums Salesforce® Discussions How to show loading image while Ajax call in Salesforce Visualforce?

  • shariq

    Member
    September 22, 2018 at 10:07 pm

    <div style="position:absolute;top:20px;left: 50%;">
    <apex:actionStatus id="refreshContent" >
    <apex:facet name="start" >
    <apex:image url="{!$Resource.LoadingImage}" />
    </apex:facet>
    </apex:actionStatus>
    </div>

  • Parul

    Member
    September 23, 2018 at 4:26 am

    The content of your actionStatus tag will show when you reference it from for example an actionPoller or actionSupport.
    The actionSupport tag in the example below is placed within a apex:selectList tag.

    <apex:actionSupport action="{!someAction}" event="onchange" reRender="someBlock" status="refreshContent"/>

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos