Jump to content
Sign in to follow this  
jim read

[Solved]IE.au3 issues with iframes and forms

Recommended Posts

jim read

I hate having to ask questions so I looked all over the forms and I still am confused on this

i have this code trying to find the form called Login. from a open browser window.

$oIE = _IEAttach ("Institution: 19")    

$oFrame = _IEFrameGetObjByName ($oIE, "frmNavBottom")
        $oForms = _IEFormGetCollection ($oFrame)
        MsgBox(0, "Forms Info", "There are " & @extended & " forms on this page")
    For $oForm In $oForms
      MsgBox(0, "Form Info", $oForm.name)

here is the debug bar window

        <> HEAD
        <> BODY id= BannerBody
            <>FORM name=frmMain action =Nav1151.aspx?WCI=Process&WCE=ProcessRedirect&PID=2
                <>INPUT type = hidden name = TackStatus
                <>INPUT type = hidden name = NodeStatus
                <>DIV id=Banner class=Title
                                            <>FORM name = Login action=SCM1151.spx?WCI=wcLogin&WCE=Request&PID=0
                                                <>DIV id = HideSCM

The IFRAME 4 lines above the Form Name is frmNavBottom

and this is found correctly but I find no forms under that IFRAME.

This is our core processing centers site not available via the internet.

Can any of the guru's help me with this?


Edited by jim read

Share this post

Link to post
Share on other sites

If the iFrame is at a different site, then you are getting blocked by cross-site scripting controls.

Add these near the top of your script:


You would be seeing "Access Denied", or something similar.


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post

Link to post
Share on other sites
jim read

Thank you for your responce.

I had that function in there but that was not the issue.

I begain to closely check the information that AutoIt was getting from IE7 and it was always the same no matter what site I was on. The informaiton AutoIT was getting feed to it happened to be the last page I was working my on before the strange things happend.

So if I jumped my code to that spot and manually moved though the pages to get there the data matched. But IE still did not react as expected.

I decieded to do the old standby and reboot and that cleared it up.

So I do not know if it is an IE7 issue or what. I am working on XP Pro SP3 with IE 7.

Thank you again

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