Re: JavaScript enabled
| From: | Dominic | Date: | Mon, 07 Aug 2000 14:55:10 +0000 |
| Subject: | Re: JavaScript enabled | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10470@lists.php.net to get a copy of this message | ||
A way that I have been checking if javascript is enabled is for links to the document, have
javascript add a value to the query string. Such as:
<A HREF="/something"
onClick="this.href='/something?javascript=1';">
Works for me. You can do the same with forms setting a hidden variable using javascript.
--
Dominic
Daniel Higgins wrote:
> Actually, you can see whether or not the client has Javascript enabled or not using browser
> hawk, an ASP component which you have to purchase. There probably is some way to do it in PHP also,
> like seeing whether a page refreshes using the window.location.reload() or something like that.
>
> >On Fri, Aug 04, 2000 at 12:12:49PM -0700, Brad Sacks wrote:
>
> > > Yet another reason why I hate working with asp. get_browser(), how cool is
>
> > > that. Also, how fast did the php communitty help me find an answer. But I
>
> > > still need to figure out how to do it in asp. Wishing wont make the "evil go
>
> > > away.
>
> > >
>
> > Afaik there is no way to knwo if clientsite scripting is enabled (as
>
> > someone else already stated).
>
> > BTW the correct sollution is to:
>
> > Request.ServerVariables("HTTP_USER_AGENT")
>
> > Please read the manual next time before you start bitching on ASP and
>
> > start to ask question about it on a PHP mailinglist 8-)
>
> > msdn is you friend.....
>
> > --
>
> > Daniel Tryba