Jump to content

Reading javascript variables from an IE COM object


mvendak
 Share

Recommended Posts

My problem is i dont know what the reference to javascript variables/arrays with a IE COM object should look like. In javascript i simply use the variable name.

The array named "vetelTargyakInfo" is defined in the head of the document.

Func ListCurrentItems()
    Local $temp[10]
    for $i = 0 to 9 
        $temp[$i] = $oIE.vetelTargyakInfo[$i]
        
    Next
    _ArrayDisplay($temp)
EndFunc

This doesn't work (syntax error). Should I try to determine the exact place of the <script> (in witch the array is declared) in the DOM and the array will be the child item of that one? I could use regular expressions to get the data from the html source, but there must be a more elegant way.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...