Page 1 of 1

Checking if javascript enabled

Posted: Mon Oct 09, 2006 10:02 am
by hame22
Hi I have an online form that uses the FCKeditior so users can add their content as formated text. However this feature will not work if javascript is disabled.

Is there a way in PHP i can determine whether or not the users browser has javascript enabled and then if it isnt instead display a standard text area rather than the FCKeditior text area?


Thanks in advance!

Posted: Mon Oct 09, 2006 10:51 am
by Luke
no, but there is a way to supply users who don't have javascript enabled with different html...

Code: Select all

<!-- Javascript FCKEditor goes here //-->
<noscript>
 <!-- Now you can put a regular textarea here //-->
<textarea name="asdf"></textarea>
</noscript>
I believe there's a way to have FCKEditor replace textareas too, so that you wouldn't even have to do this...

Posted: Mon Oct 09, 2006 10:54 am
by hame22
OK, thats great thanks!