Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IE automation and frames
Message
From
08/02/2000 13:15:34
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00328927
Message ID:
00328987
Views:
28
>>>I have a program that launches IE5, navigates to a page and attempts to populate textboxes. I can access the page, even with frames and populate the textboxes, unless the form isn't named. The following works when the form is named:
>>>
>>>oie.document.frames(1).myform.username.value='test'
>>>
>>>but if it isn't a "named" form the following will not work:
>>>
>>>oie.document.frames(1).forms(0).username.value='test'
>>>
>>>What's up?
>>
>>haven't seen this one. you are sure that the form is the first one? Is this a page I could try?
>
>I'll make it available at http://www.shelbynet.com/vfp/test.htm

Ok, I get the same error as you, but can resolve it by assigning the frame to its own object reference first:

oIE = CREATEOBJECT("InternetExplorer.application")
oIE.navigate("http://www.shelbynet.com/vfp/test.htm")
oFrame2 = oIE.Document.Frames(1)
oframe2.Document.Forms(0).UserName.value = "Howdy"
oframe2.Document.Forms(0).password.value = "password"
oframe2.Document.Forms(0).Submit()
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform