LED Studio - change internal web browser? (SOLVED) - Page 1
Forum section: electronics / repair

author: ghost
author_rank: Newbie
timestamp: May 25, 2015, 11:25:25 pm
content: Hi all, we are trying to use LED Studio to display some intranet web pages, but LED Studio (v.12.48) fails miserably...The Question:How to change what browser engine to use?The Bad:It crashes when I throw anything with some javascript...The Observations:I noticed that it uses IE as an internal engine, maybe IE10... or IE8?!The Tests:1.- It seems it can't handle anything with complex URLS like "http://example.com/site.jps?variableA=Test?&and=null"URLS like the one above crash LED Studio.2.- Trying to launch Chrome or Firefox set to a webpage i.e. "example.com" inside LED Studio also fail

author: kaveendra
author_rank: Contributor
timestamp: May 26, 2015, 12:39:23 am
content: I am not familiar with LED studio, but it looks like built using Visual Studio. If so, chances are, it might have used WebBrowser control to get the functionality. WebBrowser control within visual studio is just a wrapper around IE core. This simply means it uses whatever IE version installed in users machine. The WebBrowser control may sometimes fail to render JavaScript pages properly if at all holds without hanging. Another gotcha with this, as it runs on a separate thread, we have to use dispose method to free up resources on the calling thread, without a fail. Programming mishaps can contribute to poor implementation more than anything else.If LED studio is built with something other than VS WebBrowser control, then what I have mentioned above is all null and void.

author: ghost
author_rank: Newbie
timestamp: May 26, 2015, 05:22:57 pm
content: Thanks @kaveendra, you are on the right track!According to my analysis, LED Studios seems to render webpages in IE7, and doing some Google searches, results confirm that "WebBrowser Control" renders HTML pages in IE7I'll do some tests because there seems to be some solutions:Regedit changes - This means adding a DWORD inHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATIONCompatibility Meta Tag inside the HTML - Seems to work simply using "IE=edge"Compatibility Meta Tag sent by the server: .htaccess/IIS/Tomcat - Pending to try, this also should work.Chrome Frame (abandonware, replacement: Legacy Browser Support)Legacy Browser Support -Not a solution since it tries to open Chrome instead of using Chrome's rendering engine.HTML5 shim (?) - Not a solution since it still will use IE7Change WebBrowser Engine inside source code ?! nope!I'll keep this post updated with my findings.Thanks

author: macboy
author_rank: Super Contributor
timestamp: May 26, 2015, 07:28:41 pm
content: Quote from: ghost on May 26, 2015, 05:22:57 pmIt uses IE7 because that is the version of IE that is installed on the machine. You can have only one version, and that is it.Try upgrading IE to a newer version, whatever is the newest one that is supported by your O/S (which you did not specify).

author: ghost
author_rank: Newbie
timestamp: May 27, 2015, 02:51:59 pm
content: Well, it seems the solution is simple:Add to <HEAD>:<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />This will force LED Studio's internal browser to use the latest version of IE(in my case, a Windows 7 machine with IE10)Hope that helps someone in the future