Author Topic: LED Studio - change internal web browser? (SOLVED)  (Read 3177 times)

0 Members and 1 Guest are viewing this topic.

Offline ghostTopic starter

  • Newbie
  • Posts: 3
LED Studio - change internal web browser? (SOLVED)
« 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
« Last Edit: May 27, 2015, 02:52:25 pm by ghost »
 

Offline kaveendra

  • Contributor
  • Posts: 13
  • Country: au
Re: LED Studio - change internal web browser?
« Reply #1 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.
 

Offline ghostTopic starter

  • Newbie
  • Posts: 3
Re: LED Studio - change internal web browser?
« Reply #2 on: May 26, 2015, 05:22:57 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   :palm:

I'll do some tests because there seems to be some solutions:
  • Regedit changes - This means adding a DWORD in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BROWSER_EMULATION
  • Compatibility 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 -  :-BROKE 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 IE7
  • Change WebBrowser Engine inside source code ?! nope!

I'll keep this post updated with my findings.
Thanks[/list]
« Last Edit: May 27, 2015, 02:57:01 pm by ghost »
 

Offline macboy

  • Super Contributor
  • ***
  • Posts: 2252
  • Country: ca
Re: LED Studio - change internal web browser?
« Reply #3 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).
 

Offline ghostTopic starter

  • Newbie
  • Posts: 3
Re: LED Studio - change internal web browser?
« Reply #4 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  :-+
« Last Edit: May 27, 2015, 02:57:28 pm by ghost »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf