cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject RE: stylesheet switching on browser version
Date Wed, 23 Aug 2000 03:27:38 GMT
On Tue, 22 Aug 2000, Mike Engelhart wrote:

> > best i've come up with so far is to do detect DHTML support in javascript 
> > and set a cookie (for DHTML support) or not. then i'll mess with the
> > <?xml-stylesheet?> PI either in a producer, a processor, or an xsp page, 
> > based on the presence or absence of said cookie.
> >
> > probably i'll override ProducerFromFile since i want to automatically add 
> > several PIs to all of the documents on this site and i can't be messing
> > around with cocoon2 in production yet.
> Wouldn't be easier to come up with more specific User-Agent  
> settings so that you're not just determining if the  
> browser is Netscape but you're determining that it's Netscape 2.0.2 which  
> supports JavaScript v1.0 or IE 4.5 which supports JavaScript 1.2, etc, etc.  

yeah, well, whoever comes out with the next browser with DHTML support is
going to hate me if i rely on the user-agent and only allow nn4+ and ie4+
to see the DHTML version. i'll rely on checking for the existence of
document.layers or document.all in javascript.

- donald

View raw message