[jQuery] Blocking UI for synchronous ajax calls
Hi all:
I´m writing a simple CMS and, when the user clicks to save the
changes, I need to:
1) See if the user is logged (if I´m not logged redirect to
login form)
2) Get some info from the server (if the content is new I need
to ask some questions, ...)
3) Save the content
I´m doing each of them with ajax synchronous calls, because I need
the previous call answer to decide what to do. And it works perfectly.
Now, I need to block user interface and put a grey overlay, from
the start to the end of the operation.
I need something like BlockUI Plugin ( http://malsup.com/jquery/block/
) but for synchronous calls.
I have tested BlockUI Plugin but it does not start when I call it,
because I can see with Firebub that the ajax calls are finished when
BlockUI Plugin starts.
Someone can help me?
Thanks in advance.