You need to sign in to do that
Don't have an account?
How can I add animation (gif) to actionStatus
Is it possible to add an animation (gif) to the actionStatus attribute as I haven't been able to figure this one out. Text is okay but an animation would be much more ideal as it gives the user visual feedback that something is happening.
If a controller is performing heavy logic there may be a delay before something happens and if there is only static text that says "Retriving data..." the user doesn't know if the page is frozen or if it is actually doing something. An animation at least gives the user the perception that something is happening and therefore user is less likely to assume some this wrong and is more likely to wait rather than hit the back button, call me, and say, "Hey, its not working!"
If this is possible great! But please point me in the right direction. If not, I think the easiest way would to have an attribute in the actionStaus component that pointed to a static resource that is an image.
<apex:actionStatus image="{!$Resource.SpinnerImage}" id="status"/>
Ideally the page would also precache this image so that when displayed it would be all loaded up, no stuttering.
If a controller is performing heavy logic there may be a delay before something happens and if there is only static text that says "Retriving data..." the user doesn't know if the page is frozen or if it is actually doing something. An animation at least gives the user the perception that something is happening and therefore user is less likely to assume some this wrong and is more likely to wait rather than hit the back button, call me, and say, "Hey, its not working!"
If this is possible great! But please point me in the right direction. If not, I think the easiest way would to have an attribute in the actionStaus component that pointed to a static resource that is an image.
<apex:actionStatus image="{!$Resource.SpinnerImage}" id="status"/>
Ideally the page would also precache this image so that when displayed it would be all loaded up, no stuttering.
e.g.,
manu
All Answers
e.g.,
manu
Works fine:
<img src="/img/waiting_dots.gif" border="0">
Doesn't work:
<img src="{!$Resource.bigSpinner}" border="0">
Instead of the image being displayed all that is show is this:
Message Edited by TehNrd on 02-28-2008 03:26 PM
In your case your issue is that you're not closing your <img> tag. If you end it with a /> it will fix it. (You should also close your <br> tag as well. Even though html allows it, it will keep your page much cleaner and will prevent things like this from happening).
Closing the <img> with /> and changing <br> to <br/> did the trick.
Looks like salesforce.com tightened things up.
Thanks for the help!