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-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--- It

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-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: noscript meta http-equiv=refresh content=0;

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 noscript is not recommended.

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: noscript meta http-equiv=refresh content=0;

Re: [PHP] Javascript detection , working version

2007-01-10 Thread Jürgen Wind
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 (it's merely

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] noscript meta http-equiv='refresh' content='0;url=jstest110.php?js=no' ?php /*** or put here your complete page for browsers with js disabled ***/ ? /noscript Nice -- now instead of two different pages (i.e.,

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 noscript is not recommended. hmm, any links

Re: [PHP] Javascript detection , working version

2007-01-09 Thread tedd
At 9:55 PM +0100 1/2/07, Satyam wrote: - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Jürgen Wind [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, January 02, 2007 8:57 PM Subject: Re: [PHP] Javascript detection , working version On Tue, 2007-01-02 at 11

Re: [PHP] Javascript detection , working version

2007-01-09 Thread Jürgen Wind
/07, Satyam wrote: - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Jürgen Wind [EMAIL PROTECTED] Cc: php-general@lists.php.net 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 Wind

Re: [PHP] Javascript detection , working version

2007-01-09 Thread Curt Zirzow
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:

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Jürgen Wind
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

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Robert Cummings
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 possible ;)

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Jürgen Wind
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 quickdirty hack, i'm no js expert ;) the js part

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Robert Cummings
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 have no idea, it

Re: [PHP] Javascript detection , working version

2007-01-02 Thread tedd
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

2007-01-02 Thread Robert Cummings
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 prohibiting

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Satyam
- Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Jürgen Wind [EMAIL PROTECTED] Cc: php-general@lists.php.net 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 Wind wrote

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Robert Cummings
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: php-general@lists.php.net Sent: Tuesday, January 02, 2007 8:57 PM Subject: Re: [PHP] Javascript detection , working version

Re: [PHP] Javascript detection , working version

2007-01-02 Thread tedd
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.

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Satyam
- 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

2007-01-02 Thread Jürgen Wind
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:

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Jürgen Wind
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

2007-01-02 Thread Jürgen Wind
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

Re: [PHP] Javascript detection , working version

2007-01-01 Thread Jürgen Wind
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

Re: [PHP] Javascript detection , working version

2007-01-01 Thread tedd
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