Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XMLHTTP, EVENTHANDLER(), and BINDEVENTS()
Message
General information
Forum:
Visual FoxPro
Category:
XML, XSD
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01009527
Message ID:
01009723
Views:
10
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform