[Seaside] conditionally change the class of the html document for IE

Boris Popov, DeepCove Labs boris at deepcovelabs.com
Sat Dec 24 21:12:51 UTC 2011


Paul,

I'd recommend feature detection instead of browser detection; see
http://www.modernizr.com/.

-Boris

-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Paul
DeBruicker
Sent: Saturday, December 24, 2011 3:40 PM
To: Seaside - general discussion
Subject: [Seaside] conditionally change the class of the html document
for IE

Hi -

Is there a way to use the conditionally  set the class on the <html> tag
in Seaside if the browser is an internet explorer variant?

aRoot if ie7; do:[aRoot htmlAttributes addClass:'ie7'].

sets the class to 'ie7' no matter what browser is accessing the page.

thanks in advance

Paul
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list