Login   Register  
Icontem

File: max_dimensions.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Arturs Sosins  >  Texpand  >  max_dimensions.html  >  Download  
File: max_dimensions.html
Role: Example script
Content type: text/plain
Description: Example with dimensional restrictions
Class: Texpand
Expand textarea inputs as the user types the text
Author: By
Last change:
Date: 2011-11-04 13:27
Size: 986 bytes
 

Contents

Class file image Download
<!--
/*************************************************************
 * This script is developed by Arturs Sosins aka ar2rsawseen, http://webcodingeasy.com
 * Feel free to distribute and modify code, but keep reference to its creator
 *
 * Texpand class provides a way to expand textareas to fit it's contents.
 * It is possible to provide minimal or maximal values to restrict possible
 * textarea dimensions
 *
 * For more information, examples and online documentation visit: 
 * http://webcodingeasy.com/JS-classes/Expand-textareas-to-fit-content
**************************************************************/
-->
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>This textarea will expand, when you'll write something in it</p>
<textarea id='expand'></textarea>
<script type="text/javascript" src="./texpand.packed.js" ></script>
<script type="text/javascript">
var te = new texpand("expand",{
	maxWidth: 400,
	maxHeight: 400
});
</script>
</body>
</html>