I would vote for simply using the Plain HTML <noscript> tag

See: http://www.w3.org/TR/html4/interact/scripts.html#h-18.3.1

This is a simple way to render the HTML within the <noscript> </noscript>
tags
When scripting is disabled, or when the browser agent doesn't support the
specified script. 


Philip J. Brown
President, TechC3 Inc.
2931 S. Buchanan St, Suite 400
Arlington, VA 22206-1503
 
(703) 236-3503 (Work)
(703) 989-5561 (Cell)
 
[EMAIL PROTECTED]
 

-----Original Message-----
From: Nathan Anderson [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 08, 2007 12:43 PM
To: [email protected]
Subject: Re: [appfuse-user] detect if javascript is enable

Rather than hide a message when javascript is enabled, why not add a message
if JS is not enabled?  You should be able to add a cookie using JS at the
login page, and then check if that cookie exists on the following pages in
the JSP. 

I don't have a code example, but I can't think of why this approach wouldn't
work and it would avoid displaying the message.  The only thing I'd be
concerned with is AppFuse [and most modern webapps] relies on Javascript to
enhance the user experience.  Is your plan to simply inform people they must
have JS enabled to use the app or are you making your app work with or
without JS?

Nathan

Thinkboy wrote:
> hi,
>
> should we add the javascript detection in Appfuse?
>
> I found this implementation by CSS.
> http://www.openjs.com/articles/javascript_detection_using_css.php
>
> but the problem is that this scripts seem reacting very slowly, 
> therefore, I will always see the hidden off_javascript_message 
> "flashed" in 0.5s while loading the web page initially.
>
> anyone is having a better solution like the one on google main page?
> (i am still not very sure how Google did it, sorry!) pls advise me !
>
> ~thinkboy
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to