Re: [PHP] How define if javascript is on with php

2010-04-17 Thread Paulo-WORK
On 17/04/2010 23:13, tedd wrote: At 11:43 AM +0200 4/17/10, Michiel Sikma wrote: By having regular content and overriding it with Javascript It's probably best that you use the term "progressive enhancement" rather than "overriding". The point being is that you have a site that delivers it'

Re: [PHP] How define if javascript is on with php

2010-04-17 Thread tedd
At 11:43 AM +0200 4/17/10, Michiel Sikma wrote: By having regular content and overriding it with Javascript It's probably best that you use the term "progressive enhancement" rather than "overriding". The point being is that you have a site that delivers it's content for those with javascri

Re: [PHP] How define if javascript is on with php

2010-04-17 Thread Ashley Sheridan
On Sat, 2010-04-17 at 11:43 +0200, Michiel Sikma wrote: > On 16 April 2010 19:02, tedd wrote: > > > At 3:46 PM +0200 4/16/10, Michiel Sikma wrote: > > > >> On 16 April 2010 14:06, Paulo-WORK wrote: > >> > >> -snip- > >> > > > > Paulo: > > > > I agree. Here's a working example with everything yo

Re: [PHP] How define if javascript is on with php

2010-04-17 Thread Michiel Sikma
On 16 April 2010 19:02, tedd wrote: > At 3:46 PM +0200 4/16/10, Michiel Sikma wrote: > >> On 16 April 2010 14:06, Paulo-WORK wrote: >> >> -snip- >> > > Paulo: > > I agree. Here's a working example with everything you need: > > http://sperling.com/examples/javascript-detection/ > > Cheers, > > te

Re: [PHP] How define if javascript is on with php

2010-04-16 Thread tedd
At 3:46 PM +0200 4/16/10, Michiel Sikma wrote: On 16 April 2010 14:06, Paulo-WORK wrote: -snip- The nicest way, in my opinion, is to simply display the alternative content for the site and override it if Javascript is present. If it's turned off, people will see your static content, and if it'

Re: [PHP] How define if javascript is on with php

2010-04-16 Thread Michiel Sikma
On 16 April 2010 14:06, Paulo-WORK wrote: > On 16/04/2010 12:54, Ashley Sheridan wrote: > >> On Fri, 2010-04-16 at 12:50 +0100, Paulo-WORK wrote: >> >>> Hello and thanks for any replies that this message may get. >>> I have a issue to solve regarding PHP. >>> My website relies heavlly on jquery

Re: [PHP] How define if javascript is on with php

2010-04-16 Thread Paulo-WORK
On 16/04/2010 12:54, Ashley Sheridan wrote: On Fri, 2010-04-16 at 12:50 +0100, Paulo-WORK wrote: Hello and thanks for any replies that this message may get. I have a issue to solve regarding PHP. My website relies heavlly on jquery and does not dowgrade properly. I use codeigniter framework as

Re: [PHP] How define if javascript is on with php

2010-04-16 Thread Peter Lind
On 16 April 2010 13:54, Ashley Sheridan wrote: > On Fri, 2010-04-16 at 12:50 +0100, Paulo-WORK wrote: > >> Hello and thanks for any replies that this message may get. >> I have a issue to solve regarding PHP. >> My website relies heavlly  on jquery and does not dowgrade properly. >> I use codeigni

Re: [PHP] How define if javascript is on with php

2010-04-16 Thread Ashley Sheridan
On Fri, 2010-04-16 at 12:50 +0100, Paulo-WORK wrote: > Hello and thanks for any replies that this message may get. > I have a issue to solve regarding PHP. > My website relies heavlly on jquery and does not dowgrade properly. > I use codeigniter framework as this website has a backend . > Is it p

Re: [PHP] How define if javascript is on with php

2010-04-16 Thread Peter Lind
Javascript is client-side - only way to detect it is to have a page send back information (post/get). What might work easiest is to have jquery look for a given cookie upon page render, and if it doesn't find it, then do an ajax call to the server. On the server side, initiate a session for the use

[PHP] How define if javascript is on with php

2010-04-16 Thread Paulo-WORK
Hello and thanks for any replies that this message may get. I have a issue to solve regarding PHP. My website relies heavlly on jquery and does not dowgrade properly. I use codeigniter framework as this website has a backend . Is it possible to detect if js is on with php? And if so can it be set