Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

jQuery elastic plugin

I am using the jquery elastic plugin so that my textarea stretches to the size of data from the database.

It doesn't quite work as well as I wanted, the text area doesn't resize until a) something is typed in the text area or b) change the screen size in the test environment.

I am thinking may be something could be added to the javascript to kickstart the elastic functionality?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

jQuery elastic plugin

Hello Terry,

Yes, it may be, please look at the elastic plugin forums.

Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

jQuery elastic plugin

I have a workaround from the jquery forum. adding
$('textarea').trigger('change');
into the service success event fixes the issue.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

jQuery elastic plugin

Hi Terry,

Thank you for sharing this!

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

jQuery elastic plugin

Terry - thanks for posting this here. I had occasion to need to use the elastic plugin. Very surprised about how easily it installed (no syntax or other issues like with other plugins I've worked with)..... and attaching it to the textarea with Appery('text_areaname').elastic() was super easy - and your hint above - to add the trigger('change') saved me a lot of extra time.

Thanks for sharing - I literally was able to implement this plugin - in two apps that needed it - in under 15 minutes.... lifesaver.

Return to “Issues”