Permalink
Browse files

version 2.7.5

  • Loading branch information...
1 parent 268d69a commit b5dd0df824d991c52c29aa18233041fc6533440e unknown committed Nov 11, 2010
Showing with 409 additions and 330 deletions.
  1. +46 −39 README
  2. +1 −1 data.txt
  3. +38 −71 index.html
  4. +246 −209 jquery.fcbkcomplete.js
  5. +74 −1 jquery.fcbkcomplete.min.js
  6. +3 −9 style.css
  7. +1 −0 submit.php
View
85 README
@@ -1,65 +1,72 @@
/*
- FCBKcomplete 2.7.4
+ FCBKcomplete 2.7.5
- Jquery version required: 1.2.x, 1.3.x, 1.4.x
- - Special thanks for CSS to Guillermo Rauch <http://devthought.com/>
-
+
Changelog:
- - 2.00 new version of fcbkcomplete
+ - 2.00 new version of fcbkcomplete
- 2.01 fixed bugs & added features
- fixed filter bug for preadded items
- focus on the input after selecting tag
- the element removed pressing backspace when the element is selected
- input tag in the control has a border in IE7
- added iterate over each match and apply the plugin separately
- set focus on the input after selecting tag
+ fixed filter bug for preadded items
+ focus on the input after selecting tag
+ the element removed pressing backspace when the element is selected
+ input tag in the control has a border in IE7
+ added iterate over each match and apply the plugin separately
+ set focus on the input after selecting tag
- 2.02 fixed fist element selected bug
- fixed defaultfilter error bug
+ fixed defaultfilter error bug
- - 2.5 removed selected="selected" attribute due ie bug
- element search algorithm changed
- better performance fix added
- fixed many small bugs
- onselect event added
- onremove event added
+ - 2.5 removed selected="selected" attribute due ie bug
+ element search algorithm changed
+ better performance fix added
+ fixed many small bugs
+ onselect event added
+ onremove event added
- - 2.6 ie6/7 support fix added
- added new public method addItem due request
- added new options "firstselected" that you can set true/false to select first element on dropdown list
- autoexpand input element added
- removeItem bug fixed
- and many more bug fixed
- fixed public method to use it $("elem").trigger("addItem",[{"title": "test", "value": "test"}]);
-
-- 2.7 jquery 1.4 compability
- item lock possability added by adding locked class to preadded option <option value="value" class="selected locked">text</option>
- maximum item that can be added
+ - 2.6 ie6/7 support fix added
+ added new public method addItem due request
+ added new options "firstselected" that you can set true/false to select first element on dropdown list
+ autoexpand input element added
+ removeItem bug fixed
+ and many more bug fixed
+ fixed public method to use it $("elem").trigger("addItem",[{"title": "test", "value": "test"}]);
+
+- 2.7 jquery 1.4 compability
+ item lock possability added by adding locked class to preadded option <option value="value" class="selected locked">text</option>
+ maximum item that can be added
- 2.7.1 bug fixed
- ajax delay added thanks to http://github.com/dolorian
+ ajax delay added thanks to http://github.com/dolorian
- 2.7.2 some minor bug fixed
- minified version recompacted due some problems
+ minified version recompacted due some problems
+
+- 2.7.3 event call fixed thanks to William Parry <williamparry!at!gmail.com>
- 2.7.4 standart event change call added on addItem, removeItem
- preSet also check if item have "selected" attribute
- addItem minor fix
+ preSet also check if item have "selected" attribute
+ addItem minor fix
+
+- 2.7.5 event call removeItem fixed
+ new public method destroy added needed to remove fcbkcomplete element from dome
+
*/
/* Coded by: emposha <admin@emposha.com> */
/* Copyright: Emposha.com <http://www.emposha.com/> - Distributed under MIT - Keep this message! */
/*
* json_url - url to fetch json object
- * cache - use cache
+ * cache - use cache
* height - maximum number of element shown before scroll will apear
* newel - show typed text like a element
- * firstselected - automaticly select first element from dropdown
+ * addontab - add first show element on tab or enter hit
+ * firstselected - automaticly select first element from dropdown
* filter_case - case sensitive filter
* filter_selected - filter selected items from list
* complete_text - text for complete page
- * maxshownitems - maximum numbers that will be shown at dropdown list (less better performance)
- * onselect - fire event on item select
- * onremove - fire event on item remove
- * maxitimes - maximum items that can be added
- * delay - delay between ajax request (bigger delay, lower server time request)
+ * maxshownitems - maximum numbers that will be shown at dropdown list (less better performance)
+ * onselect - fire event on item select
+ * onremove - fire event on item remove
+ * maxitimes - maximum items that can be added
+ * delay - delay between ajax request (bigger delay, lower server time request)
+ * attachto - after this element fcbkcomplete insert own elements
*/
View
@@ -1 +1 @@
-[{"caption":"Dmitry Mamin-Sibiryak","value":4123},{"caption":"Semen Nadson","value":231},{"caption":"Gennadiy Aygi","value":531},{"caption":"Nikolay Nosov", "value":132},{"caption":"Vladimir Obruchev", "value":653},{"caption":"Natalya Baranskaya", "value":8674},{"caption":"Konstantin Batyushkov", "value":655},{"caption":"Aleksandr Bek", "value":247},{"caption":"Vladislav Ozerov", "value":864},{"caption":"Kir Bulychev", "value":789},{"caption":"David Burlyuk", "value":453}]
+[{"key": "movies", "value": "4123"}, {"key": "ski", "value": "231"}, {"key": "snowbord", "value": "531"}, {"key": "computer", "value": "132"}]
View
@@ -1,72 +1,39 @@
-&#65279;<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<!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="en" lang="en">
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
- <title>FCBKcomplete Demo</title>
-
- <link rel="stylesheet" href="style.css" type="text/css" media="screen" title="Test Stylesheet" charset="utf-8" />
- <script src="jquery.js" type="text/javascript" charset="utf-8"></script>
- <script src="jquery.fcbkcomplete.js" type="text/javascript" charset="utf-8"></script>
- </head>
-
- <body id="test">
- <h1>FCBKcomplete Demo</h1>
- <div id="text"></div>
- <form action="submit.php" method="POST" accept-charset="utf-8">
- <label>First Control:</label>
- <select id="select1" name="select1">
- <option value="test1">test1</option>
- <option value="test3">test2</option>
- <option value="test4">test3</option>
- </select>
- <br /><br /><br /><br />
- <label>Second Control:</label>
- <select id="select2" name="select2">
- <option value="testme1" class="selected locked">testme1</option>
- <option value="testme2" class="selected">testme2</option>
- <option value="testme3" class="selected">testme3</option>
- </select>
- <br /><br />
-
- <select id="select3" name="select3[]" multiple="multiple">
- <option value="test1" selected="selected" rel="selected">test1</option>
- <option value="test3">test2</option>
- <option value="test3">test3</option>
- </select>
-
- <br /><br />
- <input type="submit" value="Send">
- </form>
- <script language="JavaScript">
- $(document).ready(function()
- {
- $("#select1").fcbkcomplete();
-
- $("#select2").fcbkcomplete({
- json_url: "data.txt",
- cache: true,
- filter_case: true,
- filter_hide: true,
- firstselected: true,
- //onremove: "testme",
- //onselect: "testme",
- filter_selected: true,
- maxitems: 5,
- newel: true
- });
- });
-
- function testme(item)
- { if ($.browser.mozilla)
- {
- console.log(item);
- }
- else
- {
- alert(item);
- }
- }
- </script>
- </body>
-</html>
+ <head>
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+ <title>FCBKcomplete Demo</title>
+ <link rel="stylesheet" href="style.css" type="text/css" media="screen" charset="utf-8" />
+ <script src="jquery.js" type="text/javascript" charset="utf-8">
+ </script>
+ <script src="jquery.fcbkcomplete.min.js" type="text/javascript" charset="utf-8">
+ </script>
+ </head>
+ <body id="test">
+ <h1>FCBKcomplete Demo</h1>
+ <div id="text">
+ </div>
+ <form action="submit.php" method="POST" accept-charset="utf-8">
+ <select id="select3" name="select3">
+ <option value="test1">sleep</option>
+ <option value="test3">sport</option>
+ <option value="test3">freestyle</option>
+ </select>
+ <br/>
+ <br/>
+ <input type="submit" value="Send">
+ </form>
+ <script type="text/javascript">
+ $(document).ready(function(){
+ $("#select3").fcbkcomplete({
+ json_url: "data.txt",
+ addontab: true,
+ cache: true,
+ height: 2
+ });
+ });
+ </script>
+
+ <div id="testme"></div>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit b5dd0df

Please sign in to comment.