Click to See Complete Forum and Search --> : Detecting javascript with PHP
I started working on my personal site again and need a way to detect javascript with php. Is there a pre-existing php method that would easily allow me to do this?
Something like:
if(browser has javascript on) do this; else do this;
Drazan
11-25-2007, 10:35 PM
http://forums.devshed.com/javascript-development-115/javascript-detection-15358.html
hewligan
11-25-2007, 10:47 PM
Nope. It's not really possible.
Before you've actually sent them a page, the only information you have is the content of the HTTP request, which doesn't specify things like whether or not javascript is turned on.
Drazan
11-25-2007, 10:51 PM
You can always do the <noscript></noscript>
Well… now my little problem is going to take much more thought then I was expecting, lol.
hewligan
11-25-2007, 11:23 PM
It's always the ones ya think are gonna be little problems that turn out to be the most work...
Actually… once I remembered what the hell I did it wasn't all that difficult. Its just been about three months since, I've seen the website I'm working on and code in general so I'm a little rusty but, nothing I can't handle,lol