How do I change the curosr during a jQuery synchronous browser blocking POST?
Posted
by Tommy
on Stack Overflow
See other posts from Stack Overflow
or by Tommy
Published on 2010-04-21T18:57:25Z
Indexed on
2010/04/21
19:03 UTC
Read the original article
Hit count: 225
$.ajax({
url: "/cgi-bin/stats.exe",
method: "post",
async: false,
data: { refresh: "a41" }
});
Using ajax post synchronously - "async: false".
While it blocks the browser during the active request, what is the most efficient way to change the cursor to the hourglass or display a wait .gif?
Perhaps set the cursor as it enters this function then change it back in the success or complete function?
Any advice is appreciated.
Thank You.
© Stack Overflow or respective owner