...

View Full Version : IE 6.0+ Browser redirect



fallingintoZero
09-26-2003, 02:41 PM
Does anyone know of any javascript that redirect a user to a browser version specific page? My site is only compatible with IE 6.0 or higher so I would need a script that will send users with IT 6.0 or higher to one page, and people using other versions of IE or users with netscape to different pages. Any help would be great.

glenngv
09-26-2003, 03:16 PM
Can be done without using javascript

<head>
<!--[if ! IE 6]>
<meta http-equiv="Refresh" content="1; URL=nonIE6page.htm">
<![endif]-->
</head>

That will automatically redirect non-IE6 users to the specified page.

That's called Conditional Comments of IE (http://www.javascriptkit.com/howto/cc2.shtml).

liorean
09-26-2003, 04:08 PM
That will be treated as one single comment in most non-ie browsers...

Maybe this?:

<!--[if ! IE 6]-->

oracleguy
09-26-2003, 06:36 PM
Just out of curiosity, why is it only compatible with IE6? Currently Mozilla and the other open source browsers have better support of newer technologies such as CSS2.

fallingintoZero
09-26-2003, 11:20 PM
glenngv: thanks, i will give it a try


Originally posted by oracleguy
Just out of curiosity, why is it only compatible with IE6? Currently Mozilla and the other open source browsers have better support of newer technologies such as CSS2.

Well the thing is, I use iFrames and a multi image background that from what I have tested, only displays perfectly in IE. I have tested it in Netscape and Opera, and everything wasn't aligned correctly. I have yet to try Mozilla because I'm guessing the results of the page will be the same because I created the website using IE.

liorean
09-27-2003, 01:15 AM
Speaking of that, the case is more likely that iew is the one who gets the alignment wrong and the others get it right. Moz and op are both very good at css, while iew has it's deficits in that area.

Just wondering, what version of nn/ns were you speaking about? Ns6-7 are based on moz while nn1-4 are based on their earlier rendering engine.

fallingintoZero
09-27-2003, 01:20 AM
I've tried it with both older and earlier versions. And it wouldnt suprise me if IE gets the alignment wrong. The browser really pisses me off but also NS/NN some reason make my computer lag and freeze. Opera and Mozilla I like but since the mass majority of people who visit my site have NS or IE (mostly IE, ,barely anynone that visits it uses Opera or Mozilla), then I just made it so it's displayed correctly with IE.

oracleguy
09-27-2003, 01:33 AM
Although I don't know what your site is about, only making your site work "correctly" in IE could be the reason you get only a few people using other browsers. I'm not trying to be rude or anything, I just wanted to point it out.

fallingintoZero
09-27-2003, 02:31 AM
I don't think you are being rude at all. My site isn't anything commercial. It's just a personal site for the most part. I mean it's now anything like "Here is my cat fluffy. Lok at the picture. He is cute." I just decided to start a site that is pretty much nothing but an online journal... my views and beliefs of life, religion, politics, society, etc... and my poetry and paintings and stuff. Nothing serious.

Arctic Fox
09-27-2003, 02:56 AM
Originally posted by fallingintoZero
[...]I use iFrames and a multi image background

Ooooh! Any chance you've a link? I'd like to take a look!

I think I've the same ideas: http://arctic.ithium.net/


:thumbsup:

fallingintoZero
09-27-2003, 03:29 AM
Well as of right now I took the site down to redesign it but it should be back up soon, when it is I could e-mail you the address.

glenngv
09-27-2003, 08:10 AM
Originally posted by liorean
That will be treated as one single comment in most non-ie browsers...

Maybe this?:

<!--[if ! IE 6]-->

Ok, let me correct it...

<![if !IE 6]>
<meta http-equiv="Refresh" content="1; URL=nonIE6page.htm">
<![endif]>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum