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 ...
-
24th September 2008, 10:21 AM #1 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> )
-
-
IDG Tech News
-
24th September 2008, 11:06 AM #2 Nope, there is no native way of limiting a textarea's volume, only it's display size.
-
Thanks to powdarrmonkey from:
RabbieBurns (24th September 2008)
-
24th September 2008, 11:07 AM #3 Thanks. Javascript it is then.
-
-
24th September 2008, 11:56 AM #4 
Originally Posted by
RabbieBurns
Thanks. Javascript it is then.
What if the user disables javascript?
-
-
24th September 2008, 12:03 PM #5 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.
-
-
24th September 2008, 12:08 PM #6 In conjunction with the existing, I would just use server-side validation to limit the length that is then sent to the database.
-
-
24th September 2008, 12:51 PM #7 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:
Similar Threads
-
By tosca925 in forum Educational Software
Replies: 14
Last Post: 10th September 2008, 11:47 AM
-
By Hightower in forum General Chat
Replies: 6
Last Post: 16th June 2008, 04:22 PM
-
By Zoom7000 in forum General Chat
Replies: 26
Last Post: 4th June 2008, 12:03 PM
-
By Sean in forum Educational Software
Replies: 5
Last Post: 15th January 2008, 10:26 AM
-
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
-
Forum Rules