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

2009-02-13 Thread Rick Faircloth
Thanks for the tip, Ricardo! Do you, by any chance, know the HTML involved in using Brandon's plugin? I couldn't find any usage examples to see how the syntax should be handled. Or the JS to be written in the page? All I could get from the github site was the plugin code. Rick

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

2009-02-13 Thread Charlie Griefer
see my reply 2 messages ago On Fri, Feb 13, 2009 at 1:34 AM, Rick Faircloth r...@whitestonemedia.comwrote: Thanks for the tip, Ricardo! Do you, by any chance, know the HTML involved in using Brandon's plugin? I couldn't find any usage examples to see how the syntax should be handled. Or

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

2009-02-13 Thread Rick Faircloth
Hi, Charlie. For some strange reason, your reply didn't show up here, as with Ricardo's. Can you resend? Thanks, Rick From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Charlie Griefer Sent: Friday, February 13, 2009 4:36 AM To:

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

2009-02-13 Thread Charlie Griefer
http://groups.google.com/group/jquery-en/browse_thread/thread/a491baf8ac007588/8dd6c2498b572e5b#8dd6c2498b572e5b On Fri, Feb 13, 2009 at 7:30 AM, Rick Faircloth r...@whitestonemedia.comwrote: Hi, Charlie… For some strange reason, your reply didn't show up here, as with Ricardo's. Can

[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

[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 as

[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 r...@whitestonemedia.com 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

[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

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

2009-02-12 Thread Rick Faircloth
I didn't get your message, Ricardo.sorry! Could you resend? And I'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] Re: Is there a way to make a textarea that auto expands as needed?

2009-02-12 Thread Rick Faircloth
Brandon's download link doesn't work. I just copied the text of the file, but now I've got to take the single line and format it. Hey, Brandon! Check your download link! Rick From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Karl Swedberg Sent:

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

2009-02-12 Thread Charlie Griefer
just worked fine for me in chrome. also, it's not brandon's link. the site that's hosting the code is github. in either case... it works fine. feel free to grab it from http://charlie.griefer.com/brandonaaron-jquery-expandable.zip On Thu, Feb 12, 2009 at 3:42 PM, Rick Faircloth

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

2009-02-12 Thread Rick Faircloth
Hey, Karl! Would you happen to have a syntax example of Brandon's plugin? There are no example uses that I saw on the jQuery plugin site or Brandon's github location. Or anyone else? Brandon? Thanks, Rick From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]

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

2009-02-12 Thread Charlie Griefer
script src=/path/to/jquery-1.2.6.min.js/script script src=/path/to/jquery.expandable.js/script script language=JavaScript type=text/javascript $(function() { $('#myTextarea').expandable(); }); /script textarea id=myTextarea/textarea On Thu, Feb 12, 2009 at 4:03 PM, Rick Faircloth

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

2009-02-12 Thread Ricardo Tomasi
Hi Rick, no problem, just checking :] I posted a mock-up of what could be done. Unfortunately it is not reliable, as word-wrapping ruins the column/character count. The 'expandable' plugin seems to have found a nice way to get around that. http://jsbin.com/ozocu/edit cheers, - ricardo , too.

[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. textarea ... cols=40/textarea var $text = $('textarea'), oHeight = $text.height(), cols = +$text.attr('cols'), lineHeight = parseInt($text.css('line-height')); $text.bind('keypress', function(){