PHP Classes

Check javascript is on or off through php

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  Check javascript is on or off...  >  (Un) Subscribe thread alerts  
Subject:Check javascript is on or off...
Summary:Check the javascript enable or disable through php
Messages:3
Author:Anuj Kumar Gupta
Date:2007-06-01 04:53:47
Update:2007-06-01 16:00:41
 

  1. Check javascript is on or off...   Reply   Report abuse  
Picture of Anuj Kumar Gupta Anuj Kumar Gupta - 2007-06-01 04:53:47
I wan to check the client browser is javascript enable or disable. it it is disable then how can i enable it for run my javascript validation?

  2. Re: Check javascript is on or off...   Reply   Report abuse  
Picture of jon austin jon austin - 2007-06-01 15:59:33 - In reply to message 1 from Anuj Kumar Gupta
the only way I know of is to set a test cookie, then reload the page (or go to a new one) and test to see if the cookie was set.
i.e. set the cookie when user goes to login form and on submission check if it was set.

  3. Re: Check javascript is on or off...   Reply   Report abuse  
Picture of jon austin jon austin - 2007-06-01 16:00:41 - In reply to message 2 from jon austin
and No, you cannot 'enable' it if the client browser has it disabled.