Threads

Hi,

Is it possible to do a TWebHTTPRequest in a thread as I would like to be able to display some sort of onscreen indicator while this is processing?

Thanks,

Ken

At this moment this is not yet possible from Pascal code.
You could do this by writing it directly in JavaScript code.
But I don't see how using a thread is needed. The response of a TWebHttpRequest is always asynchronous, so you can start a TWebWaitMessage before calling TWebHttpRequest.Execute and hide the TWebWaitMessage  from the TWebHttpRequest.OnResponse.

I missed that component. That's ideal thanks.

In the version I have TWebWaitMessage causes an error when set to hidden twice.

Can you pleae trap this if you haven't already done so?

This will be gracefully handled in the next update.

Thanks.