Results 1 to 5 of 5

Thread: How To Get Elastic.js For Text Areas Working in Vantage?

  1. #1
    Thread Starter
    Senior Member edwin's Avatar
    Join Date
    Nov 2010
    Location
    Netherlands
    Posts
    117
    Thanks
    3
    Thanked 22 Times in 17 Posts

    How To Get Elastic.js For Text Areas Working in Vantage?

    I've got this loading between the head tags:

    Code:
    	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.elastic.source.js"></script>
    
    		<script type="text/javascript">
    			// <![CDATA[
    			jQuery.noConflict();
    			jQuery(document).ready(function(){			
    				jQuery('textarea').elastic();
    				jQuery('textarea').trigger('update');
    			});	
    			// ]]>
    		</script>
    But it does not catch on, the text area fields will not grow with the text, it's not elastic.
    However, when I save the page as regular HTML and then check the functionality it works fine.

    Because the custom fields are generated dynamically, and if you view source, right click and view source, then you'll see there are no visible fields.
    Therefor the elastic.js does not work.

    How can the jQuery above be adjusted so it works on the dynamic generated content as well?

  2. #2
    tcarter's Avatar
    Join Date
    Jun 2011
    Location
    United States
    Posts
    424
    Thanks
    15
    Thanked 91 Times in 77 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Senior Member edwin's Avatar
    Join Date
    Nov 2010
    Location
    Netherlands
    Posts
    117
    Thanks
    3
    Thanked 22 Times in 17 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    tcarter's Avatar
    Join Date
    Jun 2011
    Location
    United States
    Posts
    424
    Thanks
    15
    Thanked 91 Times in 77 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    Senior Member edwin's Avatar
    Join Date
    Nov 2010
    Location
    Netherlands
    Posts
    117
    Thanks
    3
    Thanked 22 Times in 17 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: October 27th, 2012, 10:14 PM
  2. Multiple sites ie for different areas
    By unibubble in forum ClassiPress General Discussion
    Replies: 1
    Last Post: July 16th, 2012, 10:04 AM
  3. Using Subdomains for different geographic areas
    By craxx in forum Help Using ClassiPress
    Replies: 4
    Last Post: May 18th, 2012, 12:19 PM
  4. Are there two areas where a user can log in WordPress?
    By Xarzu in forum ClassiPress General Discussion
    Replies: 0
    Last Post: February 27th, 2010, 06:45 PM