Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieve value from HTML Page
Message
 
 
To
09/05/2004 18:45:20
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00902320
Message ID:
00902325
Views:
32
João,

You should wait for page to load before you can acces it.
oIE = createobject( "internetexplorer.application" )
oIE.Visible = .t.
oIE.Navigate( "http://www.chipsite.pt/produtos.php?id_fam=47" )
* Wait for page to load
lnWait4browser = 15 		&&seconds
lnStartSeconds = SECONDS()
DO WHILE oIE.ReadyState <> 4 ;
		AND (SECONDS()-lnStartSeconds <= lnWait4browser )
	DOEVENTS
ENDDO

IF oIE.ReadyState = 4
  ? oIE.Document.all("preco_prod").Value
ELSE
  ? "Time out!"
ENDIF
>It show the follow error,
>"Member DOCUMENT does not evaluate to an object"
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform