Showing posts with label IE. Show all posts
Showing posts with label IE. Show all posts

Thursday, December 29, 2022

Switch to Edge browser instead of IE; Windows Server; Group Policies; RPA; Regkeys; UiPath Admin

Switch to Edge browser from IE, it needs to have regkeys changed to allow certain sites to run through Edge in IE mode, otherwise they don't work. The site was not running in IE mode, so it would just display a blank screen. 


Updating the regkeys - we should be able to access the site on the robots;

Saturday, March 4, 2017

Check if browser is chrome or not using Javascript in JSPX ADF

  <af:clientListener type="load" method="BrowserDetection"/>

          <af:resource type="javascript">
             function BrowserDetection() {
                var versionofIE = detectIE();
               
                //Check if browser is IE or not, if browser is not IE then method will return false other wise version number
                if (versionofIE !== false) {
                    alert("Please use Chrome browser for this module");
                }
                
             }
             
              function detectIE() {
                var ua = window.navigator.userAgent;

                var msie = ua.indexOf('MSIE ');
                if (msie > 0) {
                    // IE 10 or older => return version number
                    return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);
                }

                var trident = ua.indexOf('Trident/');
                if (trident > 0) {
                    // IE 11 => return version number
                    var rv = ua.indexOf('rv:');
                    return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);
                }

                var edge = ua.indexOf('Edge/');
                if (edge > 0) {
                    // Edge (IE 12+) => return version number
                    return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10);
                }

                // other browser
                return false;
            }
              
              </af:resource>


                                         Navigator.userAgent Chrome:


Navigator.userAgent IE