Jump to content

Javascript Submit Error


Go to solution Solved by big_daddy,

Recommended Posts

  • Moderators

I normally comment my code, but I what really tired last night. Dale has put a lot of work into documenting all the _IE functions. It would serve you well to read the AutoIt Help File.

; Returns an object variable containing the specified Tag collection
; @EXTENDED = specified Tag count
; Note: no need to store the return object as all we needed was the number of elements in the collection
_IETagNameGetCollection($oIE, "input")
; Store the return value of @Extended to variable
$iTagCount = @extended
; Loop through each element of the collection by index number
; DOM object collections start with an index value of 0 (zero)
; $iTagCount - 1 keeps us from going outside the collection bounds
For $i = 0 To $iTagCount - 1
    ; Get reference to the object by index value $i incremented each loop
    $oTag = _IETagNameGetCollection($oIE, "input", $i)
    If String($oTag.Value) = "Apply" Then
        _IEAction($oTag, "click")
        _IELoadWait($oIE)
    EndIf
Next
Edited by big_daddy
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...