Is there a way for a synchronous request, too?
This would be helpful for "questions" to the server, where you need to
wait for an answer.
Any sugg. would be great, many thanks ...
You can use asynch communication and simply stop the user interface
from doing anything else untill the response is received.
I have tried this by setting a boolean called mbWAITING to true, and
wanted to run in a while-loop, until the onCompletion-handler set this
mbWaiting to false. I can do this in VB i. e. by using the DoEvents -
function to give the rest of the Browser any time to handle the
onCompletion-hanlder. But there is no such method, so the Browser
What methods can be used to tell the Browser to do nothing and let the
other part of the script let do the work? I tried sleep or yield, but
they only work with threads.
Again: Thanks ...
What you can do is "disable" all your events while you're waiting for
the response. You could set some variable that all events, eg buttons,
check before performing their actions, you would modify this variable
depending on the state of your asynch request. So unless your
appliclation "enables" this variable once a response is received, all
your butons would be disabled.
Just one idea, you could also draw a panel ontop of your entire
application using z-index, set it to be transparant to some degree to
show that the application is disabled. This would prevent anything
under this panel from being clicked and inturn "disabling" your
application untill you enable it again.
There it works, I will do it here, too.