Hi,
I'm making a Javascript Async request using a the Custom Javascript Code.
How can I get the response from the promise?
I am adding the result in window.myResponse but h ow can I wait the response before executing other code?
If I dont find a way to wait for the async operation to be completed when i access window.MyResponse will not be filled yet.
I've added a c# custom code after the Javascript Block but ActiveTab.WaitDownloading is not working, the tab is not busy.
I can see the request using GetTraffic but if I read the TrafficItem before the request has arrived I cant read the body.
Can someone help me to understand the proper pattern to wait for a request to complete?
thanks
I'm making a Javascript Async request using a the Custom Javascript Code.
How can I get the response from the promise?
I am adding the result in window.myResponse but h ow can I wait the response before executing other code?
If I dont find a way to wait for the async operation to be completed when i access window.MyResponse will not be filled yet.
I've added a c# custom code after the Javascript Block but ActiveTab.WaitDownloading is not working, the tab is not busy.
I can see the request using GetTraffic but if I read the TrafficItem before the request has arrived I cant read the body.
Can someone help me to understand the proper pattern to wait for a request to complete?
thanks