Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get the source (Html) using _WebView.VCX
Message
 
 
À
04/06/2003 11:13:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00796158
Message ID:
00796243
Vues:
13
Dany,

Here's a copy of a posting I made on the ng a while back, it should help you get going with the next step:

It's pretty easy to automate a form in IE:
oIE = createobject( "internetexplorer.application" )
oIE.Visible = .t.
oIE.Navigate( "www.google.com" )
do while oie.Busy()
   doevents
enddo
loDoc = oIE.Document && get the Document object
loForm = loDoc.forms(0) && get the first form object
loForm.Item(3).Value = "foxpro" && this is the field for the search string
loform.Submit() && submit the form

you can use code like to find the items of a form:

* explore the form items

for i = 0 to loForm.Length-1
   ? i, loForm.Item(i).Name, loForm.Item(i).Value
endfor

You can also access the items by their names:

loItem = loForm.item( "q" )
loItem.value = "this is so cool"
If you have VFP8 or VFP7 this stuff becomes really trivial because of
Intellisense. You can just kind of explore things from the command window.
You can also lookup IE DocumentObjectModel (DOM) on MSDN to help direct your
explorations.

>1. In fact that page (web site) has fields that I need to programmaticaly fill with some anwers, and then, after filling all necessary fields, I have simulate a click on a "Send" button in order to send all contents.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform