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:
01009832
Views:
10
The problem is the same. The interface IXMLDOMDocument2 doesn't implement events.


>
>Thanks for your input. I have the wwClient classes, but I'd like to know what's going on under the hood. I tried using MSXML2's FreeThreadedDOMDocument class instead since I'll eventually be working with XML responses anyway. Well, I used the GUI to automatically generate the interface's event procedures, and also had to manually construct the missing ones. I can retreive the XML asynchronously, but when I call EVENTHANDLER(), my CPU goes to 100% and VFP stops responding. Any clues?
>
>
>
>LPARAMETERS lcURL
>CLEAR
>lcURL=IIF(TYPE("lcURL")="C",lcURL,"http://microsopht.dynu.com:45/DonMartin/DonMartin.xml")
>
>LOCAL oXMLHTTP AS MSXML2.FreeThreadedDOMDocument40
>oXMLHTTP=NEWOBJECT("Msxml2.FreeThreadedDOMDocument.4.0")
>oEvents=NEWOBJECT("FreeThreadedDOMDocumentEvents")
>
>&&  lbEventsHandled=EVENTHANDLER(oXMLHTTP,oEvents)
>
>oXMLHTTP.ASYNC=.T.
>oXMLHTTP.LOAD(lcURL)
>
>DO WHILE oXMLHTTP.readyState#4
>ENDDO
>
>XMLTOCURSOR(oXMLHTTP.XML,"DonMartinisms",4)
>BROWSE
>
>&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
>&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
>
>DEFINE CLASS FreeThreadedDOMDocumentEvents AS SESSION OLEPUBLIC
>
>    IMPLEMENTS IXMLDOMDocument2 IN "MSXML2.FreeThreadedDOMDocument.4.0"
>
<snip>
>
>ENDDEFINE
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform