Add to Favorites    Make Home Page 839 Online  
 Language Categories  
 Our Services  

Home » ASP Home » Strings Home » Limit Characters in a TextArea

A D V E R T I S E M E N T

Search Projects & Source Codes:

Title Limit Characters in a TextArea
Description This will limit the number of characters a user types in a textarea.
Category ASP » Strings
Hits 380735
Code Select and Copy the Code
<HTML> <HEAD> <META NAME="GENERATOR" CONTENT="snap6 - Html questionnaire export"> <META NAME="ROBOTS" CONTENT="NOINDEX"> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <TITLE>Test - What happens when max field length Is exceeded?</TITLE> <script language="javascript"> <!-- Function checkchars(cur){ //change max length To determine below var maxlength=5 var mymessageA="Too much data in the text box! Please remove " var mymessageB=" characters" If (cur.V2.value.length>maxlength){ alert(' '+ mymessageA + ' ' + (cur.V2.value.length - maxlength)+ ' ' + mymessageB + ' ') return False } If (cur.V4.value.length>maxlength){ alert(' '+ mymessageA + ' ' + (cur.V4.value.length - maxlength)+ ' ' + mymessageB + ' ') return False } } //--> </script> </HEAD> <BODY TOPMARGIN=0 BGCOLOR = "#FFFFFF" BACKGROUND="*"> <FORM ACTION="http://www.mercator.co.uk/cgi-bin/subques.pl" METHOD=POST onsubmit="return checkchars(this)"> <Input Type=HIDDEN NAME=":SURVEY:" VALUE="open_test1"> <Input Type=HIDDEN NAME=":EMAIL:" VALUE="[email protected]"> <Input Type=HIDDEN NAME=":USERID:" VALUE="51468S/999"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Page Columns" WIDTH="100%"> <TR> <TD COLSPAN="3" WIDTH="100%" ALIGN="LEFT" VALIGN="TOP"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD>  </TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD WIDTH="100%" ALIGN="CENTER" VALIGN="TOP"> <FONT SIZE="6" COLOR="#000000" FACE="Arial"><B> Open Ended Question Test - What happens when a response exceeds max field length?</B></FONT> </TD> </TR> </TABLE> </TD> </TR> <TR> <TD WIDTH="46%" ALIGN="LEFT" VALIGN="TOP"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD COLSPAN="3">  </TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD ROWSPAN="2" WIDTH="10%" ALIGN="LEFT" VALIGN="TOP"> <a name="Q1"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> Q1</B></FONT> </a></TD> <TD COLSPAN="2" WIDTH="90%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> First Open Ended Question - Exceed field length</B></FONT> </TD> </TR> <TR> <TD WIDTH="90%" ALIGN="RIGHT" VALIGN="BOTTOM"> <textarea rows="40" cols="25" name="V2"></textarea></TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD COLSPAN="4">  </TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD ROWSPAN="4" WIDTH="10%" ALIGN="LEFT" VALIGN="TOP"> <a name="Q2"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> Q2</B></FONT> </a></TD> <TD COLSPAN="3" WIDTH="90%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> First Mult Choice Question </B></FONT> </TD> </TR> <TR> <TD ROWSPAN="3" WIDTH="5%">  </TD> <TD WIDTH="85%" ALIGN="LEFT" VALIGN="BOTTOM"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Code" WIDTH="100%"> <TR> <TD WIDTH="94%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><I> Poor</I></FONT> </TD> <TD WIDTH="6%" ALIGN="RIGHT" VALIGN="BOTTOM"> <Input Type=checkbox value="1" name="V3"></TD> </TR> </TABLE> </TD> </TR> <TR> <TD WIDTH="85%" ALIGN="LEFT" VALIGN="BOTTOM"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Code" WIDTH="100%"> <TR> <TD WIDTH="94%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><I> Good</I></FONT> </TD> <TD WIDTH="6%" ALIGN="RIGHT" VALIGN="BOTTOM"> <Input Type=checkbox value="2" name="V3"></TD> </TR> </TABLE> </TD> </TR> <TR> <TD WIDTH="85%" ALIGN="LEFT" VALIGN="BOTTOM"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Code" WIDTH="100%"> <TR> <TD WIDTH="94%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><I> Excellent</I></FONT> </TD> <TD WIDTH="6%" ALIGN="RIGHT" VALIGN="BOTTOM"> <Input Type=checkbox value="3" name="V3"></TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> <TD WIDTH="7%">  </TD> <TD WIDTH="46%" ALIGN="LEFT" VALIGN="TOP"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD COLSPAN="3">  </TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD ROWSPAN="2" WIDTH="10%" ALIGN="LEFT" VALIGN="TOP"> <a name="Q3"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> Q3</B></FONT> </a></TD> <TD COLSPAN="2" WIDTH="90%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> Second Open Ended Question- Within field length </B></FONT> </TD> </TR> <TR> <TD WIDTH="90%" ALIGN="RIGHT" VALIGN="BOTTOM"> <textarea rows="40" cols="25" name="V4"></textarea></TD> </TR> </TABLE> </TD> </TR> </TABLE> <BR> <DIV align=center><!--inlcudes div--> <Input Type=reset value="Reset"> <Input Type=submit value="Submit"> </DIV> <DIV align=center><IMG VSPACE=4 SRC="pbred12.gif"></DIV> <BR> </FORM> </BODY> </HTML> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="snap6 - Html questionnaire export"> <META NAME="ROBOTS" CONTENT="NOINDEX"> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <TITLE>Test - What happens when max field length Is exceeded?</TITLE> <script language="javascript"> <!-- Function checkchars(cur){ //change max length To determine below var maxlength=5 var mymessageA="Too much data in the text box! Please remove " var mymessageB=" characters" If (cur.V2.value.length>maxlength){ alert(' '+ mymessageA + ' ' + (cur.V2.value.length - maxlength)+ ' ' + mymessageB + ' ') return False } If (cur.V4.value.length>maxlength){ alert(' '+ mymessageA + ' ' + (cur.V4.value.length - maxlength)+ ' ' + mymessageB + ' ') return False } } //--> </script> </HEAD> <BODY TOPMARGIN=0 BGCOLOR = "#FFFFFF" BACKGROUND="*"> <FORM ACTION="http://www.mercator.co.uk/cgi-bin/subques.pl" METHOD=POST onsubmit="return checkchars(this)"> <Input Type=HIDDEN NAME=":SURVEY:" VALUE="open_test1"> <Input Type=HIDDEN NAME=":EMAIL:" VALUE="[email protected]"> <Input Type=HIDDEN NAME=":USERID:" VALUE="51468S/999"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Page Columns" WIDTH="100%"> <TR> <TD COLSPAN="3" WIDTH="100%" ALIGN="LEFT" VALIGN="TOP"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD>  </TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD WIDTH="100%" ALIGN="CENTER" VALIGN="TOP"> <FONT SIZE="6" COLOR="#000000" FACE="Arial"><B> Open Ended Question Test - What happens when a response exceeds max field length?</B></FONT> </TD> </TR> </TABLE> </TD> </TR> <TR> <TD WIDTH="46%" ALIGN="LEFT" VALIGN="TOP"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD COLSPAN="3">  </TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD ROWSPAN="2" WIDTH="10%" ALIGN="LEFT" VALIGN="TOP"> <a name="Q1"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> Q1</B></FONT> </a></TD> <TD COLSPAN="2" WIDTH="90%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> First Open Ended Question - Exceed field length</B></FONT> </TD> </TR> <TR> <TD WIDTH="90%" ALIGN="RIGHT" VALIGN="BOTTOM"> <textarea rows="40" cols="25" name="V2"></textarea></TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD COLSPAN="4">  </TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD ROWSPAN="4" WIDTH="10%" ALIGN="LEFT" VALIGN="TOP"> <a name="Q2"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> Q2</B></FONT> </a></TD> <TD COLSPAN="3" WIDTH="90%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> First Mult Choice Question </B></FONT> </TD> </TR> <TR> <TD ROWSPAN="3" WIDTH="5%">  </TD> <TD WIDTH="85%" ALIGN="LEFT" VALIGN="BOTTOM"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Code" WIDTH="100%"> <TR> <TD WIDTH="94%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><I> Poor</I></FONT> </TD> <TD WIDTH="6%" ALIGN="RIGHT" VALIGN="BOTTOM"> <Input Type=checkbox value="1" name="V3"></TD> </TR> </TABLE> </TD> </TR> <TR> <TD WIDTH="85%" ALIGN="LEFT" VALIGN="BOTTOM"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Code" WIDTH="100%"> <TR> <TD WIDTH="94%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><I> Good</I></FONT> </TD> <TD WIDTH="6%" ALIGN="RIGHT" VALIGN="BOTTOM"> <Input Type=checkbox value="2" name="V3"></TD> </TR> </TABLE> </TD> </TR> <TR> <TD WIDTH="85%" ALIGN="LEFT" VALIGN="BOTTOM"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Code" WIDTH="100%"> <TR> <TD WIDTH="94%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><I> Excellent</I></FONT> </TD> <TD WIDTH="6%" ALIGN="RIGHT" VALIGN="BOTTOM"> <Input Type=checkbox value="3" name="V3"></TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> <TD WIDTH="7%">  </TD> <TD WIDTH="46%" ALIGN="LEFT" VALIGN="TOP"> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD COLSPAN="3">  </TD> </TR> </TABLE> <TABLE BORDER="0" CELLSPACING="0" SUMMARY="Question" WIDTH="100%"> <TR> <TD ROWSPAN="2" WIDTH="10%" ALIGN="LEFT" VALIGN="TOP"> <a name="Q3"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> Q3</B></FONT> </a></TD> <TD COLSPAN="2" WIDTH="90%" ALIGN="LEFT" VALIGN="TOP"> <FONT SIZE="2" COLOR="#000000" FACE="Arial"><B> Second Open Ended Question- Within field length </B></FONT> </TD> </TR> <TR> <TD WIDTH="90%" ALIGN="RIGHT" VALIGN="BOTTOM"> <textarea rows="40" cols="25" name="V4"></textarea></TD> </TR> </TABLE> </TD> </TR> </TABLE> <BR> <DIV align=center><!--inlcudes div--> <Input Type=reset value="Reset"> <Input Type=submit value="Submit"> </DIV> <DIV align=center><IMG VSPACE=4 SRC="pbred12.gif"></DIV> <BR> </FORM> </BODY>

Related Source Codes

Script Name Author
��������������������� VyomWorld
Resistor color code reader A.Chermarajan.
Telephone Directory dhivya
card swapping game (Mini Project) nityanand
simple hangman-pascalsource Seabert
college dirtectory (Mini Project) msridhar
Poll Application John van Meter
ASP Daily Hit Counter. Tejaskumar Gandhi
To avoid null in asp environment using sql Sami
Maklumbalas webmaster
poll John van Meter
EasyASP Template Engine. TjoekBezoer
Basic Calculator using HTML & Javascript. Patrick M. D Souza
What servers support ASP ? VyomWorld
What is ASP? VyomWorld

A D V E R T I S E M E N T




Google Groups Subscribe to SourceCodesWorld - Techies Talk
Email:

Free eBook - Interview Questions: Get over 1,000 Interview Questions in an eBook for free when you join JobsAssist. Just click on the button below to join JobsAssist and you will immediately receive the Free eBook with thousands of Interview Questions in an ebook when you join.

New! Click here to Add your Code!


ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page

 Advertisements  

Google Search

Google

Source Codes World.com is a part of Vyom Network.

Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Interview Questions | Jobs, Discussions | Placement Papers | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | Arabic, French, German | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Software Testing | Google Logo Maker | Freshers Jobs

Sitemap | Privacy Policy | Terms and Conditions | Important Websites
Copyright ©2003-2024 SourceCodesWorld.com, All Rights Reserved.
Page URL: http://www.sourcecodesworld.com/source/show.asp?ScriptID=187


Download Yahoo Messenger | Placement Papers | Free SMS | C Interview Questions | C++ Interview Questions | Quick2Host Review