Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    406
    Thanks
    0
    Thanked 0 Times in 0 Posts

    maxlength in a text box

    I am writing a javascript where a user can enter as many as they want in a text area. Then when you click on a sumbit button, the text in the text area will be pasted into a text box in another page. When I am doing this, do I have to consider the number of characters is being passed from the text area to text box? meaning the maximum number of characters in the text box?

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Don't crosspost. It just wastes everybody's time. Your other thread (in the Post a Javascript forum) has been deleted.

    Common mistake, so don't worry, just don't do it again.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    406
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I didnt notice initially, both looked like same with the word javascript. After that only I noticed and I tried to delete it. But couldnt. Sorry about that.

  • #4
    New Coder
    Join Date
    Jan 2003
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi chelvis, i think u don't have to specify the maximum length of the tetxbox if u paste the text from textarea to textbox. But if u have to paste the text from the textbox back to the textarea, then u have to set the limit for the textbox.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not sure if this is what you're looking for but if you want to limit the number of characters entered into a textarea, this works cross-browser...:

    http://www.solidscripts.com/displayscript.asp?sid=1
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •