Page 1 of 1

Difference in IE version

Posted: Thu Jan 11, 2018 7:10 pm
by Paradox
My clients are using internet explorer in different versions this causes many errors in the codes, can not standardize the version used in the webgadget? Include in exe the component of my computer?


Sorry for the english google translator mode.

Re: Difference in IE version

Posted: Sat Jan 13, 2018 8:43 am
by Mistrel
The WebGadget in Windows utilizes a special browser object and is not necessarily based on the version of IE that is installed. Different versions of Windows use different browser objects based different renderers so you will have to test your application to ensure that it displays correctly across OS versions.

I had this problem when using a WebGadget to write a GUI wizard for an installer. Make sure that you test on XP, for sure, if you want to support this OS.

The advantage of this is that the executable doesn't need to ship any libraries needed for the browser so the binary is smaller. The disadvantage is that you are at the mercy of the renderer changing and your application breaking. I would certainly like an option to link a different browser like WebKit or Chromium to ensure consistent rendering across platforms but this is not an option in PureBasic.

Re: Difference in IE version

Posted: Sat Jan 13, 2018 11:26 am
by wayne-c
Including this line in the HTML helped me a lot when working with the WebGadget:

Code: Select all

<meta http-equiv="X-UA-Compatible" content="IE=EDGE">

Re: Difference in IE version

Posted: Sat Jan 13, 2018 12:05 pm
by IdeasVacuum
There is a registry setting you could try:

Code: Select all

;===== Registry: temp setting to optimise web gadget ==================================================================================================================================================================================
Global     sglpValueName.s = GetFilePart(ProgramFilename())
Global          lglpData.l = 11001
Global lglpdwDisposition.l
Global       igphkResult.i

If RegCreateKeyEx_(#HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", 0, #Null, #REG_OPTION_VOLATILE, #KEY_ALL_ACCESS, #Null, @igphkResult, @lglpdwDisposition) = #ERROR_SUCCESS
    RegSetValueEx_(igphkResult, sglpValueName, 0, #REG_DWORD, @lglpData, SizeOf(LONG))
      RegCloseKey_(igphkResult)
EndIf

;======================================================================================================================================================================================================================================
[/size]

Code: Select all

;Registry: temp setting to optimise web gadget: remove
If RegOpenKeyEx_(#HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", 0, #KEY_SET_VALUE, @igphkResult) = #ERROR_SUCCESS

       RegDeleteValue_(igphkResult, sglpValueName)
          RegCloseKey_(igphkResult)
EndIf

Re: Difference in IE version

Posted: Mon Jan 15, 2018 3:53 pm
by Paradox
IdeasVacuum wrote:There is a registry setting you could try:

Code: Select all

;===== Registry: temp setting to optimise web gadget ==================================================================================================================================================================================
Global     sglpValueName.s = GetFilePart(ProgramFilename())
Global          lglpData.l = 11001
Global lglpdwDisposition.l
Global       igphkResult.i

If RegCreateKeyEx_(#HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", 0, #Null, #REG_OPTION_VOLATILE, #KEY_ALL_ACCESS, #Null, @igphkResult, @lglpdwDisposition) = #ERROR_SUCCESS
    RegSetValueEx_(igphkResult, sglpValueName, 0, #REG_DWORD, @lglpData, SizeOf(LONG))
      RegCloseKey_(igphkResult)
EndIf

;======================================================================================================================================================================================================================================
[/size]

Code: Select all

;Registry: temp setting to optimise web gadget: remove
If RegOpenKeyEx_(#HKEY_CURRENT_USER, "SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", 0, #KEY_SET_VALUE, @igphkResult) = #ERROR_SUCCESS

       RegDeleteValue_(igphkResult, sglpValueName)
          RegCloseKey_(igphkResult)
EndIf
I have already taken this code in different posts that I read here in the forum ...

Re: Difference in IE version

Posted: Mon Jan 15, 2018 3:54 pm
by Paradox
wayne-c wrote:Including this line in the HTML helped me a lot when working with the WebGadget:

Code: Select all

<meta http-equiv="X-UA-Compatible" content="IE=EDGE">

Help without doubts but does not solve the problem yet the difference in redenrization

Re: Difference in IE version

Posted: Thu Feb 01, 2018 3:57 pm
by espartano
No soluction for question?