Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > Re: Limit texta...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 35504 of 37133
Post > Topic >>

Re: Limit textarea alert message

by Lasse Reichstein Nielsen <lrn@[EMAIL PROTECTED] > May 7, 2008 at 07:12 AM

"teser3@[EMAIL PROTECTED]
" <teser3@[EMAIL PROTECTED]
> writes:

> I have the below that limits the textarea input to 500 characters but
> cant get the alert message to work.  It doesnt show anything.  

Do you get any error messages from the browser?

Does the line previous to the alert work? I.e., is the textarea
contents restricted to 500 chars?

>                                 alert("You are trying to enter more
> than 500 characters");

The linebreak is not allowed in a string. If this is your actual code,
that could be the problem.

/L
-- 
Lasse Reichstein Nielsen  -  lrn@[EMAIL PROTECTED]
 DHTML Death Colors:
<URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
  'Faith without judgement merely degrades the spirit divine.'
 




 4 Posts in Topic:
Limit textarea alert message
"teser3@[EMAIL PROTE  2008-05-06 18:21:09 
Re: Limit textarea alert message
Lasse Reichstein Nielsen   2008-05-07 07:12:36 
Re: Limit textarea alert message
"Evertjan." <  2008-05-07 07:54:07 
Re: Limit textarea alert message
"Evertjan." <  2008-05-07 08:17:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 2:12:12 CDT 2008.