Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parsing data in Web Browser control and inserting keystr
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00639356
Message ID:
00639361
Vues:
13
This message has been marked as the solution to the initial question of the thread.
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.

>Hi
>I want to insert a Web Browser control into one of my forms, have it NavigateTo() a specific address, and based on some text that has to be parsed in the received page, i would like the app to automatically fill-in some fields, or rather just 'keyboard' a few keystrokes. Is this possible?
>
>TIA
>Jaime
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform