Re: [nyphp-talk] detecting Java Script from within a PHP script.

2007-11-19 Thread tedd
At 9:00 AM -0500 11/16/07, Urb LeJeune wrote: Sorry about the last message, I accidently hit the send button. It there a way to detect if a user's browser has Java Script enabled from within a PHP script? Urb No. PHP runs before the browser/javascript does. Having php deter

Re: [nyphp-talk] detecting Java Script from within a PHP script.

2007-11-16 Thread csnyder
On 11/16/07, Urb LeJeune <[EMAIL PROTECTED]> wrote: > It there a way to detect if a user's browser has Java Script enabled > from within a PHP script? This might work: if ( !window.location.search ) { window.location = window.location.href+"?js=1"; } Look for $_GET['js'] in your scr

Re: [nyphp-talk] detecting Java Script from within a PHP script.

2007-11-16 Thread Jon Baer
Hmm, was under the impression latest Browscap libraries already did a similar technique but does not look like it is the case @ all. Good call. - Jon On Nov 16, 2007, at 10:46 AM, csnyder wrote: On Nov 16, 2007 9:54 AM, Jon Baer <[EMAIL PROTECTED]> wrote: Browscap ... http://garetjax.in

Re: [nyphp-talk] detecting Java Script from within a PHP script.

2007-11-16 Thread csnyder
On Nov 16, 2007 9:54 AM, Jon Baer <[EMAIL PROTECTED]> wrote: > Browscap ... > > http://garetjax.info/projects/browscap/ > > - Jon I don't think that will tell you whether js is enabled, just whether the browser is capable of it according to the browsecap.ini database. -- Chris Snyder http://chx

Re: [nyphp-talk] detecting Java Script from within a PHP script.

2007-11-16 Thread Jon Baer
Browscap ... http://garetjax.info/projects/browscap/ - Jon On Nov 16, 2007, at 9:00 AM, Urb LeJeune wrote: Sorry about the last message, I accidently hit the send button. It there a way to detect if a user's browser has Java Script enabled from within a PHP script? Urb Dr.

[nyphp-talk] detecting Java Script from within a PHP script.

2007-11-16 Thread Urb LeJeune
At 06:43 AM 11/13/2007, you wrote: [EMAIL PROTECTED] wrote: too (security and quality never got any space on the project priority list obviously). From my experience that is true for 90% of all software projects. Only documentation ranks lower. But using every spanking new unproven technolog

[nyphp-talk] detecting Java Script from within a PHP script.

2007-11-16 Thread Urb LeJeune
Sorry about the last message, I accidently hit the send button. It there a way to detect if a user's browser has Java Script enabled from within a PHP script? Urb Dr. Urban A. LeJeune, President E-Government.com 800-204-9545 ___ New