Jump to content

Embedded IE Frame in GUI


Recommended Posts

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

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

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

I 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

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

see: http://blogs.msdn.com/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx

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

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

see: http://blogs.msdn.com/ie/archive/2008/06/10/introducing-ie-emulateie7.aspx

Dale

Thanks 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

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

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

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.

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

Thanks George, although it looks fine here in IE8 -- is it unique to certain browsers?

Dale

Looks 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 by AdmiralAlkex
Link to comment
Share on other sites

Thanks George, although it looks fine here in IE8 -- is it unique to certain browsers?

Dale

Not 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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...