| Revision 42 (by dpavlin, 2004/12/15 15:35:24) |
Added show_all to dump all entries (might be useful for comboboxes without
any data entered). On the other hand, it might be very, very, very slow...
You have been warned.
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
<script type="text/javascript" src="bfilter.js"></script>
<script type="text/javascript" src="combo-test.js"></script>
<script type="text/javascript">
function myfilter() {
self.document.myfilter = new BFilter(headlines);
}
</script>
<!--
<link rel="stylesheet" href="style.css" type="text/css">
-->
<title>Filter entries</title>
</head>
<body onload="myfilter(); ">
<div style="width:20%; float: right; border: 1px solid red" id="debug">
</div>
<form method="get" onSubmit="return false;">
<div class="filters">
<input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onKeyUp="self.document.myfilter.filter(this.value);">
<!-- this button is strictly for looks -->
<input class="filters" value="filter" type="button">
</div>
</form>
<div id="status" style="font-size: 80%; color: gray;">
<!--
Enter few letters to filter by them
-->
</div>
<div id="results">
</div>
<a href="#" onCLick="self.document.myfilter.show_all();">show all entries</a>
</body>