Fluoresce Posted March 23, 2009 Share Posted March 23, 2009 I want to use the script on this page: http://www.shiningstar.net/articles/articles/javascript/dynamictextareacounter.asp It enforces a character limit on textarea elements. Does it look okay to you guys who know about Javascript? Is it compatible with all major browsers? Note that it's very old (2000). Quote Link to comment https://forums.phpfreaks.com/topic/150670-solved-how-compatible-is-this-script/ Share on other sites More sharing options...
Psycho Posted March 23, 2009 Share Posted March 23, 2009 There are only a few major browsers. The only way to really know if the script will work in any browser is to test it. However, that script is fairly basic and I *doubt* there would be any problems. However, I hope you realize that you should not rely upon the JavaScript to prevent too much data from being entered. It is a nice real-time indicator to the user, but can not be relied upon because a user can turn-off javascript processign in their browser. Also, that script is not complete because it allows you to paste as much text into the field as you want. There should also be an on-blur event to process data input using the mouse. Quote Link to comment https://forums.phpfreaks.com/topic/150670-solved-how-compatible-is-this-script/#findComment-791747 Share on other sites More sharing options...
Fluoresce Posted March 23, 2009 Author Share Posted March 23, 2009 Thanks, MJ. Great points. I'll look into that onblur thing. Quote Link to comment https://forums.phpfreaks.com/topic/150670-solved-how-compatible-is-this-script/#findComment-791980 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.