Sign in to follow this  
Followers 0
tradertt

Unable to enter data in an iFrame using IE.au3

6 posts in this topic

<TD class=controlbar><TEXTAREA id=vB_Editor_001_textarea dir=ltr style="DISPLAY: none; WIDTH: 540px; HEIGHT: 250px" tabIndex=1 name=message rows=10 cols=60></TEXTAREA><IFRAME id=vB_Editor_001_iframe style="WIDTH: 540px; HEIGHT: 250px" tabIndex=1></IFRAME></TD>

This is what I got from debug toolbar

$oFrame = _IEframegetobjbyname($oIE,"vB_Editor_001_iframe")
            $oForm = _ieformgetobjbyname($oFrame,"vB_Editor_001_textarea")
            $PostEdit = _ieformelementgetobjbyname($oForm,"message")
            _IEFormElementSetValue($PostEdit,"SOMETHING TO BE WRITTEN HERE")

This is what I tried.

However to no avail.

Debug mode on

0063: 0-0:          $oFrame = _IEframegetobjbyname($oIE,"vB_Editor_001_iframe")
0064: 0-0:          $oForm = _ieformgetobjbyname($oFrame,"vB_Editor_001_textarea")
--> IE.au3 V2.3-1 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
0065: 7-0:          $PostEdit = _ieformelementgetobjbyname($oForm,"message")
--> IE.au3 V2.3-1 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

"....<IFRAME id=vB_Editor_001_iframe style="WIDTH: 540px; HEIGHT: 250px" tabIndex=1></IFRAME></TD>

".... $oFrame = _IEframegetobjbyname($oIE,"vB_Editor_001_iframe")

Mmmh,

helpfile says: $s_name Name = of the Frame you wish to match

you stated the ID. Perhaps you can use _IEFrameGetCollection and go over the index.

HTH, Reinhard

PS: Do you use already DebugBar (http://www.debugbar.com/). It's a big help.

Edited by ReFran

Share this post


Link to post
Share on other sites

Try turning on _IEErrorHandlerRegister() to see if anyting surprising is writen to the console...


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

_IEErrorHandlerRegister()

Sorry but where do I put the IEErrorHandlerRegister at ?

Just before _IECreate() will work fine.

Share this post


Link to post
Share on other sites

Hi

I'm also facing problem with getting data from iframe,which was embedded in DIV tag.

below are observations.

If iframe has id, then you need to use _IEGetObjById .

but when query the inside form element in html page , which was inside the iframe we are not getting form element.

we are getting below error

--> IE.au3 V2.3-1 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch

if an body have the solution please let me know.

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  
Followers 0