On Feb 17, 2:33 pm, Rick Pasotto <r...@niof.net> wrote:
> On Mon, Feb 16, 2009 at 08:16:49PM -0800, lerxst wrote:
>
> > That's fine and all but the issue is how does one 'detect' those
> > browsers that are incompatible with jQuery without sniffing?  The
> > answer is, you don't.

You might get some tips from the following blog entry:

<URL: 
http://peter.michaux.ca/articles/feature-detection-state-of-the-art-browser-scripting
>

>
> Since 'detection' requires javascript, you can't 'detect' if javascript
> is not running.
>
> What I do is have a <p></p> or <div></div> with text like "Additional
> features available with javascript enabled." Give it a class with
> display:block and then have javascript change it to display:none.

Wouldn't it be handy if HTML had an element that displayed only if
javascript was disabled or not available?  :-)

<URL: http://www.w3.org/TR/html401/interact/scripts.html#edef-NOSCRIPT
>


--
Rob

Reply via email to