rad1um Posted October 5, 2006 Share Posted October 5, 2006 I have a webpage with 2 frames in it:<frameset rows="100,*"> <frame name="top" scrolling="no" noresize src="www.myowndomain.de" border="0"> <frame name="left" src="http://http://www.quickvisitors.com/delivery/target.php?site=1" border="0"><noframes>I try to get the Links of the "left" frame with:Func Frameinfo ( $oIE ) _IEErrorHandlerRegister() $oFrame = _IEFrameGetObjByName($oIE, "left") $oLinks = _IELinkGetCollection($oFrame) For $oLink In $oLinks ConsoleWrite($oLink.href & @CRLF) Next _IEErrorHandlerDeregister () EndFuncThis function works perfectly well for the "top" frame, but not for the "left" frame, I get those errors:(annotation: Zugriff verweigert = access denied)----> $IEComErrorScriptline = 1026----> $IEComErrorNumberHex = 80020009----> $IEComErrorNumber = -2147352567----> $IEComErrorWinDescription = Zugriff verweigert----> $IEComErrorDescription = Zugriff verweigert----> $IEComErrorSource = ----> $IEComErrorHelpFile = C:\WINDOWS\system32\mshtml.hlp----> $IEComErrorHelpContext = 0----> $IEComErrorLastDllError = 0----> $IEComErrorScriptline = 1027----> $IEComErrorNumberHex = 80020009----> $IEComErrorNumber = -2147352567----> $IEComErrorWinDescription = Zugriff verweigert----> $IEComErrorDescription = Zugriff verweigert----> $IEComErrorSource = ----> $IEComErrorHelpFile = C:\WINDOWS\system32\mshtml.hlp----> $IEComErrorHelpContext = 0----> $IEComErrorLastDllError = 0----> $IEComErrorScriptline = 26----> $IEComErrorNumberHex = 000000A9----> $IEComErrorNumber = 169----> $IEComErrorWinDescription = Variable is not of type 'Object'.----> $IEComErrorDescription = Zugriff verweigert----> $IEComErrorSource = ----> $IEComErrorHelpFile = C:\WINDOWS\system32\mshtml.hlp----> $IEComErrorHelpContext = 0----> $IEComErrorLastDllError = 0So there seems to be a problem with the sandbox , same origin policy of IE,because the left frame isn't from the same domain as the webpage in which it get's displayed.How can i manage to access the content of foreign frames with autoit?So far i have tried the following:1.) Trying to deactivate the sandbox by IE->EXTRAS->INTERNET SECURITY->SCRIPTING-> ACTIVATE ACCESS ACROSS DOMAINS - no success!2.) Trying to open the frame's source in a new window - this isn't possible, because the http://www.quickvisitors.com/delivery/target.php?site=1 url delivers webpages at random, what means, that each time you load this url, another webpage gets displayed. - no success!I am really desperate, maybe someone of you has an idea.GreetingsRad1um Link to comment Share on other sites More sharing options...
DaleHohm Posted October 5, 2006 Share Posted October 5, 2006 (edited) Your diagnosis is correct. With the random page i cannot think of any way for you to accomplish this unless you were to build a GUI and displayed the two pages in it as seperate activeX controls with the same configuration as the frames in the browser... or display two webbrowsers side by side with the two pages displayed... if you're really motivated you might come close. Dale Edit: typo Edited October 5, 2006 by DaleHohm 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 Link to comment Share on other sites More sharing options...
rad1um Posted October 5, 2006 Author Share Posted October 5, 2006 Your diagnosis is correct. With the random page i cannot think of any way for you to accomplish this unless you were to build a GUI and displayed the two pages in it as seperate activeX controls with the same configuration as the frames in the browser... or display two webbrowsers side by side with the two pages displayed... if you're really motivated you might come close.DaleEdit: typoThe webpage with the two frames is not my own.So i have to deal with the problem as described.What about deactivating the sandbox, is this possible somehow?What about using an HTA-Application? Link to comment Share on other sites More sharing options...
DaleHohm Posted October 5, 2006 Share Posted October 5, 2006 You could try the sandbox idea... I've only looked at this as it relates to Java VMs. I have tested hta's in hopes that this could be overcome -- with just a simple hta it was still a problem. It is possible that there are more advanced settings for htas taht would help, but I do not know them and I am not an expert here. Dale 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now