[Catalyst] Checking client browsers, best approach?
Yuval Kogman
nothingmuch at woobling.org
Wed Sep 20 15:19:19 CEST 2006
On Wed, Sep 20, 2006 at 08:15:04 -0500, Peter Karman wrote:
> if ($c->req->browser->windows && $c->req->browser.ie)
^
> {
> $c->stash->{ie_win_too_bad}++;
> }
FWIW, you should also store this in the session, as
unless exists ( $c->session->{disable_javascript} ) {
$c->session->{disable_javascript} = $c->stash->{ie_win_too_bad}; # too hard to write windows js ;-)
}
And then have some preference pane option where the user can change
the value of this flag even if you don't agree with their browser.
--
Yuval Kogman <nothingmuch at woobling.org>
http://nothingmuch.woobling.org 0xEBD27418
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060920/cd8bd84c/attachment.pgp
More information about the Catalyst
mailing list