Anyways....thanks to all for their advice...I am now re-inventing the wheel ;-)
I've found various databases of user_agents and I will use that to make a simple chunk of CF code to read CGI.User_Agent and look for the browsers I want to let in (or warn that their browser is untested). Basically IE 4/5/6 and Netscape 7 get in...NS 4 gets told to get a new browser...hehe...and all others get the warning "site not tested with oyur browser and it may not look/function as intended....if it doesn't we ain't gonna help you" or something along those lines ;-)
Cheers
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
----- Original Message -----
From: Jochem van Dieten
To: CF-Talk
Sent: Wednesday, April 07, 2004 3:27 PM
Subject: Re: browser detection script
Bryan Stevenson wrote:
> Thanks Jochem....but how do I test if a browser will render the site as intended (i.e. in NS 4 this site looks WAY off the intended look).
You use certain functions, right? Just test for those :-)
Instead of (pseudocode):
function getIt(It) {
return document.getElementById(It);
}
Use:
function getIt(It) {
if (document.getElementById) {
return document.getElementById(It);
}
else {
redirectLousyBrowser();
return false;
}
}
Jochem
--
I don't get it
immigrants don't work
and steal our jobs
- Loesje
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

