Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMLHTTP timeout

Status
Not open for further replies.

Rally2002

Programmer
Apr 25, 2002
9
SE
Hi!

THE PROBLEM

I'm using ms.xmlhttp on my website to retrieve some information from another webpage on the Internet. If the other webpage isn't available (or is very slow), my webpage will suffer.

SOLUTION

1. Setup the xmlhttp request
2. Send the request
3. Wait for response OR continue executing script if response not received in x seconds

QUESTION

Is it possible to do the above in VBScript on the server?

I know that XMLHTTP supports sending an asyncronous request and have a callback function called when the request is ready. The problem is I don't know how to halt script execution, go to sleep and wake up after response is received or timed out.

/Rally2002
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top