Re: [PHP] Javascript detection

2011-04-28 Thread Geoff Lane
On Thursday, April 28, 2011, Ashley Sheridan wrote: > I'm not sure if my earlier reply got through, but here it is again (or > at least the general gist of it) Many thanks. I got your info the first time around but didn't respond directly to you as Tedd made similar comments and I'd responded to

Re: [PHP] Javascript detection

2011-04-28 Thread Ashley Sheridan
On Thu, 2011-04-28 at 10:17 -0400, tedd wrote: > At 9:02 AM +0100 4/28/11, Geoff Lane wrote: > > > >FWIW, it's possible to detect whether or not Javascript is available, > >but not AFAICT at 'first contact' because you need the 'first contact' > >page to do something to prove that JS is available,

Re: [PHP] Javascript detection

2011-04-28 Thread tedd
At 9:02 AM +0100 4/28/11, Geoff Lane wrote: FWIW, it's possible to detect whether or not Javascript is available, but not AFAICT at 'first contact' because you need the 'first contact' page to do something to prove that JS is available, from which you can assume that JS is not should that someth

Re: [PHP] Javascript detection

2011-04-28 Thread Per Jessen
tedd wrote: > As Yogi Berra once said; "It's always hard to predict things > especially when it deals with the future." > He was quoting Niels Bohr: http://www.quotationspage.com/quote/26159.html -- Per Jessen, Zürich (10.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Javascript detection

2011-04-28 Thread Geoff Lane
On Thursday, April 28, 2011, tedd wrote: > To answer your question in a new thread. > No, the $_SERVER super-global isn't going to give you anything nor is > anything else like it. > You see, PHP has a difficult time detecting IF Javascript is turned > ON in the client's browser because PHP

Re: [PHP] Javascript detection , working version

2007-01-13 Thread Casey Chu
That book is so cool! =P Anyways, it said that browsers with Javascript, but not a recent enough Javascript would not display the Noscript. On 1/13/07, tedd <[EMAIL PROTECTED]> wrote: At 9:32 PM -0800 1/11/07, Jürgen Wind wrote: >tedd wrote: >>index.php, jstest110.php) , make it one. >ok >---8<

Re: [PHP] Javascript detection , working version

2007-01-13 Thread tedd
At 9:32 PM -0800 1/11/07, Jürgen Wind wrote: tedd wrote: index.php, jstest110.php) , make it one. ok ---8<--- It would be cool if I could send js value via a POST instead of GET-- can that be done? have a look http://149.222.235.16/jstest/70112/index.php ( POST version ) tedd PS: I read

Re: [PHP] Javascript detection , working version

2007-01-12 Thread Jürgen Wind
Ruben Rubio Rey wrote: > > A good way to detect if javascript exists is (cross-browser, > cross-platform): > > You try to load javascript_exists.htm. > > - > javascript_exists.htm: > > > > > ... > Javascript is actived!! > > >

Re: [PHP] Javascript detection , working version

2007-01-12 Thread Jürgen Wind
Ruben Rubio Rey wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > A good way to detect if javascript exists is (cross-browser, > cross-platform): > > You try to load javascript_exists.htm. > > - > javascript_exists.htm

Re: [PHP] Javascript detection , working version

2007-01-11 Thread Ruben Rubio
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A good way to detect if javascript exists is (cross-browser, cross-platform): You try to load javascript_exists.htm. - javascript_exists.htm: ... Javascript is actived!! - --

Re: [PHP] Javascript detection , working version

2007-01-11 Thread Jürgen Wind
tedd wrote: >index.php, jstest110.php) , make it one. ok ---8<--- >It would be cool if I could send js value via a >POST instead of GET-- can that be done? have a look http://149.222.235.16/jstest/70112/index.php ( POST version ) >tedd >PS: I read somewhere that using is not recommended. any i

Re: [PHP] Javascript detection , working version

2007-01-10 Thread Jürgen Wind
>index.php, jstest110.php) , make it one. no, it was just a proof of concept >It would be cool if I could send js value via a >POST instead of GET-- can that be done? should be possible with some onload/xhtmlrequest >tedd >PS: I read somewhere that using is not recommended. hmm, any links or

Re: [PHP] Javascript detection , working version

2007-01-10 Thread tedd
At 4:54 AM -0800 1/10/07, Jürgen Wind wrote: 8< [source of index] Nice -- now instead of two different pages (i.e., index.php, jstest110.php) , make it one. Here's my solution: echo("type='text/javascript'>location.href='index.ph

Re: [PHP] Javascript detection , working version

Curt Zirzow-2 wrote: > > On 1/1/07, Jürgen Wind <[EMAIL PROTECTED]> wrote: >> >> well, >> no cute css, but (hopefully) working - here is my quick & dirty version : >> >> http://149.222.235.16/public/ > > I dont understand the point. > > Curt, > sorry, i should have posted the original code (

Re: [PHP] Javascript detection , working version

On 1/1/07, Jürgen Wind <[EMAIL PROTECTED]> wrote: well, no cute css, but (hopefully) working - here is my quick & dirty version : http://149.222.235.16/public/ I dont understand the point. Curt, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] Javascript detection , working version

From: "Robert Cummings" <[EMAIL PROTECTED]> >>To: "Jürgen Wind" <[EMAIL PROTECTED]> >>Cc: >>Sent: Tuesday, January 02, 2007 8:57 PM >>Subject: Re: [PHP] Javascript detection , working version >> >>>On Tue, 2007-01-02 at 11:32 -0

Re: [PHP] Javascript detection , working version

At 9:55 PM +0100 1/2/07, Satyam wrote: - Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Jürgen Wind" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, January 02, 2007 8:57 PM Subject: Re: [PHP] Javascript detection , working version On Tue, 2

Re: [PHP] Javascript detection , working version

that's why i prefer discussing here in the forum, we benefit from the experiences of each other :) updated version: http://149.222.235.16/jstest/ -- View this message in context: http://www.nabble.com/Javascript-detection-tf2905451.html#a8132203 Sent from the PHP - General mailing list archive a

Re: [PHP] Javascript detection , working version

Robert Cummings wrote: > > Out of curiosity, can you guarantee the Javascript redirect will always > occur before the meta redirect when Javascript is enabled? Otherwise you > have a race condition. > > Cheers, > Rob. > yes, you where right (i noticed some problems with opera) updated version

Re: [PHP] Javascript detection , working version

Satyam wrote: > > > What I usually do is to make the entry page the one that would be used > without JavaScript and branch only if JavaScript is present. > > Satyam > yes, that's the best solution, updated version: http://149.222.235.16/jstest/ -- View this message in context: http://www

Re: [PHP] Javascript detection , working version

- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> What I usually do is to make the entry page the one that would be used without JavaScript and branch only if JavaScript is present. Yeah, that was what I did :) Cheers, Rob. -- Sorry, it seems I missed it. Satyam

Re: [PHP] Javascript detection , working version

At 3:39 PM -0500 1/2/07, Robert Cummings wrote: On Tue, 2007-01-02 at 15:24 -0500, tedd wrote: Rob: That's a good point -- even if a delay was added it's not certain that it wouldn't experience a race issue. And the longer the delay, the more problems you have with the user experience. P

Re: [PHP] Javascript detection , working version

On Tue, 2007-01-02 at 21:55 +0100, Satyam wrote: > - Original Message - > From: "Robert Cummings" <[EMAIL PROTECTED]> > To: "Jürgen Wind" <[EMAIL PROTECTED]> > Cc: > Sent: Tuesday, January 02, 2007 8:57 PM > Subject: Re: [PHP] Javascript

Re: [PHP] Javascript detection , working version

- Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Jürgen Wind" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, January 02, 2007 8:57 PM Subject: Re: [PHP] Javascript detection , working version On Tue, 2007-01-02 at 11:32 -0800, Jürgen Wi

Re: [PHP] Javascript detection , working version

On Tue, 2007-01-02 at 15:24 -0500, tedd wrote: > Rob: > > That's a good point -- even if a delay was added > it's not certain that it wouldn't experience a > race issue. And the longer the delay, the more > problems you have with the user experience. > > Perhaps a token scheme, like prohibitin

Re: [PHP] Javascript detection , working version

At 2:06 PM -0500 1/2/07, Robert Cummings wrote: On Tue, 2007-01-02 at 10:06 -0800, Jürgen Wind wrote: tedd, plz no personal mail, i like better to discuss things in the forum and thus hear other meanings and experiences. >Your solution was very simple and worked very well. tx, i always try

Re: [PHP] Javascript detection , working version

On Tue, 2007-01-02 at 11:32 -0800, Jürgen Wind wrote: > Robert Cummings wrote: > > > > Out of curiosity, can you guarantee the Javascript redirect will always > > occur before the meta redirect when Javascript is enabled? Otherwise you > > have a race condition. > > > > Cheers, > > Rob. > > > i

Re: [PHP] Javascript detection , working version

Robert Cummings wrote: > > Out of curiosity, can you guarantee the Javascript redirect will always > occur before the meta redirect when Javascript is enabled? Otherwise you > have a race condition. > > Cheers, > Rob. > i have no idea, it is just a quick&dirty hack, i'm no js expert ;) the j

Re: [PHP] Javascript detection , working version

On Tue, 2007-01-02 at 10:06 -0800, Jürgen Wind wrote: > tedd, plz no personal mail, i like better to discuss things in the forum and > thus hear other meanings and experiences. > >Your solution was very simple and worked very well. > tx, i always try to keep things logical and as simple as possibl

Re: [PHP] Javascript detection , working version

tedd, plz no personal mail, i like better to discuss things in the forum and thus hear other meanings and experiences. >Your solution was very simple and worked very well. tx, i always try to keep things logical and as simple as possible ;) this is just a quick example to show how to bring info g

Re: [PHP] Javascript detection , working version

At 4:54 PM -0800 1/1/07, =?UTF-8?Q?J=C3=BCrgen_Wind?= wrote: well, no cute css, but (hopefully) working - here is my quick & dirty version : http://149.222.235.16/public/ -- Well, it's cute enough for me ! It works on every browser that BrowserCam has -- hell, I can't even get my web site t

Re: [PHP] Javascript detection , working version

well, no cute css, but (hopefully) working - here is my quick & dirty version : http://149.222.235.16/public/ -- View this message in context: http://www.nabble.com/Javascript-detection-tf2905451.html#a8118787 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mai

Re: [PHP] Javascript detection

On Mon, 2007-01-01 at 16:14 -0500, tedd wrote: > Hi gang: > > I've asked this request on a couple of other list, but considering > that I've done this with a mixture of php and javascript, perhaps > some of you might check this out for me. > > Try this: > > http://sperling.com/js_detect > > D

Re: [PHP] Javascript detection

does not work on SeaMonkey and Opera (IE not tested). -- View this message in context: http://www.nabble.com/Javascript-detection-tf2905451.html#a8117266 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] Javascript detection

I do have javascript enabled, but it does not detect it... Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Monday, January 01, 2007 1

Re: [PHP] Javascript detection

On Mon, 1 Jan 2007 16:14:06 -0500, tedd <[EMAIL PROTECTED]> wrote: > Does this technique work to detect your browser's javascript setting? Not for me, it says "Javascript has not been detected on the client." when in fact I've got JavaScript enabled (Firefox 1.5.0.8 on Ubuntu Linux). Paul --