Software and services at affordable prices

RichoSoft is a non-profit making site

Site documents

Newsletter - Sign up to my Newsletter

About  templates

New members area - free to join - exclusive content & offers
|

Useful Javascript Snippets

FOR ALL EDITORS

Restrict Text Box Input:


To Install, create your text input box and/or text area on your form as usual.

Add this script to the <head> of your page:

Samples

Name:

(Maximum characters: 15)
You have characters left.

Comments:

(Maximum characters: 100)
You have characters left.

Enter some text in the boxes above to see what happens.

Add the following code to the text box (In webplus view the HTML for the text input box or text area and paste the code over the _AddCode=”here”):

Change the limitedtextfield to the name of your text box, the value 15 to the number of characters for the limit, if adding more than one restricted area you will need to change countdown to countdown1, countdown2 etc

Then insert an HTML fragment just below the field (or anywhere else you want it) and paste the following Code to the BODY:

Change the 15 to the number of characters for the limit, if adding more than one restricted area you will need to change countdown to countdown1, countdown2 etc to match the name you used on the relevant text box/area.

Download sample WPP more scripts coming soon
If you like these scripts you will definitely like jsCreator

jsCreator is a program to create commonly used javascripts for your web site or blog. You do not need any knowledge of java to use it. Simply enter a few parameters and the javascript code and instructions on where to place it are created for you. Just copy and paste the code as detailed.  

Many scripts

more more scripts