-
Notifications
You must be signed in to change notification settings - Fork 70
/
index.html
82 lines (68 loc) · 3.37 KB
/
index.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>jQuery Plugin tagedit - Tageditor</title>
<meta name="generator" content="Komodo IDE" />
<meta name="author" content="Oliver Albrecht" />
<meta name="description" content="Example Page for the jQuery Plugin tagedit. It offers an inputfield for adding, editing und deleting keywords, tags and other lists. There is also autocompletion" />
<meta name="robots" content="index, follow" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="de"/>
<meta name="language" content="de"/>
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="StyleSheet" href="css/ui-lightness/jquery-ui-1.9.2.custom.min.css" type="text/css" media="all"/>
<link rel="StyleSheet" href="css/jquery.tagedit.css" type="text/css" media="all"/>
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script type="text/javascript" src="js/jquery.autoGrowInput.js"></script>
<script type="text/javascript" src="js/jquery.tagedit.js"></script>
<script type="text/javascript">
$(function() {
// Fullexample
$( "#tagform-full" ).find('input.tag').tagedit({
autocompleteURL: 'server/autocomplete.php',
//checkToDeleteURL: 'server/checkToDelete.php'
});
// Edit only
$( "#tagform-editonly" ).find('input.tag').tagedit({
autocompleteURL: 'server/autocomplete.php',
allowEdit: false,
allowAdd: false
});
});
</script>
</head>
<body>
<h1>jQuery Plugin Tagedit</h1>
<p>
The jQuery Plugin <strong>tagedit</strong> by <a href="http://webwork-albrecht.de" title="visit my homepage">Oliver Albrecht</a> offers an easy way to add, edit and delete lists of keywords.<br/>
Keywords can be brought to the user with a autocomplete list.<br/><br/>
This plugin was inspired by the <a href="http://levycarneiro.com/projects/tag-it/example.html">jQuery Plugin Tag it!</a> created by <a href="http://levycarneiro.com/">Levy Carneiro Jr</a>.
</p>
<p>
You can watch a <a href="http://www.youtube.com/watch?v=TU_FdBlSPNc">screencast on youtube</a> and get the <a href="https://github.com/webworka/Tagedit">code on github</a>.<br/>
</p>
<h2>Dependencies</h2>
<ul>
<li><a href="http://jquery.com">jQuery 1.9.x</a></li>
<li><a href="http://jqueryui.com">jQuery UI 1.10.x</a></li>
<li><a href="http://jsbin.com/ahaxe">autoGrowInput</a> by <a href="http://james.padolsey.com">James Padolsey</a></li>
</ul>
<h2>Try out a demonstration</h2>
<h3>Full example</h3>
<form action="server/formtarget.php" method="post" id="tagform-full">
<p>
<input type="text" name="tag[19-a]" value="Merlin" class="tag"/>
<input type="text" name="tag[15-d]" value="Little Owl" class="tag"/>
<input type="submit" name="save" value="Save"/>
</p>
</form>
<h3>Add only - restricted on Autocomplete List</h3>
<form action="server/formtarget.php" method="post" id="tagform-editonly">
<p>
<input type="text" name="tag[3-a]" value="Hazel Grouse" class="tag" />
<input type="submit" name="save" value="Save"/>
</p>
</form>
</body>
</html>