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

  • kevin8
    replied
    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

    Leave a comment:


  • kevin8
    replied
    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.

    Leave a comment:


  • hudalfa
    replied
    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.

    Leave a comment:


  • kingzooly
    replied
    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

    Leave a comment:


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

    Leave a comment:


  • ctaty3
    replied
    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

    Leave a comment:


  • kingzooly
    replied
    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.

    Leave a comment:


  • kingzooly
    replied
    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.

    Leave a comment:


  • kingzooly
    replied
    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
    That is the value for version 10 well this is what I read on a few websites.

    I just edited it from 11001 so that last value was wrong but I tried 9 up.

    Could I ask ask for the source of that little example

    Leave a comment:


  • Ulrich
    replied
    I don't appear to have any problems here. But I am not sure where you got this value "10001" from.

    Ulrich
    Attached Files

    Leave a comment:


  • kingzooly
    replied
    I have done this for autorun.exe and appname.exe with dword (10001) but it does not seem to be putting it in to IE 10 mode.

    Leave a comment:


  • Ulrich
    replied
    You find the info here:



    Ulrich

    Leave a comment:


  • kingzooly
    replied
    Originally posted by Ulrich View Post
    The web object is an ActiveX control, installed as part of the current Internet Explorer on your computer. If you update Internet Explorer on your or your customer's computer, you will also be using a newer Web Object when the application is executed (unless Microsoft chooses not update the control for some reason). Only Microsoft can tell you which features they are going to support in future releases of the Web Browser control. One thing you should be aware of is that the default user agent of the Web Browser control is IE 7, but you can set the browser emulation from Internet Explorer 7 to 11 as desired (as long as there is indeed an IE11 on the target system).

    Ulrich
    I know this is a bump but I missed this reply, how do you change the emulation in AMS?

    Leave a comment:


  • Ulrich
    replied
    The web object is an ActiveX control, installed as part of the current Internet Explorer on your computer. If you update Internet Explorer on your or your customer's computer, you will also be using a newer Web Object when the application is executed (unless Microsoft chooses not update the control for some reason). Only Microsoft can tell you which features they are going to support in future releases of the Web Browser control. One thing you should be aware of is that the default user agent of the Web Browser control is IE 7, but you can set the browser emulation from Internet Explorer 7 to 11 as desired (as long as there is indeed an IE11 on the target system).

    Ulrich

    Leave a comment:


  • Bl4ckSh33p
    replied
    Hi. I noticed that many HTML5 features are not working in the built in web object. Is it possible to use another one which supports HTML5/more Javascript?

    update: it seems even the latest version of IE does not yet support WebRTC to embed a html5 multiplayer game. but will this work with the web object if a new IE version is released? Or is it possible to update the web object?

    Are there other plugins to use chrome as browser in your app?

    Leave a comment:

Working...
X