Hi John,
An interface that implements events in COM objects usualy has word "event" or "handler" in it. The IXMLHTTPRequest doesn't implement events and there isn't another one in XMLHTTP that does.
Take a look at Rick's
West Wind Internet & Client Tools at
http://west-wind.com/wwClientTools.asp. It may have what you're looking for.
>I need some advice regarding the use of XMLHTTP and its interfaces. I need to send multiple HTTP requests to a server, and would like to do asynchronously. I'll also need to use the class's events to trigger tasks in the calling program. I've used VFP's class browser to generate the interface code (I THINK I have the right one!), but EVENTHANDLER() returns .F.
>
>Here's my patrhetic code; any suggestions?
>
>LOCAL oXMLHTTP as MSXML2.XMLHTTP30
>oEvents=NEWOBJECT("XMLHTTPevents")
>oXMLHTTP=NEWOBJECT("Microsoft.XMLHTTP")
>bEventsHandled=EVENTHANDLER(oXMLHTTP,oEvents)
>
>oXMLHTTP.open("POST","http://www.microsopht.com",.F.)
>oXMLHTTP.send()
>MESSAGEBOX(oXMLHTTP.responseText)
>
>
>
>
>DEFINE CLASS XMLHTTPevents AS session OLEPUBLIC
>
> IMPLEMENTS IXMLHTTPRequest IN "Microsoft.XMLHTTP"
>
<snip>
>
>ENDDEFINE
>
--sb--