Popular Usenet Groups

Your one stop shop for all your most popular usenet groups in one place


Categories
Sports Science, Electronics & Maths Hobbies & Recreation
Religion TV & Media Computing - Programming
Music Cycling & Motorsports Computing - General
Photography Computing - Linux Computing - Apple Mac
Others Return to Home Page Register for extra features


Search This Site:

Go Back   Popular Usenet Groups > Computing - Progamming > microsoft.public.vb.general.discussion

microsoft.public.vb.general.discussion General Visual Basic Discussion


 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 25th April 2006, 10:16 PM   #1
Mike Scirocco
 
Join Date: Nov 2007
Age: 39
Total Posts: 24
submit form data using XML2, possible to add doevents loop, exitif dl not poss?

I'm using XML to submit form data and download the results returned by
the server. I'd like to add a loop that includes Doevents while waiting
for the download to take place, and I'd like to watch for an error value
that would tell me the download can't be completed. Right now the
program just hangs until the download completes, and if the server is
down the download never completes. Is it possible to add a doevents loop
and trap errors when using XML2?

TIA,
Mike

Set XML = CreateObject("MSXML2.XMLHTTP")
XML.open "POST", url, False
XML.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
XML.send "action=xxx&Type=yyy&ZipCode=00000&RefNum=12345678 9"
ResultString = XML.responseText
Mike Scirocco is offline   Reply With Quote
 

Bookmarks


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 08:01 AM.


Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.