aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
Commit message (Expand)AuthorAgeFilesLines
* Adjusted to new JARsJeremias Maerki2002-11-221-2/+5
* Adjust for new Avalon Framework JARJeremias Maerki2002-08-071-1/+1
* makes antRun exec in build.sh and adds overview for javadoc generationKeiron Liddle2002-08-061-1/+5
* Removed traces of buffermanagerJoerg Pietschmann2002-07-141-0/+19
* proper use of font encodings for native fontsKeiron Liddle2002-06-281-1/+1
* replaced logkit logger with the logger interface in avalon frameworkKeiron Liddle2002-04-111-1/+1
* updated build scripts for new jars and removed old targetsKeiron Liddle2001-10-301-2/+3
* adjusted classpath libs for loggingKeiron Liddle2001-08-201-1/+3
* added logkit (version 1.0b4) for loggingKeiron Liddle2001-08-141-1/+1
* now uses only the local set class pathKeiron Liddle2001-07-111-9/+2
* FOP now uses Batik to render svgKeiron Liddle2001-05-171-1/+1
* K. Liddle: testing supportarved2001-05-101-2/+8
* Updated build. Added manifest to jar to make it a runnable jar.Kelly Campbell2001-03-051-3/+3
* Updated build to include neccessary jar filesKelly Campbell2001-03-041-1/+1
* Packaged build tasks into lib/buildtools.jarKelly Campbell2001-01-161-1/+1
* Testing. Please ignore.Steve Coffman2001-01-101-1/+1
* Not really a change. Just to make me owner of the RCS files so I can chmodSteve Coffman2000-07-241-1/+1
* remove xml.jar from localclasspathfotis2000-07-211-1/+1
* I'm adding it back with execute permissions turned on.Steve Coffman2000-07-141-0/+25
* I'm deliberately removing build.sh temporarily. Trust me.Steve Coffman2000-07-141-25/+0
* added w3c.jar lib to class pathKeiron Liddle2000-07-101-1/+1
* Switching from make to Antfotis2000-03-061-0/+25
span> $(function() { function log(message) { $("<div/>").text(message).prependTo("#log"); $("#log").attr("scrollTop", 0); } var cache = {}; $("#birds").autocomplete({ source: function(request, response) { if (cache.term == request.term && cache.content) { response(cache.content); } if (new RegExp(cache.term).test(request.term) && cache.content && cache.content.length < 13) { var matcher = new RegExp($.ui.autocomplete.escapeRegex(request.term), "i"); response($.grep(cache.content, function(value) { return matcher.test(value.value) })); } $.ajax({ url: "search.php", dataType: "json", data: request, success: function(data) { cache.term = request.term; cache.content = data; response(data); } }); }, minLength: 2, select: function(event, ui) { log(ui.item ? ("Selected: " + ui.item.value + " aka " + ui.item.id) : "Nothing selected, input was " + this.value); } }); }); </script> </head> <body> <div class="demo"> <div class="ui-widget"> <label for="birds">Birds: </label> <input id="birds" /> </div> <div class="ui-widget" style="margin-top:2em; font-family:Arial"> Result: <div id="log" style="height: 200px; width: 300px; overflow: auto;" class="ui-widget-content"></div> </div> </div><!-- End demo --> <div class="demo-description"> <p> The Autocomplete widgets provides suggestions while you type into the field. Here the suggestions are bird names, displayed when at least two characters are entered into the field. </p> <p> Similar to the remote datasource demo, though this adds some local caching to improve performance. The cache here saves just one query, and could be extended to cache multiple values, one for each term. </p> </div><!-- End demo-description --> </body> </html>