You need to sign in to do that
Don't have an account?

Progress bar?
HI,
Could you please help me in implementing a progress bar on a VF page.
I have a button which implements add functionality. I need some progress image kind of thing will appear when i click the button.
For Example - when we place a cursor on any field in recent items (Homepage) . A circle kind of loading appers.
Regards
Hi Siddhartha,
For displaying operation in progress, you can use tags like <apex:actionStatus> & <apex:facet>.
You can refer to following code which uses actionStatus.
<!-- Page: -->
<apex:page controller="exampleCon">
<apex:form>
<apex:outputText value="Watch this counter: {!count}" id="counter"/>
<apex:actionStatus startText=" (incrementing...)"
stopText=" (done)" id="counterStatus"/>
<apex:actionPoller action="{!incrementCounter}" rerender="counter"
status="counterStatus" interval="15"/>
</apex:form>
</apex:page>
/*** Controller: ***/
public class exampleCon {
Integer count = 0;
public PageReference incrementCounter() {
count++;
return null;
}
public Integer getCount() {
return count;
}
}
Similarly, you can refer to Visualforce developer's guide.
Thanks,
Sachin Sankad.