Hi there! I have a new problem: I’m using a WebDialog to display a webpage, however on Windows the images weren’t able to load. Does anyone know of a workaround?
The images load fine in MSIE v11 outside of SketchUp.
They load fine inside a SketchUp webdialog in SketchUp 2016, with browser emulation set to IE9, Win7 (with latest v11 installed and updated.) But your page can override that setting.
d = UI::WebDialog::new("Test")
d.set_url( "https://www.bimandco.com/en" )
d.show
Using SketchUp Pro 2016 and Windows 8 (Fully updated with the latest updates). Not sure which version of IE it uses though. Most of the images work fine but the main photo section for an object seems broken (As seen here for reference: Nintendo Wii Console BIM OBJECT: free BIM file downloads e.g., Revit, IFC, etc. | BIM&CO). They do work in vanilla IE (But once again, not sure which version it is)
Tested on Mac and right now on Windows 10, images do load.
I will ask the website designer for a way to override the browser emulation default, that might solve the problem. I don’t want to break Mac or other Windows support though…
Hm… maybe this is an IE compatibility thing. When IE is embedded into a web view its put into an older compatibility mode than when in the browser. Normally you have to add a tag to force it to use the latest <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
And I could have understood if it was SVG files not being loaded. But it appear to be PNGs? That along with Dan indicating that an older IE mode (9) worked… strange.
I had included a link to another topic thread that discussed how SketchUp uses the current MSIE libraries …
Basically SketchUp puts a default emulation version at registry key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
It is traditional in Windows software, that there be an “About <software name>” link at the bottom of the “Help” menu, that opens an “About” dialog, that displays (in addition to copyright statements,) the version of the software.
Microsoft Internet Explorer continues this tradition.
For example, on my machine, the MSIE “About” dialog displays:
Most of us have never seen your website before, so “main photo section” meant nothing to me.
Okay, now YES I can see there is a big box labeled “Official”, and within it a left column of tabs, and an image broswer frame of some kind, accessed via the tab “Photos”.
Within SketchUp, the photos inside the image browser are little [X] symbols. Like the page cannot access the image resources.
These images are coming from another domain it looks like: https://d2gs61btqzt6ta.cloudfront.net/photos/
Why use “https://” protocol ?
Also in the head, I see:
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
… and many references to a “role” attribute in the HTML elements.
These pages are aimed at HTML 5.
And BTW, in American English we do not normally use the term “Informations” spelled with an “s” on the end, in a plural sense. It sounds weird that way.
The word “Information” is a word describing a collection or set. Ie,
Correct, users should not change this. Developers should use the META tag to control the compatibility mode of their webdialog content. Otherwise it might break a number of things in SketchUp.