I'm often using AJAX in an admin area, and would like the cursor to indicate when AJAX stuff is being fetched.
function ajaxFunction()
{
document.body.style.cursor = 'wait';
// ajax stuff here, takes a few seconds
document.body.style.cursor = 'default';
}
I can't seem to get this working for me, the cursor does not change at all. I've googled around a bit and always find the same code. (Firefox 3.5.8 on Ubuntu 9.10). I have no CSS declarations for the cursor.
Any 'pointers' in the right direction?