Jump to content
Sign in to follow this  

Error with innerHTML property set

Recommended Posts

I try to change innerHTML property with code below

$oIE = _IEAttach ("Booking")
$oFrames = _IEFrameGetCollection ($oIE)
$iNumFrames = @extended
For $i = 0 to ($iNumFrames - 1)
    $oFrame = _IEFrameGetCollection ($oIE, $i)
    MsgBox(0, "Frame Info", _IEPropertyGet ($oFrame, "locationurl"))
    $str = _IEPropertyGet($oFrame, "locationurl")
    If $str == "http://mysite/schedule.php" Then
        $oF = $oFrame
$formHV = _IEGetObjById($oFrame,'formHV')
_IEPropertySet($formHV,"innerHTML",String($formHV.innerHtml) & '<input type="text" readonly value="test value"><BR/>')

But I am receive error message:

D:\AutoIt3\Include\IE.au3 (3450) : ==> The requested action with this object has failed.:

$oTemp.innerHTML = $newvalue

$oTemp.innerHTML = $newvalue^ ERROR

Somebody knows how to decide this problem?

P.S. Forgive me please if my question is foolish.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...