I am writing some script that posts some data to a server. I want to be able to change the cursor to a busy (processing) icon while it waits for a respose from the server. I call this line of code just before the request is sent:
app.setCursorType("wait");
and then reset it back to "default" when the response comes in. However the cursor does not change to the wait icon until after the response comes in.
Can anyone give me a solution as to how i could do this?