php-general Digest 17 Apr 2010 22:13:11 -0000 Issue 6698
Topics (messages 304159 through 304162):
Re: How define if javascript is on with php
304159 by: Ashley Sheridan
304162 by: tedd
solution
304160 by: Paulo-WORK
304161 by: lala
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On Sat, 2010-04-17 at 11:43 +0200, Michiel Sikma wrote:
> On 16 April 2010 19:02, tedd <tedd.sperl...@gmail.com> wrote:
>
> > At 3:46 PM +0200 4/16/10, Michiel Sikma wrote:
> >
> >> On 16 April 2010 14:06, Paulo-WORK <pauloworkm...@googlemail.com> wrote:
> >>
> >> -snip-
> >>
> >
> > Paulo:
> >
> > I agree. Here's a working example with everything you need:
> >
> > http://sperling.com/examples/javascript-detection/
> >
> > Cheers,
> >
> > tedd
> >
> >
> Another important thing to consider is that the web is meant to be
> accessible to even those using a screen reader. Screen readers don't support
> Javascript (to my knowledge) and instead rely on properly written HTML. By
> having regular content and overriding it with Javascript, you're ensuring
> that the visually impaired, among others, can also use your site.
>
> Michiel
Visually impaired aren't the only people that Javascript poses a problem
for. Consider someone with Arthritis or severe RSI who cannot use a
mouse as easily, if at all, as most people. A lot of Javascript uses
event handlers like onclick and onmouseover, which are specifically
geared towards using a mouse and won't work on a browser that is being
navigated by a keyboard.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
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 javascript turned off and those who have javascript
turned on, can enjoy an "enhanced" version of the presentation, but
not have something provided that other's can't get.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
I have reached a solution for my problem with js.
Following all the sugestions and using jquery turned out to be quite simple.
using .ide( ) and .show( ) i am able to change the #div with Js enabled
content and no js.
So defining with css for example:
#main{display:none;}
#main_nojs{display:block;}
if js is enabled on load Jquery will .hide( #min_nojs) and -.show(#main)
if is off #main is already defined as display:none and #main_nojs as
display:block.
Paulo Carvalho
--- End Message ---
--- Begin Message ---
Paulo-WORK wrote:
I have reached a solution for my problem with js.
Following all the sugestions and using jquery turned out to be quite
simple.
using .ide( ) and .show( ) i am able to change the #div with Js enabled
content and no js.
So defining with css for example:
#main{display:none;}
#main_nojs{display:block;}
if js is enabled on load Jquery will .hide( #min_nojs) and -.show(#main)
if is off #main is already defined as display:none and #main_nojs as
display:block.
Paulo Carvalho
Here's how some others solved the problem.
http://thedailywtf.com/articles/bulletproof-javascript-detection.aspx
I took out all my money (both cents) and put it under my mattress ;D
Mike Wright
--- End Message ---