[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-13 Thread Rick Faircloth
Thanks, Charlie.got this one! Rick From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Charlie Griefer Sent: Friday, February 13, 2009 10:52 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is there a way to make a textarea that auto expands as needed

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-13 Thread Charlie Griefer
Message- > > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Ricardo Tomasi > > Sent: Friday, February 13, 2009 12:02 AM > > To: jQuery (English) > > Subject: [jQuery] Re: Is there a way to make a textarea that auto expands > a

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-13 Thread Rick Faircloth
jquery-en@googlegroups.com Subject: [jQuery] Re: Is there a way to make a textarea that auto expands as needed? see my reply 2 messages ago On Fri, Feb 13, 2009 at 1:34 AM, Rick Faircloth wrote: Thanks for the tip, Ricardo! Do you, by any chance, know the HTML involved in using Brandon's plug

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-13 Thread Charlie Griefer
> Sent: Friday, February 13, 2009 12:02 AM > > To: jQuery (English) > > Subject: [jQuery] Re: Is there a way to make a textarea that auto expands > as needed? > > > > > > Hi Rick, no problem, just checking :] > > > > I posted a mock-up of what could be

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-13 Thread Rick Faircloth
ode. Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Ricardo Tomasi > Sent: Friday, February 13, 2009 12:02 AM > To: jQuery (English) > Subject: [jQuery] Re: Is there a way to make a textarea that auto expands as &

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Ricardo Tomasi
rdo , too. > > Thanks, Karl > > Rick > > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Karl Swedberg > Sent: Thursday, February 12, 2009 1:05 PM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: Is there a way to make a

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Charlie Griefer
#x27;ll check out Brandon's solution, too. > > > > Thanks, Karl > > > > Rick > > > > *From:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On > Behalf Of *Karl Swedberg > *Sent:* Thursday, February 12, 2009 1:05 PM > *To:* jquery-en

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Rick Faircloth
groups.com] On Behalf Of Rick Faircloth Sent: Thursday, February 12, 2009 5:09 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is there a way to make a textarea that auto expands as needed? I didn't get your message, Ricardo.sorry! Could you resend? And I'll check ou

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Charlie Griefer
:* jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] *On > Behalf Of *Karl Swedberg > *Sent:* Thursday, February 12, 2009 1:05 PM > *To:* jquery-en@googlegroups.com > *Subject:* [jQuery] Re: Is there a way to make a textarea that auto > expands as needed? > > &

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Rick Faircloth
l Swedberg Sent: Thursday, February 12, 2009 1:05 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is there a way to make a textarea that auto expands as needed? If Ricardo's solution doesn't work for you, you could try Brandon Aaron's plugin. http://github.com/brandonaaron

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Rick Faircloth
M To: jquery-en@googlegroups.com Subject: [jQuery] Re: Is there a way to make a textarea that auto expands as needed? If Ricardo's solution doesn't work for you, you could try Brandon Aaron's plugin. http://github.com/brandonaaron/jquery-expandable/tree/master --Karl

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Karl Swedberg
If Ricardo's solution doesn't work for you, you could try Brandon Aaron's plugin. http://github.com/brandonaaron/jquery-expandable/tree/master --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 12, 2009, at 8:14 AM, Ricardo Tomasi wrote: Did you skip my

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Ricardo Tomasi
Did you skip my previous message? On Feb 12, 11:02 am, "Rick Faircloth" wrote: > Ideas, anyone? > > > -Original Message- > > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > > Behalf Of Rick Faircloth > > Sent: Wednesday, February 11, 2009 6:56 PM > > To: jquery

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Rick Faircloth
Ideas, anyone? > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On > Behalf Of Rick Faircloth > Sent: Wednesday, February 11, 2009 6:56 PM > To: jquery-en@googlegroups.com > Subject: [jQuery] Is there a way to make a textarea that auto expands a

[jQuery] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-11 Thread Ricardo Tomasi
My guess would be to count the character number on keypress and increase height accordingly. var $text = $('textarea'), oHeight = $text.height(), cols = +$text.attr('cols'), lineHeight = parseInt($text.css('line-height')); $text.bind('keypress', function(){ ln = $text.val().length, m = ln