Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing data in Web Browser control and inserting keystr
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00639356
Message ID:
00639362
Views:
20
Dear Vlad
Thanks for your so fast response. I'm playing with it already, and doing some digging in MSDN. I still have the following questions:
1. there is a problem when the forms starts ( unspecified ole error ). I remember i have to do something in VFP when using the web browser control to avoid this, i just don't remember what :-))
2. i opened the debug window, and had my web browser control navigate to the address i want, but when checking the object, i don't see the document property anywhere.

TIA
Jaime

>Hi!
>
>Yes, it is possible. The WEB Browser ActiveX control has "document" property. Through it you cann access teh DOM - object model of all objects inside of the WEB pages. You can get help on the in th MSDN (for example, look for Document Object in the help, or some particular element example - Form Object/Form Element help page). The access of these objects is similar to what you use in the Java Scrip code on the WEB page.
>
>In your case the access to control and assigning value to it will look like
>
>thisform.oWebBrowser.document.MyWebForm.SomeTextBox.value = "My Name"
>=thisform.oWebBrowser.document.MyWebForm.submit()
>
>To parse all objects and forms and see if there are some fields that you require to pre-fill you will require to learn objects model or find some samples.
>
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform