[thelist] Testing for Javascript with PHP

aardvark roselli at earthlink.net
Sat Oct 12 15:15:01 CDT 2002


> From: s t e f <notabene at members.evolt.org>
>
> Alternatively you could do something like that:
> - set a cookie with javascript
> - try to get the cookie on the next page with PHP
>
> (original idea came up after [was it] aardvark told us about this
> method to build a database of screen resolutions: gathering screen
> width+height via javascript, putting it in a cookie, and then catching
> the cookie server-side for statistical purposes).

oh, you mean this:
Real-World Browser Size Stats, Part I
http://evolt.org/article/list/17/2295/

but yeah, that's a trick i've used in the past to test for cookie
support... write a cookie on one page, check to see if there's a
cookie on the next page (there's an issue with IE returning a cookie
value in some cases, an article is pending on this, so instead of
testing for the value, i just test to make sure it's not null)...

--
Read the evolt.org case study
Usability: The Site Speaks for Itself
http://amazon.com/exec/obidos/ASIN/1904151035/evoltorg02-20
ISBN: 1904151035





More information about the thelist mailing list