Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IE automation, submit button
Message
De
15/01/2011 12:50:32
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01496283
Message ID:
01496295
Vues:
47
>Hi
>
>Please help me with code below
>
>loIE.document.GetElementById("username").value = "eletro" && OK
>loIE.document.GetElementById("password").value = myPassword && OK
>loIE.document.GetElementById("submit").click() && GetElementById does not evaluate to an object

Then it probably doesn't have that ID. Look at the source code of the page itself.

Besides, the whole purpose of this exercise is to do the POST action of the form. It may be easier to just
loFrm=loIE.document.GetElementById("{the id of the form here}")
loFrm.submit()

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform