Re: [SMARTY] Setting a variable if javascript is enabled?
| From: | Matthias Mohr | Date: | Wed, 12 Feb 2003 14:10:26 +0000 |
| Subject: | Re: [SMARTY] Setting a variable if javascript is enabled? | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7678@lists.php.net to get a copy of this message | ||
Hi Jason,
> You could try something sneaky like having js do a document.write of a 1
> pixel x 1 pixel image that is a php script. This script could set a
> variable in the session indicating that js is enabled (and then output the
> small image), and the rest of you app could work from that.
Hmm. Sounds complicated.
Could you give me an code-example?
with regards,
Matthias