Re: 2 questions: Search in array and detect JS
| From: | fabien champel | Date: | Sat, 15 Apr 2006 14:47:56 +0000 |
| Subject: | Re: 2 questions: Search in array and detect JS | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234043@lists.php.net to get a copy of this message | ||
js is client-side, php server side...
it can't work
fabien
Chrome wrote:
> How about
>
> <?php $js = true; ?>
>
> <noscript>
> <?php $js = false; ?>
> </noscript>
>
> <?php
> if ($js) {
> // whizzy Ajax code (or file include)
> } else {
> // generic warning (or include non-JS base file)
> }
> ?>
>
> I know that would work but does it give the desired effect?
>
> Dan
>
>
> -------------------
> http://chrome.me.uk