Jump to content
Sign in to follow this  

Reading javascript variables from an IE COM object

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]

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.

Share this post

Link to post
Share on other sites

Look at DaleHohm post for the IEEval() function, #673111

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.