Hey all, it’s 2am and ive been up for awhile building a client site. Ive run into a stumbling block that is more than likely a result of my tired eyes and numb brain. I have browser detection for IE6 and NN7 (as per client request) and am not having a problem with that aspect. I am having problems running and if statement – which usually isnt a problem. Here’s the code. If you can point out the lame bit of whatever I am missing Ill sure appreciate it!
function browserDetect(){
//alert(‘isIE6up: ‘+browser.isIE6up+’ | isNS7up: ‘+browser.isNS7up+’ | isMac: ‘+browser.isMac);
var ns7 = browser.isNS7up;
alert(‘ns7=’+ns7);
if(ns7 == “true”){
alert(‘youre ok’);
}else{
alert(‘you will be redirected’);
}
}
Let’s say the value ns7 respresents is TRUE. The if/else is not getting it right. Which leads me to believe Im not getting it right. In other words when the value of ns7 is false, it still goes through to the ‘else’ portion.
Help my tired eyes! And sorry for any lameness!