Re: stop cursor typing past 500 characters

2009-09-11 Thread Agha Mehdi
Use maxlength=500 for the input field Agha On Sep 11, 2009, at 6:28 AM, Damo Drumm damien.dr...@quinn-group.com wrote: Hi I’ve a text box on my form, and in the database it is set to allow 5 00 characters to be entered, however i can write any amount of chara cters above 500, I do

Re: stop cursor typing past 500 characters

2009-09-11 Thread Stephane Vantroyen
Hi, to do you can use javascript, like here : http://javascript.internet.com/forms/limit-textarea.html Regards, Stephane Hi I’ve a text box on my form, and in the database it is set to allow 500 characters to be entered, however i can write any amount of characters above 500, I do

Re: stop cursor typing past 500 characters

2009-09-11 Thread Damo Drumm
Hi Agha Thanks for that, ive put in in the following place but its not doing anything, Im I putting it in the correct place? tr td valign=topEmail Text :/td tdtextarea name=body rows=10 cols=85 maxlength=500/textarea/td /tr Thanks

Re: stop cursor typing past 500 characters

2009-09-11 Thread Phillip Vector
Just curious. If you have a text box, have you considered changing the field type to text? On Fri, Sep 11, 2009 at 6:34 AM, Stephane Vantroyen s...@emakina.com wrote: Hi, to do you can use javascript, like here : http://javascript.internet.com/forms/limit-textarea.html Regards,

Re: stop cursor typing past 500 characters

2009-09-11 Thread Damo Drumm
Hi Philip If I change it to text on the SQL server, it only allows me to type 16 characters Just curious. If you have a text box, have you considered changing the field type to text? ~| Want to reach the ColdFusion

Re: stop cursor typing past 500 characters

2009-09-11 Thread Damo Drumm
Hi Philip If I change it to text on the SQL server, it only allows me to type 16 characters Just curious. If you have a text box, have you considered changing the field type to text? ~| Want to reach the ColdFusion

RE: stop cursor typing past 500 characters

2009-09-11 Thread Marius Milosav
AM To: cf-talk Subject: Re: stop cursor typing past 500 characters Hi Philip If I change it to text on the SQL server, it only allows me to type 16 characters Just curious. If you have a text box, have you considered changing the field type to text

Re: stop cursor typing past 500 characters

2009-09-11 Thread Dave Watts
If I change it to text on the SQL server, it only allows me to type 16 characters That's incorrect. It'll let you type many more characters than that! The size of the field is 16 bytes, because it's a pointer to a stored value outside the field. The sizes for text, ntext and image are listed

Re: stop cursor typing past 500 characters

2009-09-11 Thread Damo Drumm
Hi Marcus I notice now its actually a textarea name rather than a text box if that makes a difference heres my line of code: td valign=topEmail Text :/td tdtextarea name=body rows=10 maxlength=10 cols=85/textarea/td only problem is maxlength doesnt seem to be doing anything, am i putting it in

Re: stop cursor typing past 500 characters

2009-09-11 Thread Dave Watts
I notice now its actually a textarea name rather than a text box if that makes a difference heres my line of code: td valign=topEmail Text :/td tdtextarea name=body rows=10 maxlength=10 cols=85/textarea/td only problem is maxlength doesnt seem to be doing anything, am i putting it in

Re: stop cursor typing past 500 characters

2009-09-11 Thread Claude Schneegans
ive put in in the following place but its not doing anything To my knowledge, the TEXTAREA tag takes no MAXLENGTH attribute, on INPUT tag has one. ~| Want to reach the ColdFusion community with something they want? Let them

Re: stop cursor typing past 500 characters

2009-09-11 Thread Roger Austin
Damo Drumm damien.dr...@quinn-group.com wrote: Hi Marcus I notice now its actually a textarea name rather than a text box if that makes a difference heres my line of code: td valign=topEmail Text :/td tdtextarea name=body rows=10 maxlength=10 cols=85/textarea/td only problem