summaryrefslogtreecommitdiff
path: root/media/javascript/components/resizegrip/examples/example2.html
blob: 7cd16313f554552e83bf72eaea0e265ad0678b0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>BlueShoes ResizeGrip Example 2</title>

<script type="text/javascript" src="/_bsJavascript/core/lang/Bs_Misc.lib.js"></script>
<script type="text/javascript" src="/_bsJavascript/components/resizegrip/Bs_ResizeGrip.class.js"></script>
<script>
function init() {
	rg = new Bs_ResizeGrip('myTextarea');
	rg.maxWidth  = 400;
	rg.maxHeight = 200;
	rg.draw();
}
</script>
</head>

<body onload="init();" bgcolor="white">

<h1>BlueShoes ResizeGrip Example 2</h1>

This is an example of the <a href="http://www.blueshoes.org/en/javascript/resizegrip/">BlueShoes Resize Grip</a>.<br><br>

<form>
<table border="1">
	<tr>
		<td valign="top">Text</td>
		<td valign="top"><input type="text"></td>
	</tr>
	<tr>
		<td valign="top">Textarea</td>
		<td valign="top">
<textarea name="myTextarea" id="myTextarea" cols="20" rows="3">
this is some text and this area is definitely too small to type large text.
this is some text and this area is definitely too small to type large text.
this is some text and this area is definitely too small to type large text.
this is some text and this area is definitely too small to type large text.
this is some text and this area is definitely too small to type large text.
this is some text and this area is definitely too small to type large text.
</textarea>
		</td>
	</tr>
	<tr>
		<td valign="top">Text</td>
		<td valign="top"><input type="text"></td>
	</tr>
</table>
</form>


</body>
</html>