|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 2 | +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> |
| 3 | +<head> |
| 4 | + <title>jQuery Plugin tagedit - Tageditor</title> |
| 5 | + |
| 6 | + <meta name="generator" content="Komodo IDE" /> |
| 7 | + <meta name="author" content="Oliver Albrecht" /> |
| 8 | + <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" /> |
| 9 | + <meta name="robots" content="index, follow" /> |
| 10 | + <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
| 11 | + |
| 12 | + <meta http-equiv="content-language" content="de"/> |
| 13 | + <meta name="language" content="de"/> |
| 14 | + |
| 15 | + <link rel="shortcut icon" href="favicon.ico"/> |
| 16 | + <link rel="StyleSheet" href="css/ui-lightness/jquery-ui-1.8.6.custom.css" type="text/css" media="all"/> |
| 17 | + <link rel="StyleSheet" href="css/jquery.tagedit-1.0.0.css" type="text/css" media="all"/> |
| 18 | + |
| 19 | + <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> |
| 20 | + <script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script> |
| 21 | + <script type="text/javascript" src="js/jquery.autoGrowInput.js"></script> |
| 22 | + <script type="text/javascript" src="js/jquery.tagedit-1.0.0.js"></script> |
| 23 | + |
| 24 | + <script type="text/javascript"> |
| 25 | + $(function() { |
| 26 | + |
| 27 | + // Fullexample |
| 28 | + $( "#tagform-full" ).find('input.tag').tagedit({ |
| 29 | + autocompleteURL: 'server/autocomplete.php', |
| 30 | + }); |
| 31 | + |
| 32 | + // Edit only |
| 33 | + $( "#tagform-editonly" ).find('input.tag').tagedit({ |
| 34 | + autocompleteURL: 'server/autocomplete.php', |
| 35 | + allowEdit: false, |
| 36 | + allowAdd: false, |
| 37 | + }); |
| 38 | + }); |
| 39 | + </script> |
| 40 | + |
| 41 | + </head> |
| 42 | +<body> |
| 43 | + <h1>jQuery Plugin Tagedit</h1> |
| 44 | + <p> |
| 45 | + 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/> |
| 46 | + Keywords can be brought to the user with a autocomplete list.<br/><br/> |
| 47 | + 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>. |
| 48 | + </p> |
| 49 | + <h2>Dependencies</h2> |
| 50 | + <ul> |
| 51 | + <li><a href="http://jquery.com">jQuery 1.4.x</a></li> |
| 52 | + <li><a href="http://jqueryui.com">jQuery UI 1.8.x</a></li> |
| 53 | + <li><a href="http://jsbin.com/ahaxe">autoGrowInput</a> by <a href="http://james.padolsey.com">James Padolsey</a></li> |
| 54 | + </ul> |
| 55 | + |
| 56 | + <h2>Try out a demonstration</h2> |
| 57 | + |
| 58 | + <h3>Full example</h3> |
| 59 | + <form action="server/formtarget.php" method="post" id="tagform-full" target="_blank"> |
| 60 | + <p> |
| 61 | + <input type="text" name="tag[19]" value="Merlin" class="tag"/> |
| 62 | + <input type="text" name="tag[15-d]" value="Little Owl" class="tag"/> |
| 63 | + |
| 64 | + <input type="submit" name="save" value="Save"/> |
| 65 | + </p> |
| 66 | + </form> |
| 67 | + |
| 68 | + <h3>Add only - restricted on Autocomplete List</h3> |
| 69 | + <form action="server/formtarget.php" method="post" id="tagform-editonly" target="_blank"> |
| 70 | + <p> |
| 71 | + <input type="text" name="tag[3]" value="Hazel Grouse" class="tag" /> |
| 72 | + |
| 73 | + <input type="submit" name="save" value="Save"/> |
| 74 | + </p> |
| 75 | + </form> |
| 76 | + |
| 77 | + <p class="footer"> |
| 78 | + <a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a>.<br/> |
| 79 | + © 2010 Oliver Albrecht - <a href="http://webwork-albrecht.de">webwork-albrecht.de</a> |
| 80 | + </p> |
| 81 | +</body> |
| 82 | +</html> |
0 commit comments