solution

solution

am 17.04.2010 13:03:01 von Paulo-WORK

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: solution

am 17.04.2010 17:24:09 von lala

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-detec tion.aspx

I took out all my money (both cents) and put it under my mattress ;D

Mike Wright


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: solution

am 18.04.2010 19:26:17 von Michiel Sikma

--0016e6d77ecb625f620484862484
Content-Type: text/plain; charset=UTF-8

On 17 April 2010 13:03, 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 .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

--0016e6d77ecb625f620484862484--

Re: solution

am 19.04.2010 16:21:49 von TedD

At 7:26 PM +0200 4/18/10, Michiel Sikma wrote:
>On 17 April 2010 13:03, 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 .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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php