TLS Browser warning showing for compatible Internet Browsers

TLS browser warning showing in Internet Explorer version 11 even though it's a compatible browser
  1. Click Web > Click Page designer under Configuration
  2. Proceed to Step 3: Configure Content
  3. Click on the ‘gear’ icon above the Header or Footer section in your page layout
  4. When the editor window appears, click on the View tab
  5. Click HTML Code
  6. Paste the following code snippet in the HTML Source Editor: 
    <div id="dialog" class="BBFieldCaption" style="display: none;" title="Important Notice">
    <p><strong>Your browser or operating system is out of date</strong></p>
    <p>In order for us to process your payment securely, you must ensure that your operating system and browser is upgraded to the latest version. Checking that your operating system and browser are fully up-to-date is the best way to protect your payment and guarantee it is processed safely. You can find a full list of compatible browsers and operating systems <a href="https://www.blackbaud.com/security/pci-compliance/upgrade/os-browsers">here</a>.</p>
    </div>
    <p>
    <script type="text/javascript">
    			var userAgent = window.navigator.userAgent.toLowerCase();
                var userAgentVersion;
                var supportForTLS = true;
    			
                if(userAgent.indexOf('firefox/') > -1){ //firefox
                    userAgentVersion = Number(userAgent.split('firefox/')[1].split('.')[0]);
                    if (userAgentVersion < 27) {supportForTLS=false;}
                } else if (userAgent.indexOf('applewebkit/') > -1){ //chrome, edge and safari
                    userAgentVersion = Number(userAgent.split('applewebkit/')[1].split('.')[0]);
                    if (userAgentVersion < 537) {supportForTLS=false;}
                } else if (userAgent.indexOf('opera/') > -1){ //opera
                    userAgentVersion = Number(userAgent.split('opera/')[1].split('.')[0]);
                    if (userAgentVersion < 14) {supportForTLS=false;}
                } else {
                     userAgentVersion = ieVersion();//Internet explorer
                     if (userAgentVersion < 1 ) { supportForTLS = false; }
                }
    
                function ieVersion() {                
    				var userAgent = window.navigator.userAgent.toLowerCase();				
    				if (userAgent.indexOf("trident/7.0") > 0 || userAgent.indexOf('edge/') > 0)
    					return 1				
    				else
    					return 0				  
                }
                
    		if(!supportForTLS) {	
    		  $( "#dialog" ).dialog(); 
                    };
    </script>
    </p>
  7. Click Update to close the window
  8. Click Save to close the editor
  9. Click Submit to publish your changes

Steps to Duplicate

  1. Click Web > Manage donation forms
  2. Click the arrow next to the designation
  3. Copy the URL
  4. Open the URL in Internet Explorer

Environment

 Altru Arts & Cultural
 4.98

Was this article helpful?