Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IE automation, submit button
Message
From
15/01/2011 12:50:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01496283
Message ID:
01496295
Views:
45
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform