Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Autofill HTML-form
Message
De
26/01/2007 02:59:36
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Autofill HTML-form
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01189464
Message ID:
01189464
Vues:
71
I want to load an url from within foxpro and autofill a form on the page and submit the form. I use the following code :

oIE=CREATEOBJ("InternetExplorer.Application")
oIE.Navigate("http://kbo-bce-ps.mineco.fgov.be/ps/kbo_ps/kbo_search.jsp?lang=nl&dest=SON")
oIE.document.OND_NR.ON.Value = "0427"
oIE.document.OND_NR.ON1.Value = "807"
oIE.document.OND_NR.ON2.Value = "711"
oIE.visible = .T.
oIE.Document.forms(1).Submit()

I use 'forms(1)' because the form has 2 forms on it.

I see that the submit is executed but the page has some kind of protection and the fields are emptied and i don't see the result.
When i only fill the textboxes and i manually click the send-button it works fine...

Anyone any idea what's wrong ?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform