Name

MV_DHTML_BROWSER — regular expression matching HTTP user agents with DHTML support

SYNOPSIS

{ regexp }

DESCRIPTION

This variable specifies regexp to use in matching DHTML-capable client browsers (HTTP user agents). program binary.

VARIABLE TYPE

Catalog variable

EXAMPLES

Example: Setting MV_DHTML_BROWSER

Variable MV_DHTML_BROWSER  MSIE [5-9].*Windows|Mozilla.*Gecko

NOTES

AVAILABILITY

MV_DHTML_BROWSER is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Menu.pm
Line 1801 (context shows lines 1791-1805 in dhtml_browser():1798)


my %menu_default_img = (
  clear  => 'bg.gif',
  closed => 'fc.gif',
  open   => 'fo.gif',
);

sub dhtml_browser {
my $regex;
eval {
  $regex = $::Variable->{MV_DHTML_BROWSER}
    and $regex = qr/$regex/;
};
$regex ||= qr/MSIE [5-9].*Windows|Mozilla.*Gecko|Opera.*[7-9]/;
return $Vend::Session->{browser} =~ $regex;

AUTHORS

Interchange Development Group

SEE ALSO

MV_HTML4_COMPLIANT(7ic), XHTML(7ic)

DocBook! Interchange!