From: Paulo-WORK on
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
From: lala on
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

From: Michiel Sikma on
On 17 April 2010 13:03, Paulo-WORK <pauloworkmail(a)googlemail.com> 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 .hide( ) and .show( ) i am able to change the #div with Js enabled
> content and no js.
>
>

That's the best way to go. After all, the only real way to detect Javascript
is to *use* Javascript :)

Michiel
From: tedd on
At 7:26 PM +0200 4/18/10, Michiel Sikma wrote:
>On 17 April 2010 13:03, Paulo-WORK <pauloworkmail(a)googlemail.com> 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 .hide( ) and .show( ) i am able to change the #div with Js enabled
> > content and no js.
>>
>
>That's the best way to go. After all, the only real way to detect Javascript
>is to *use* Javascript :)
>
>Michiel

The best way is to *attempt* to use it thus providing progressive
enhancement *if* it's there.

Cheers,

tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com