[導(dǎo)入]AJAX Auto-complete component

          Posted on 2006-03-16 11:19 BlueO2 閱讀(907) 評(píng)論(0)  編輯  收藏 所屬分類: AJAX
          本来还要自己写一个auto-complete,但是大多数此类功能并没有提供类似google suggest提供的键盘选择功能,auto-complete便失去了一大半的交互改善。于是前两天还特意扒了google suggest来看ac.js 发现google定是用了混淆器。虽然代码没有压缩,但是代码的回车空行和函数名字全部混乱。正在要自己写的时候发现了此中国自产的AutoAssist。Very Cool!


          AutoAssist is an auto completion web widget that written in pure JavaScript. It can help enhance the accessibility of existing website, let the users to work effective and feel comfortable. AutoAssist Javascript only and is built upon prototype and rico. Its main features are :

          * improve the User Experience
          * Don't require an Ajax experience
          * pretty managed JavaScript, easy to understand and customize
          * works well on Mozilla/FireFox, IE and Opera
          * have a nice solution for fast user typing, reduce a lot of corresponding server loading (20% - 80% *)

          autoassist.png

          The code for the screenshot is very simple :

          var foo = function() {
          var tt = new AutoAssist("t", {setRequestOptions: function() {
          var pars = "name=" + this.txtBox.value;
          return { url: "/country.php", parameters: pars };
          }});
          }
          Event.observe(window, "load", foo);

          You can find a ten minutes tutorial for AutoAssist explaining in details how to use this script to create an auto-complete list based on country data.

          By the way,script.aculo.us also has it's impelmention:http://demo.script.aculo.us/ajax/autocompleter


          文章來源:http://blueoxygen.dflying.net/3/archive/53_ajax_auto-complete_component.html

          posts - 29, comments - 3, trackbacks - 0, articles - 0

          Copyright © BlueO2

          主站蜘蛛池模板: 惠来县| 江油市| 舒兰市| 高邑县| 城固县| 应城市| 光山县| 黎平县| 瓦房店市| 潜江市| 洱源县| 六枝特区| 中超| 古浪县| 阜城县| 岢岚县| 景谷| 吐鲁番市| 武安市| 根河市| 石嘴山市| 札达县| 贵州省| 开平市| 灯塔市| 犍为县| 广宁县| 鄂托克前旗| 揭东县| 汕头市| 深水埗区| 娄烦县| 三明市| 高尔夫| 武夷山市| 库尔勒市| 洪湖市| 刚察县| 福鼎市| 咸宁市| 平舆县|