NetTalk Central

Author Topic: Disabling logging with IE 6  (Read 3411 times)

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Disabling logging with IE 6
« on: October 11, 2011, 03:22:09 AM »
How to check if user is logging from IE version 6 and to prevent it - or note the user to change default web browser?
Regards, Ozren

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Disabling logging with IE 6
« Reply #1 on: October 11, 2011, 05:38:14 AM »
check UserAgent property.

cheers
Bruce

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: Disabling logging with IE 6
« Reply #2 on: October 11, 2011, 08:18:25 AM »
Hallo Ozren,


I have this java script in my login page in head.


<script type="text/javascript">
<!--
var browser      = navigator.appName
var ver         = navigator.appVersion
var thestart   = parseFloat(ver.indexOf("MSIE"))+1 //This finds the start of the MS version string.
var brow_ver   = parseFloat(ver.substring(thestart+4,thestart+7)) //This cuts out the bit of string we need.

if ((browser=="Microsoft Internet Explorer") && (brow_ver > 5)) //By default the min. IE ver is set to 6. Change as desired.
   {
   window.open('IERedirect.html','_self'); //URL to redirect to another page
   }
//-->
</script>



IERedirect.html is the page where I put some information and give them links for another browsers like Chrome, Firefox or Safari.

Regards,
Robert

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: Disabling logging with IE 6
« Reply #3 on: October 11, 2011, 09:40:58 AM »
Thanks for sample, will try it in morning...