function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

actionstatus stoptext not working



I want to display the stop text when the AJAX request completes but it is showing when loading the page (even before pressing the button). I can't see why, any ideas?



<apex:page showheader="false" controller="RequestDetailsViewController" standardStylesheets="false">
<apex:form >
<apex:pageBlock >
    <apex:pageBlockSection title="Request Details">
    <apex:pageBlockSection >
    <apex:outputPanel styleclass="button">
           <apex:actionStatus id="process1" startText="(processing..)" stoptext="done"/>
           <apex:commandButton value=" Approve " action="{!approveRequest}" status="process1"/>
           <apex:actionStatus id="process2" startText="(processing..)"/>
           <apex:commandButton value=" Reject " action="{!rejectRequest}" status="process2"/>




Abhinav GuptaAbhinav Gupta

We faced the similar problem, though we are using some overlay on ajax request. So we are using onstop attribute for this.



<apex:actionStatus id="ajaxStatus" onstart="show()" onstop="hide()" /> 


show(), hide() methods show the DIV for Ajax Status.