Skip to main content

Posts

Showing posts from February, 2015

LOADING ICON IN VISUALFORCE PAGE

When you develop a Visualforce page, many time you have some action in  AJAX  inside the page, in this case you need a loading icon.  First you need to notify the user that the action is in progress and second you don’t want the user to trigger other action in the page since the previous one didn’t finish. Salesforce does not provide any visualforce component for doing this. So I will provide you a visualforce component that will solve this problem and that will be very easy to integrate to your page. The loading animation will look like that Loading Animation Define the Visualforce component Let’s create a Visualforce component that will hold the loading icon on top of a div that will hide the page when loading is triggered. You don’t need any static resource for the icon since we are going to use standard Salesforce icons. Go to Setup -> Develop -> Component -> New. Name it “LoadingBox” and copy-paste this code: < apex:component   >      &l