/[bfilter]/trunk/bfilter.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/bfilter.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 42 - (hide annotations)
Wed Dec 15 15:35:24 2004 UTC (19 years, 4 months ago) by dpavlin
File MIME type: text/html
File size: 1215 byte(s)
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.

1 dpavlin 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2     <html>
3     <head>
4 dpavlin 10 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
5     <script type="text/javascript" src="bfilter.js"></script>
6 dpavlin 29 <script type="text/javascript" src="combo-test.js"></script>
7 dpavlin 10 <script type="text/javascript">
8    
9     function myfilter() {
10 dpavlin 30 self.document.myfilter = new BFilter(headlines);
11 dpavlin 10 }
12    
13     </script>
14 dpavlin 1 <!--
15 dpavlin 10 <link rel="stylesheet" href="style.css" type="text/css">
16 dpavlin 1 -->
17 dpavlin 10 <title>Filter entries</title>
18 dpavlin 1 </head>
19    
20 dpavlin 10 <body onload="myfilter(); ">
21 dpavlin 1
22 dpavlin 12 <div style="width:20%; float: right; border: 1px solid red" id="debug">
23 dpavlin 10 </div>
24    
25 dpavlin 1 <form method="get" onSubmit="return false;">
26     <div class="filters">
27 dpavlin 30 <input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onKeyUp="self.document.myfilter.filter(this.value);">
28 dpavlin 1 <!-- this button is strictly for looks -->
29     <input class="filters" value="filter" type="button">
30     </div>
31     </form>
32    
33     <div id="status" style="font-size: 80%; color: gray;">
34 dpavlin 10 <!--
35 dpavlin 1 Enter few letters to filter by them
36 dpavlin 10 -->
37 dpavlin 1 </div>
38    
39     <div id="results">
40     </div>
41    
42 dpavlin 42 <a href="#" onCLick="self.document.myfilter.show_all();">show all entries</a>
43    
44 dpavlin 1 </body>
45    

  ViewVC Help
Powered by ViewVC 1.1.26