ParoXsitiC Posted August 7, 2008 Share Posted August 7, 2008 I am trying to use IE.au3 to autologin to a form with a site that has 2 frames, the login form being a https site. I can get it to work fine if I just redirect IE to the https site and then auto login from there, but how can I do this without redirecting. Here is the html source: <html> <head> <title>Title</title> </head> <script language="javascript"> if (self != top) { if (document.images) top.location.replace(window.location.href); else top.location.href = window.location.href; } document.write('<frameset rows="81,*" framespacing="0" border="0" frameborder="0" frameborder="no">'); document.write('<frame marginheight="0" marginwidth="0" frameborder="0" frameborder="no" border="0" name="top" scrolling="no" resize src="/login_top.html">'); document.write('<frame marginheight="0" marginwidth="0" frameborder="0" frameborder="no" src="https://' + document.domain + '/login.jsp' + ((window.location.search != null) ? window.location.search : "") + '" name="login_body">'); document.write('</frameset>'); </script> </html> The frame with login.jsp is where the login form is at, IE.au3 will not read that frame unless you actually visit the https site. Link to comment Share on other sites More sharing options...
DaleHohm Posted August 7, 2008 Share Posted August 7, 2008 First, that is not the page source, it is javascript that generates dynamic content. Suggest you use DebugBar to see the real source. You will probably run into a Cross-site frame scripting restriction on the https frame... your workaround is probably required. Try adding _IEErrorHandlerRegister() to your script and see if you get an Access is denied error at the console to verify this. 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...
ParoXsitiC Posted August 11, 2008 Author Share Posted August 11, 2008 Yeah I meant to say the source for the parent which creates the frameset. It does give me an Access is denied error. I didn't know why it was messing up before so I searched the forum and you suggested the same to someone else and then told them to just redirect to the https site to bypass it, that's where I came up with my workaround. I was just wondering if that was still the only way or if something else was thought up. Thanks for the reply. Link to comment Share on other sites More sharing options...
row Posted March 9, 2009 Share Posted March 9, 2009 Hi, I have the same issue, trying to get in my nested in a frameset frames via https. Is there any solution to this without trying to open them into a separate window? Why is this "Access is denied" issues, while the frames together with the parent html (also opened via https) are shown onto the screen? Is there any workaround possible? Regards, RoW. Link to comment Share on other sites More sharing options...
row Posted March 9, 2009 Share Posted March 9, 2009 Just one more clarification for the above post (can't see an "Edit" button) - all frames, together with the parent page are from the same domain... Link to comment Share on other sites More sharing options...
comtech80 Posted August 30, 2011 Share Posted August 30, 2011 I have the same issue and looking for a solution.... 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