+ Post New Thread
Results 1 to 7 of 7
Web Development Thread, textarea design question in Coding and Web Development; Im using a textbox to insert the text into an access database. The field in the database is set to ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199

    textarea design question

    Im using a textbox to insert the text into an access database. The field in the database is set to "memo", and as far as I can see there isnt the same way of limiting the length of a memo filed as there is a text field.

    So I am wanting to set a limit on the textbox. I cant seem to see a way of doing it without using a javascript addon.

    (NB: I can limit it for a <input type="text" ... > but cant seem to for a <textarea> )

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Nope, there is no native way of limiting a textarea's volume, only it's display size.

  3. Thanks to powdarrmonkey from:

    RabbieBurns (24th September 2008)

  4. #3

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    Thanks. Javascript it is then.

  5. #4

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,401
    Thank Post
    637
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319
    Quote Originally Posted by RabbieBurns View Post
    Thanks. Javascript it is then.
    What if the user disables javascript?

  6. #5

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    hmm interesting.

    What would you suggest?

    Its the teachers who've requested this feature anyway so if they're gonna go disableing jave (im not sure many of them would even know how ;p) then they are just not going to know how much they have to type.

    Ive actually made my text area the exact size of the allowed text to give them an idea of how much to type as well.

  7. #6

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,401
    Thank Post
    637
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319
    In conjunction with the existing, I would just use server-side validation to limit the length that is then sent to the database.

  8. #7

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Agreed. You still need to enforce it at the destination anyway, because you can't trust the browser to play nicely in any circumstances.

SHARE:
+ Post New Thread

Similar Threads

  1. Techsoft 2D Design
    By tosca925 in forum Educational Software
    Replies: 14
    Last Post: 10th September 2008, 11:47 AM
  2. Database Design
    By Hightower in forum General Chat
    Replies: 6
    Last Post: 16th June 2008, 04:22 PM
  3. Design - Best Webpage you have ever seen?
    By Zoom7000 in forum General Chat
    Replies: 26
    Last Post: 4th June 2008, 12:03 PM
  4. New 2D Design talking to the Old Mill Design
    By Sean in forum Educational Software
    Replies: 5
    Last Post: 15th January 2008, 09:26 AM
  5. Looking for Design software?
    By jumpinjamez in forum Educational Software
    Replies: 3
    Last Post: 10th May 2007, 02:24 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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