Do not use on any
shared computer
July 24, 2008 07:19pm pdt
null
[x]
Attachment Details

How do I obtain object of page after I log in

Tags: microsoft, vfp, 9.0, ie
When I log onto a site with the attached code a new page is returned to to me with information I need to capture and use.
How do I get a refernce  to the new page.

Thanks Jerry
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
oIE = createobject( "internetexplorer.application" ) 
oIE.Visible = .t. 
oIE.Navigate( "https://www.somesite.com/sc/lastsix.html" ) 
do while oie.Busy() 
doevents 
enddo 
loDoc = oIE.Document && get the Document object 
loForm = loDoc.forms(0) && get the first form object 
* explore the form items 
*!*	for i = 0 to loForm.Length-1 
*!*	? i, loForm.Item(i).Name, loForm.Item(i).Value 
*!*	endfor 
loItem = loForm.item( "mycode")
loItem.value =  ALLTRIM(basic_information.code_id)
loItempass = loForm.item( "mypass")
loItempass.value =  ALLTRIM(basic_information.my_pass)
loitemlookup=loForm.item( "lookup")
loitemlookup.value= ALLTRIM(order_table.orderno)
loform.Submit()
Start your free trial to view this solution
Question Stats
Zone: Microsoft
Question Asked By: quicklikeafox
Question Asked On: 04.26.2008
Participating Experts: 1
Points: 500
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by tusharkanvinde
Expert Comment by tusharkanvinde:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by quicklikeafox
Author Comment by quicklikeafox:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628