Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XMLHTTP, EVENTHANDLER(), and BINDEVENTS()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
XML, XSD
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01009527
Message ID:
01009723
Vues:
9
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform