I'm trying to load html5 (built with bootstrap) page in c++ app, using standart WebBrowser control, first few seconds it looks like in the normal browser, then it switch to look like ie8 mode.
FEATURE_BROWSER_EMULATION is set correct, doctype set correct too.
Using native ie9 browser, all looks fine.
How to make it to display content correct in WebBrowser component?
OS: Win7x32sp1, ie9, ms visual c++ 2008
To instruct the webbrowser control to render your page as HTML5 you need to add the tag at the beginning of your file as follows:
<!doctype html>
<html>
<!-- rest of the page content -->
</html>
Related
Is there a way to save an html file that still contains the user interactions of jQuery and JavaScript?
Because JavaScript and CSS are client-side (meaning they run in the browser), yes, you can save the page and use it off-line.
If the JavaScript and CSS are embedded within the HTML then you can have it work as an all-in-one page.
If you right-click on a page and "view source" you can easily download the code.
Note that any server-side interaction (such as PHP, Java, etc) will not work this way.
I created an extension for IE10 that uses X-site scripting, which does not work when Document Mode (Not the Browser Mode!) is set to below IE10.
But some of the sites that my extension runs include the <meta http-equiv="X-UA-Compatible" content="IE=IE8">, and sets the Document Mode to IE8.
I can manually change the Document Mode back to Standard using the Dev Tools, but I have to do it every time I visit the page.
Is there a setting in windows or IE10 to ignore the meta tag, and always use Standard Document Mode?
Has anyone tried to debug a webpages rendered in a javafx web view with weinre? Is this possible or is web view lacking the necessary infrastructure?
As the Weinre interface to the browser is just JavaScript and JavaScript executes just fine in WebView, WebView has the "necessary infrastructure" to use weinre.
To give an indication of how to execute JavaScript within the context of WebView, you can look at the code I used to debug WebView using the JavaScript based Firebug Lite tool: Html/Javascript debugging in JavaFX WebView. The code is a slightly modified version of the code found in the Firebug Lite bookmarklet. As Weinre also has a bookmarklet which can be used to initiate it, you could perform a similar translation for Weinre as I did for Firebug Lite.
Additionally Weinre is usable by placing a script tag inside the target web page. Take a look at some sample code that I created for embedding the jQuery script library into WebView - you could do the same for the Weinre script library.
I doubt anybody has tried using WebView with Weinre before.
I have been using some fairly plain vanilla JavaScript code to load KML into a GE Plugin. It still works normally in Windows 7 FireFox and Chrome and, until I was upgraded to IE9 worked in IE. Now I get the message: "There Was a Problem With the Google Earth Plugin ..." when I reload a page or load another similar page.
I have used the IE F12 Debugger tools to try to isolate the problem. It always occurs when I am executing the fetchKml function to load a kmz file. The ge plugin always crashes executing the statement:
windows.earth.TermsOfUseManager.prototype.db = function(){var = ...., c=a.a.getTermOfUseX_(),
I have a PDF file with a screen grab and other info.
I believe there must be an interaction between IE9 and the latest GE plugin.
The URL of a page with this problem is:
http://reynsoft.com/Travel/Gallery/Baltic_2012/Day_2_At_Sea/Day_2_At_Sea.aspx
I hope someone out there can help.
Apparently, Google Earth plugin requires explicit declaration of IE9 compatibility mode.
<meta http-equiv="X-UA-Compatible" content="IE=9" />
Simply, grab the Sample from Google Earth documentation and add this line in <head> to see the difference in behaviour (alternatively, hit F12 and force IE9 standards mode).
Note, switching off the "Enhanced Protected Mode" in IE10 does not help.
I am about to wrap up the implementation for my first ExtJS based application. But I am facing a weird issue at this point.
I am using ASP.net at the server and then ExtJS at the client. I noticed that, If I run this project from Visual Studio Debugger then it works nice, and in that case my browser URL was set to
http://localhost/MyApp/Home.aspx
But As soon as I open a new browser and hit
http://MyWorkStationName/MyApp/Home.aspx
it behaves slightly different.
For instance, some Button Shapes are not rendered properly.
Can any body give me a clue how can I debug this issue. basically how the style can be influenced by the machine name vs localhost in URL ?
Thanks in advance!
I too had the same issue.
This is due to the compatibility issue in ie8. go to tools->compatibility View Settings
uncheck "Display intranet sites in Compatibility view.
In local host or when we run from VS. It is not in Compatibility mode. And works fine in ie or in FF. But as soon as we change the local host to hostname/machinename it is going to compatibility view(default setting).
Jquery drag and drop functionality was also creating some problem. when it was running in compatibility view.
Use this first in header: <meta http-equiv="X-UA-Compatible" content="IE=9">
You can use Firebug or IE Developer tools to debug the css ( >= IE 8 preferably if Firefox is not an option.).