Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reading Internet Explorer variables
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Reading Internet Explorer variables
Miscellaneous
Thread ID:
00875074
Message ID:
00875074
Views:
67
in the following code I create an instance of IE within VFP, load the document with a simple page (also shown below "test.htm") that contains some script code. The script includes an array.

My question is where in the IE DOM is the variable exposed? Put another way, I want to read the value of an element in the array but can't seem to find it in the DOM.
oIE=CREATEOBJECT('internetexplorer.application')
oIE.Navigate='test.htm'
oIE.Visible = .t.

* thie following does not work and the question is what does?
? oIE.document.aTest.1

**** test.htm

<html>
<head>
<script language="javaScript">
var aTest = new Array(2)
aTest[0]='test0'
aTest[1]='test1'
aTest[2]='test2'
</script>
</head>
<body>
hello world
<script>alert(aTest[1])</script>
</body>
</html>
#### eof
Next
Reply
Map
View

Click here to load this message in the networking platform