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, 11: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.
(NB: I can limit it for a <input type="text" ... > but cant seem to for a <textarea> )
24th September 2008, 12:06 PM #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, 12:07 PM #3
24th September 2008, 12:56 PM #4
Originally Posted by RabbieBurns
24th September 2008, 01:03 PM #5
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, 01: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, 01: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.
By tosca925 in forum Educational Software
Last Post: 10th September 2008, 12:47 PM
By Hightower in forum General Chat
Last Post: 16th June 2008, 05:22 PM
By Zoom7000 in forum General Chat
Last Post: 4th June 2008, 01:03 PM
By Sean in forum Educational Software
Last Post: 15th January 2008, 10:26 AM
By jumpinjamez in forum Educational Software
Last Post: 10th May 2007, 03:24 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)