Home : Products : DBMan SQL : Discussion :

Products: DBMan SQL: Discussion: Re: [TheStone] Text Field appearance: Edit Log

Here is the list of edits for this post
Re: [TheStone] Text Field appearance
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

Edit Log: