Re: [WSG] Testing styling availability when using JavaScript

2010-08-05 Thread Josh Godsiff
On 5/8/2010 8:03 PM, Foskett, Mike wrote: The scenario I'm thinking of is JS available but no CSS, either unavailable or switched off. Unless you're working on some sort of project where there's a high likelyhood that that will occur, don't bother - in the real world, the number of peopl

[WSG] Testing styling availability when using JavaScript

2010-08-05 Thread Foskett, Mike
Hi All, Is there any advantage to testing the availability of styling before running scripts? The scenario I'm thinking of is JS available but no CSS, either unavailable or switched off. Something like: var cssOn; var gotStyle=function(){ function init(){ // Simon Willisons - http://si