Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation
Message
From
09/08/2002 09:17:39
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00687875
Message ID:
00687939
Views:
34
John,

I have no idea why it won't submit (I have tried)

Just spotted what I thought to be an inconsistency with the submit

Sorry
___
>Hi Gregory
>
>
>I've tried
>
>oIE.DOCUMENT.FORMS(1).Submit()
>
>and
>
>oIE.DOCUMENT.FORMS(0).Submit()
>
>I can't get either one to work.
>
>John
>
>
>John,
>
>Shouldn't it be
>
>oIE.DOCUMENT.FORMS(1).Submit()
>
>>Hi All
>>
>>I have been trying to automate a login to a website using FoxPro Adviser June 2000 edition mag I have come up with the folling code.
>>
>>
>>oIE = CREATEOBJECT("InternetExplorer.Application")
>>oIE.Navigate("www.bcms.gov.uk/bcms/wctd0001.htm")
>>oIE.Visible = .T.
>>WAIT "Please Wait..." WINDOW TIMEOUT 15
>>oIE.DOCUMENT.FORMS(1).FARMLOGIN.VALUE = "123-456-789"
>>oIE.DOCUMENT.FORMS(1).PRVPWD.VALUE = "1234567"
>>oIE.DOCUMENT.FORMS(0).Submit()
>>
>>The Adviser mag had 0 in oIE.DOCUMENT.FORMS(0) but this would not work so I changed it to 1 oIE.DOCUMENT.FORMS(1)
>>
>>The code works and it inserts the user id and password into the web page but I can't get it to submit the page.
>>
>>Any ideas?
>>
>>Also why did changing the oIE.DOCUMENT.FORMS(0) to oIE.DOCUMENT.FORMS(1) make it work?
>>
>>John
>Gregory
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform