WebDialogs - The Lost Manual β R1 09 November 2009
-
@thomthom said:
Note! Because WebDialogs are embedded browser controls they behave differently than a normal website on Windows. Internet Explorer 8, as a browser, will default to Super Standard mode when you use Strict DOCTYPE. But when embedded as a WebBrowser object it will default to IE7 compatibility mode.
Yes I have noticed this... I used a Strict DOCTYPE, and set the compatibilty mode to "EmulateIE8", but
%(#8000BF)[document.documentMode]
still returns "7". (dang it!)@thomthom said:
Microsoft says that you have to set a registry key for the application that embeds the WebBrowser to make it use IE8 rendering mode.
I cannot find reference to this registry key... do you still have a link ?
@thomthom said:
But of course we can't do that for Sketchup since some plugins might rely on the IE7 mode.
I CAN (and need to,) because I am writing a subclass that will expect Strict mode, with the highest compatibility under MSIE, so as to take advantage of CSS3 and HTML5, if available.
@thomthom said:
But what you can do is include the meta tag
<meta http-equiv="X-UA-Compatible" content="IE=8"/>
. Note that this meta tag should be placed at the top of the<head>
tag.Beware that the user agent string will still report
MSIE 7.0
for embedded WebBrowsers - even though you use IE8 mode. This differs from when you test the same HTML in the normal web browser where it returnsMSIE 8.0
. To check the rendering mode:document.documentMode
.Even using this tag along with a proper DOCTYPE tag, does not run the WebDialog in IE8 mode. Certain CSS 2.1 properties (as well as Transitional CSS3 properties available to IE8 and higher,) are not being honored.
The min-width, max-width, min-height and max-height CSS properties are the ones I am wanting to use, mostly that are not honored.
-
Got some sample code there Dan?
I have Edge mode working in my dialogs by just adding the meta tag and valid markup. Using the latest HTML5 and CSS3 features of IE10. -
I think the major problem is that the "%WINDIR%/system32/shdocvw.DLL" on my machine is old. It's version: 6.0.2900.5512
But on mother's XP machine (that has automatic updates ON,) it's newer, version: 6.0.2900.5770
(EDIT: Looks like this machine had 963027 applied, and mine did not.).. so I missed an update, no doubt. (I'm using the mskbfiles site to try and track down updates I need to apply.)
Comparing to IE9/10 does not help my XP machines. I'm dealing with IE8, right now.
-
Not a major version difference though, just a revision diff.
-
Thomthom, is the manual available as a Google doc, or possible in a dvcs repo?
-
@jim said:
Thomthom, is the manual available as a Google doc, or possible in a dvcs repo?
I have been writing up a new one. Initially I was writing up for my blog, but it does make more sense as a Google Doc.
"Dvsc"?
-
-
Hm.. using the Wiki feature of a GitHub repo. ...and I'd think there are packages that can convert Markdown text into a document like PDF. That would be nice.
And it could be community maintained.
-
@thomthom said:
Hm.. using the Wiki feature of a GitHub repo
I was thinking more of using the pages that each repo has. For example, http://sketchup.github.com/sketchup-stl/
GitHub Pages
Websites for you and your projects, hosted directly from your GitHub repository. Just edit, push, and your changes are live.
GitHub Pages (pages.github.com)
Sort of like free hosting by github.
And it could be community maintained.
-
hm.. interesting. Wasn't aware of this Pages feature. Nice.
Advertisement