Re: Re[2]: [PHP] JavaScript Enabled?
| From: | Mark | Date: | Mon, 29 Mar 2004 21:20:55 +0000 |
| Subject: | Re: Re[2]: [PHP] JavaScript Enabled? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181721@lists.php.net to get a copy of this message | ||
--- Richard Davey <rich@launchcode.co.uk> wrote:
<snip>
>
> Hmmm.. not a bad idea. I was thinking of some kind of
> "intermediary"
> script, where it can run a check to see if JS is there or not (via
> whatever method possible) and then redirect accordingly. I'll have
> an
> experiment and (further!) searches to see what other ideas are out
> there.
If you really want to use an intermediate script, you can set a form
value (say, js_enabled) to "false" as a hidden field, then use
Javascript (in an OnLoad) to set it to "true."
This could be autolaunched in a child window, automatically
submitted, and then automatically closed. Though I'm not sure how you
could auto-close a child windows with JS disabled... Maybe in an
invisible frame... You'd obviously need to store the value of
js_enabled in a cookie (assuming they're enabled) or session variable
if you wanted to use it across multiple pages...
=====
Mark Weinstock
mark_weinstock@yahoo.com
***************************************
You can't demand something as a "right" unless you are willing to fight to death to
defend everyone else's right to the same thing.
***************************************
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html