GoogleDude Posted July 24, 2009 Share Posted July 24, 2009 Does anyone know what the syntax would be for loading an embedded IE Frame in a GUI that uses IE8 Compatibility View? I have the code to load a normal gui with ie frame but not sure about loading the frame in IE8 that uese Compatibility View? Thanks, GD Link to comment Share on other sites More sharing options...
DaleHohm Posted July 25, 2009 Share Posted July 25, 2009 (edited) Say more about what you are trying to do. It can be controlled in the HTML source with:<meta http-equiv="X-UA-Compatible" content="IE=8" />Dale Edited July 25, 2009 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...
GoogleDude Posted July 25, 2009 Author Share Posted July 25, 2009 Say more about what you are trying to do. It can be controlled in the HTML source with:<meta http-equiv="X-UA-Compatible" content="IE=8" />DaleI have a small web based box/server "http://192.168.1.127/home.html" that will only work with IE8 if you use Compatibilty View from Page Drop Down in IE. I am trying to make a simple gui that checks if IE8 is present on the machine the script is run on and if it detects IE8 I need it to create the embedded ie frame using compatibility view. If it detects IE7 then compatibility view is not needed.hope this helps.thanks for the reply,GD Link to comment Share on other sites More sharing options...
DaleHohm Posted July 25, 2009 Share Posted July 25, 2009 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />see: http://blogs.msdn.com/ie/archive/2008/06/10/introducing-ie-emulateie7.aspxDale 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...
GoogleDude Posted July 25, 2009 Author Share Posted July 25, 2009 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />see: http://blogs.msdn.com/ie/archive/2008/06/10/introducing-ie-emulateie7.aspxDaleThanks I will read that msdn blog and see what I can come up with. I am not so sure on how to format the syntax for HTML source in autoit though. where in the code would I put your sample from above?still reading........GD Link to comment Share on other sites More sharing options...
DaleHohm Posted July 25, 2009 Share Posted July 25, 2009 Something like this: IEHeadInsertMeta($oIE, "X-UA-Compatible", "IE=EmulateIE7") Func IEHeadInsertMeta($o_object, $s_httpEquiv = 'Content-Type', $s_content = 'text/html; charset=ISO-8859-1') $o_head = _IETagNameGetCollection($o_object, "head", 0) $o_element = $o_object.document.createElement('meta') $o_element.httpEquiv = $s_httpEquiv $o_element.content = $s_content $o_head.appendChild($o_element) Return 1 EndFunc 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...
GEOSoft Posted July 25, 2009 Share Posted July 25, 2009 Dale If you look at the codebox in your post you will see that the last line was clipped. It's a problem with the height settings for codeboxes which Jon hasn't managed to fix yet although it will be fine if they click "popup" to get the code. I realize that almost anyone can figure out to add an EndFunc line to the code displayed but I thought you might want the heads up. Solution is to add a comment line below your code or better, above AND below. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
DaleHohm Posted July 25, 2009 Share Posted July 25, 2009 DaleIf you look at the codebox in your post you will see that the last line was clipped. It's a problem with the height settings for codeboxes which Jon hasn't managed to fix yet although it will be fine if they click "popup" to get the code. I realize that almost anyone can figure out to add an EndFunc line to the code displayed but I thought you might want the heads up. Solution is to add a comment line below your code or better, above AND below.Thanks George, although it looks fine here in IE8 -- is it unique to certain browsers?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...
AdmiralAlkex Posted July 25, 2009 Share Posted July 25, 2009 (edited) Thanks George, although it looks fine here in IE8 -- is it unique to certain browsers?DaleLooks fine in Opera 9.64 too, so it's probably another Firefox bug (wouldn't be the first bug in FF on this new forum software)Edit:Clarification Edited July 25, 2009 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
GEOSoft Posted July 25, 2009 Share Posted July 25, 2009 Thanks George, although it looks fine here in IE8 -- is it unique to certain browsers?DaleNot sure if it's browser related or not, might even be a screen resolution issue. I'm using IE7 at the moment but I can boot into Win 7 later and have another look in IE8. Although there is still a drastic difference in the screen resolution between My XP and My Win 7 so it might not tell me anything anyway. I do know that the IPB main page is messed at 1024x768 so I'm pretty sure they are not testing at all resolutions. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" 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