EEVblog Electronics Community Forum

Electronics => Repair => Topic started by: ghost on May 25, 2015, 11:25:25 pm

Title: LED Studio - change internal web browser? (SOLVED)
Post by: ghost on May 25, 2015, 11:25:25 pm
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
Title: Re: LED Studio - change internal web browser?
Post by: kaveendra on May 26, 2015, 12:39:23 am
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.
Title: Re: LED Studio - change internal web browser?
Post by: ghost on May 26, 2015, 05:22:57 pm
I'll do some tests because there seems to be some solutions:

I'll keep this post updated with my findings.
Thanks[/list]
Title: Re: LED Studio - change internal web browser?
Post by: macboy on May 26, 2015, 07:28:41 pm
Thanks @kaveendra, you are on the right track!

According to my analysis, LED Studios seems to render webpages in IE7  |O , and doing some Google searches, results confirm that "WebBrowser Control" renders HTML pages in IE7  :wtf:.
....
It 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).
Title: Re: LED Studio - change internal web browser?
Post by: ghost on May 27, 2015, 02:51:59 pm
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  :-+