Announcement

Collapse
No announcement yet.

Some websites not shown properly in web object (but ok in IE)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    I got the list of browsers here

    Helper class for configuring which version of Internet Explorer is used by the WebBrowser control when hosted in a Windows Forms or WPF application


    Value Description
    11001 Internet Explorer 11. Webpages are displayed in IE11 edge mode, regardless of the !DOCTYPE directive.
    11000 IE11. Webpages containing standards-based !DOCTYPE directives are displayed in IE11 edge mode. Default value for IE11.
    10001 Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the !DOCTYPE directive.
    10000 Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. Default value for Internet Explorer 10.
    9999 Windows Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the !DOCTYPE directive.
    9000 Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode. Default value for Internet Explorer 9.
    8888 Webpages are displayed in IE8 Standards mode, regardless of the !DOCTYPE directive.
    8000 Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode. Default value for Internet Explorer 8
    7000 Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode. Default value for applications hosting the WebBrowser Control.
    Plugins or Sources MokoX
    BunnyHop Here

    Comment


    • #17
      Never mind about the example I was able to do it thanks, just need to now detect the version of IE or IE controls that are now installed.
      Plugins or Sources MokoX
      BunnyHop Here

      Comment


      • #18
        Hello!

        For convenience, wrote a function. Use on health!
        P.S. Just specify the version to emulate.


        function Web.Emulation(sVersion)
        local nMainKey = HKEY_CURRENT_USER;
        local sIESubkey = "Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EM ULATION";
        local sExe = _SourceFilename;

        if (sVersion ~= "") then
        if (Registry.GetValue(nMainKey, sIESubkey, sExe, false) == "") then
        Registry.SetValue(nMainKey, sIESubkey, sExe, sVersion, REG_DWORD);
        end
        else
        Registry.DeleteValue(nMainKey, sIESubkey, sExe);
        end
        end

        Comment


        • #19
          Dear ctaty3 it will be great if u can provide a sample project showing how this is working.

          Comment


          • #20
            But ctaty3 you have set 4 lines of code to way more and your option also don't make sense as windows most of the time has emulation set to 9 where you have checked if it's not set at all or delete so it's just going to delete it nice try but you made it more complcated then it's needed to be
            Plugins or Sources MokoX
            BunnyHop Here

            Comment


            • #21
              Originally posted by Ulrich View Post
              I don't appear to have any problems here. But I am not sure where you got this value "10001" from.

              Ulrich
              Hello Ulrich,
              example code ? how code? help!
              I could not.

              Comment


              • #22
                Originally posted by Ulrich View Post
                I don't appear to have any problems here. But I am not sure where you got this value "10001" from.

                Ulrich
                Hello, can you share the source code of this example? I am a beginner of programming, Thank you very much.

                Comment


                • #23
                  Originally posted by ctaty3 View Post
                  Hello!

                  For convenience, wrote a function. Use on health!
                  P.S. Just specify the version to emulate.


                  function Web.Emulation(sVersion)
                  local nMainKey = HKEY_CURRENT_USER;
                  local sIESubkey = "Software\\Microsoft\\Internet Explorer\\Main\\FeatureControl\\FEATURE_BROWSER_EM ULATION";
                  local sExe = _SourceFilename;

                  if (sVersion ~= "") then
                  if (Registry.GetValue(nMainKey, sIESubkey, sExe, false) == "") then
                  Registry.SetValue(nMainKey, sIESubkey, sExe, sVersion, REG_DWORD);
                  end
                  else
                  Registry.DeleteValue(nMainKey, sIESubkey, sExe);
                  end
                  end
                  How to use functions to display HTML 5 web pages, I am a programming beginner, thank you

                  Comment

                  Working...
                  X