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.
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. (I assume the same answer will work in any language - Java, C#,
VB...).
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>
Thanks in advance to anyone that has any clues! <g>