Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form name with IE
Message
From
11/05/2004 23:27:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Form name with IE
Miscellaneous
Thread ID:
00903060
Message ID:
00903060
Views:
52
Hi all,

Why i can´t get the form name from this page
*clink="http://www.worten.pt/worten/staticHomePage/searchHome.jsp"
clink="http://www.worten.pt/home.html"
cFieldKey="C6656AE"
*cFormNumber=0
cFieldNumber=1

oIE = createobject( "internetexplorer.application" )
oIE.Visible = .t.
oIE.Navigate( cLink )

	* Wait for page to load
	lnWait4browser = 25 		&&seconds
	lnStartSeconds = SECONDS()
	DO WHILE oIE.ReadyState <> 4 ;
		AND (SECONDS()-lnStartSeconds <= lnWait4browser )
		DOEVENTS
	ENDDO

loDoc = oIE.Document                        && get the Document object
loForm = loDoc.Forms(0)                     && get the first form object
loForm.Item(cFieldNumber).Value = cFieldKey && this is the field for the search string
loform.Submit()                             && submit the form

do while oIE.Busy()
  	 DOEVENTS
ENDDO

*// É necessário Nº Form e Numero Campo do Form
WAIT WINDOW  oIE.Document.Forms(0).Name 
I need to catch the values from the midle, like 'Price'.

Thank's

João Batista
Next
Reply
Map
View

Click here to load this message in the networking platform