Re: How define if javascript is on with php

From: Date: Fri, 16 Apr 2010 17:02:24 +0000
Subject: Re: How define if javascript is on with php
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-304142@lists.php.net to get a copy of this message
At 3:46 PM +0200 4/16/10, Michiel Sikma wrote:
On 16 April 2010 14:06, Paulo-WORK <pauloworkmail@googlemail.com> 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

« previous php.general (#304142) next »