change cursor during function execution???
I'm writing a GUI for an intranet application, and I'm stumped buy
something i thought would be really simple. I have a function that
could take some time to run (tens of seconds), so i wanted to give the
users a visual indicator that the code was running. The most obvious
method is the wait cursor, however when i change the cursor during
function execution the cursor doesn't change.
Does anyone have an idea on how to accomplish the following?
function fn_name(){
$('body').css('cursor', 'wait');
// some long running code
$('body').css('cursor', 'default');
}
-Dan S.