Re: How define if javascript is on with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 3:46 PM +0200 4/16/10, Michiel Sikma wrote:
On 16 April 2010 14:06, Paulo-WORK <pauloworkmail@xxxxxxxxxxxxxx> wrote:

-snip-

The nicest way, in my opinion, is to simply display the alternative content
for the site and override it if Javascript is present. If it's turned off,
people will see your static content, and if it's on they'll get the full
experience. Having alternative content is important because it allows Google
to properly index your site.

Finding a way to check if Javascript is turned on while still in server side
is really unnecessary, since displaying alternative content and removing or
hiding it client side works just as well as redirecting to an alternative
page.

Michiel

Paulo:

I agree. Here's a working example with everything you need:

http://sperling.com/examples/javascript-detection/

Cheers,

tedd


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux