Re: [users@httpd] Detecting Javascript via Apache 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: <httpd2@xxxxxxxxxxxx>

>
> Hi all.
>
> Is it possible for apache 2.0 to detect if a browser has
> javascript enabled when a page is requested, and then
> passing this value to PHP?
>
> This would allow me to serve different page content,
> depending on whether the user's browser has javascript
> enabled or not.
>
> Regard

It is not relevant if a page has or not Javascript enabled.
If you want to create pages that work in every browser, read and follow
World Wide Web's recommendations at www.w3c.org.

What does it mean if Javascript is enabled? It means that the browser has it
enabled, but you won't know if the user is able to use it.
Maybe the computer she uses doesn't have a mouse or the user is blind and
should use only the keyboard, so the first important thing is to create the
page that follow W3C's rules.

If you want to see if the browser has Javascript enabled, you can create a
Javascript code that GET's a page from the web server. If the page is
gotten, then the browser supports Javascript and if it is not, it means that
the code was not working so it might be disabled.

Teddy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux