Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [TheStone] Text Field appearance

Quote Reply
Re: [TheStone] Text Field appearance In reply to
Hi,
Cannot one just detect the browser type with a global? as in:

<%browser%>

sub {
my $tags = shift;
my $browser = ($ENV{'HTTP_USER_AGENT'});
if ($browser =~ /MSIE/) {
return "Internet Explorer";
}
if ($browser =~ /Mozilla/) {
return "Netscape";
}
return $browser;
}

It avoids modifying your gossamer code and it works for me! It's expandable to cope with other browser and to set type size parameters. Do you see any problem?

Last edited by:

charly: Sep 15, 2002, 11:17 PM
Subject Author Views Date
Thread Text Field appearance jai 4687 Sep 13, 2002, 1:32 AM
Thread Re: [jai] Text Field appearance
604 4543 Sep 13, 2002, 12:44 PM
Thread Re: [TheStone] Text Field appearance
charly 4534 Sep 15, 2002, 11:06 PM
Thread Re: [charly] Text Field appearance
604 4527 Sep 16, 2002, 10:00 AM
Thread Re: [TheStone] Text Field appearance
jai 4520 Sep 16, 2002, 3:58 PM
Thread Re: [jai] Text Field appearance
kellner 4490 Sep 22, 2002, 5:39 AM
Post Re: [kellner] Text Field appearance
jai 4452 Sep 25, 2002, 9:27 PM