Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Onreadystatechange for async. call to web service
Message
De
28/02/2005 20:03:05
Chrita Lee
ProMOS Technology Inc.
Hsinchu, Taiwan
 
 
À
28/02/2005 13:15:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
00991100
Message ID:
00991434
Vues:
20
>Here is the code in VBScript. Is there any equivalence for GetRef() in FoxPro so I can pass it to onreadystatechange event? I can't do this by implementing interface of MSXML2.XMLHttp.
>
>Any idea is appreciated.(Maybe the Timer approach...)
>
>set oHTTP = WScript.CreateObject("Microsoft.XMLHTTP")
>oHTTP.onreadystatechange = GetRef("RespReceived")
>oHTTP.open "GET", "http://www.microsoft.com", True
>oHTTP.send
>
>Sub RespReceived
>       if oHTTP.readystate = 4 then
>          bRespReceived = True
>       end if
>end sub
>
>>>
>EVENTHANDLER() ?
>
>Regards,
>Viv

Thanks Viv, as I mentioned, I can't do this by implementing interface of MSXML2.XMLHttp. So EVENTHANDLER always return .F.

In fact, I CAN implement interface of MSXML2.XMLHttp, but those interface(s)(IXMLHttpRequest or XMLDocumentEvents...) I implemented seems can't bind to MSXML2.XMLhttp COM Server successfully.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform