Forums
This topic is locked
text box size
26 Apr 2007 12:36:05 Oli Leach posted:
Hi,I am using dreamweaver 8 and would like to know if there is a way to allow a text box to dynamic size itself depending on how much text there is to display.
I have a site that people can type comments into a text box and whatever people have typed gets display in text boxes below, a basic repeat region from a sql table. To distinguish the different blogs I have used a text box to display what people have written - I have set this to 4 lines however if someone types 10 lines, I would like to box to extend show all 10 lines.
Thanks for any help!
Replies
Replied 27 Apr 2007 05:05:58
27 Apr 2007 05:05:58 Javier Castro replied:
Why Are you using text boxes to edisplay entries? why not just use a div or a paragraph? Where you can enter as large text as you want and it will adjust as required, also you can style it to suit your needs?
Just asking <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Just asking <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 27 Apr 2007 12:34:47
27 Apr 2007 12:34:47 Oli Leach replied:
you can ask! as long as you can help!?
The reason is it looks better! and its a bit easier to read too.... but only if someone enters less than 4 lines of text! I have displayed the text without using text boxes but it looks a bit naff so was wandering whether a text box could resize itself depending what the people has typed....
any please help me
The reason is it looks better! and its a bit easier to read too.... but only if someone enters less than 4 lines of text! I have displayed the text without using text boxes but it looks a bit naff so was wandering whether a text box could resize itself depending what the people has typed....
any please help me
Replied 27 Apr 2007 14:04:21
27 Apr 2007 14:04:21 Javier Castro replied:
Check this link out:
tuckey.org/textareasizer/ hope it helps
<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
tuckey.org/textareasizer/ hope it helps
<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 29 Apr 2007 13:38:22
29 Apr 2007 13:38:22 Oli Leach replied:
nice one- looks like what i need but not sure how it'll interact with dreamweavers server behaviours.. i'll give it a go though as it does exactly what i need - thanks
Replied 29 Apr 2007 18:10:22
29 Apr 2007 18:10:22 Oli Leach replied:
after taking your advice I've ended up with a cool solution
Used your dynamic text box where people type in their 'blog' and then displayed the text they typed just in a table. I pre formatted the text displayed and then set the wrap in the dynamic text box to hard and 65 characters... job done looks great!
Thanks for your help!
Used your dynamic text box where people type in their 'blog' and then displayed the text they typed just in a table. I pre formatted the text displayed and then set the wrap in the dynamic text box to hard and 65 characters... job done looks great!
Thanks for your help!