This content has been marked as final.
Show 3 replies
-
1. Re: Busy cursor for Ajax calls?
shadowcreeper Aug 15, 2008 1:32 PM (in response to lanceb185)Why not a style="cursor: wait;" on the status component?
If it is a rich:modalPanel, this should work fine.
Alternatively you could put in some javascript that adds waitCursor to the body tag's class on a4j:status start and removes it on stop... -
2. Re: Busy cursor for Ajax calls?
lanceb185 Aug 18, 2008 11:01 AM (in response to lanceb185)Can you illustrate with a short example? So if I have a large table with a submit button beneath, I'd like the cursor be set to wait state for the entire page. How do I best accomplish this with style="cursor: wait;"
Thanks again -
3. Re: Busy cursor for Ajax calls?
shadowcreeper Aug 18, 2008 2:54 PM (in response to lanceb185)Try something like this...
function addMainBodyWaitClass () { var bodyNode = document.getElementById( 'mainBody' ); bodyNode.addClassName( 'waitClass' ); } function removeMainBodyWaitClass () { var bodyNode = document.getElementById( 'mainBody' ); bodyNode.removeClassName( 'waitClass' ); }
PS - Removing a class that isn't on the element shouldn't hurt anything either.