check if javascript is disabled

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

My question is if exists any way to check if javascript is disabled
on the client browser, I have tried with browser.javascript but this
only return to me if the browser has the capability, no if is disabled.

Thanks Diego
 
Hi,

Frankly I don't know any method of doing it quering the variables provided
by the browser, A possible workaround would be to have a hidden field whose
value is set from javascript, when you get the page back if that hidden
field does not have the expected value then you know javascript is not
actived.


cheers,
 
Thanks Ignacio
but the problem is that I have to know that in a HttpModule
the other way is to use your solution in a page that execute and redirect to
the home, but the site have to work entering by other pages than home
 
Hi,

The only specific way I can think of is to somehow utilize the <NOSCRIPT>
tag.
 
Hi,

You only needs to do this check once, after that you can store it in
session.

I really don't think this is possible without using something like I
mentioned before or the redirect.
You could google for this, this probably is a problem that all server side
framework may have, so you could look for it in ASP/PHP/CFM groups


cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation


Pd:
If you find the answer post it back here, for the archives :)
 
Diego,

Assuming cookies are enabled, you could write to the document.cookie from
client-side javascript. The javascript could be written into each page from
your HttpModule. The biggest challenge would probably be handling the first
request, where the cookie value has not yet been written. Of course, if you
don't also require that cookies be enabled for your application, then this
technique is useless.

HTH,
Nicole
 
Back
Top