/[webpac]/trunk2/out/thesaurus.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

Diff of /trunk2/out/thesaurus.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 465 by dpavlin, Thu Sep 23 18:23:13 2004 UTC revision 469 by dpavlin, Fri Sep 24 18:04:48 2004 UTC
# Line 7  Line 7 
7  <script type="text/javascript">  <script type="text/javascript">
8    
9  function myfilter() {  function myfilter() {
10  //      document.getElementById('textfilter').focus();  //      self.document.getElementById('textfilter').focus();
11  //      document.getElementById('textfilter').caretPos=1;  //      self.document.getElementById('textfilter').caretPos=1;
12  //      document.getElementById('textfilter').select();  //      self.document.getElementById('textfilter').select();
13          document.myfilter = new BFilter(headlines);          self.document.myfilter = new BFilter(headlines);
14    
15          document.myfilter.result = function (arr) {          self.document.myfilter.result = function (arr) {
16                  var r = element_id('results');                  var r = element_id('results');
17                  if (r) {                  if (r) {
18                          var e = document.createElement("a");                          var e = self.document.createElement("a");
19                          e.setAttribute("href","thes/"+arr[1]+".html");                          e.setAttribute("href","browse.html?o="+arr[1]+"#mfn"+arr[1]);
20                          //e.setAttribute("target","_blank");                          e.appendChild(self.document.createTextNode(arr[0]));
                         e.appendChild(document.createTextNode(arr[0]));  
21                          r.appendChild(e);                          r.appendChild(e);
22    
23                          r.appendChild(document.createTextNode(" "));                          r.appendChild(self.document.createTextNode(" "));
24    
25                          e = document.createElement("a");                          e = self.document.createElement("a");
26                          e.setAttribute("href","browse.html?o="+arr[1]);                          e.setAttribute("href","thes/"+arr[1]+".html");
27                          e.appendChild(document.createTextNode(">>"));                          //e.setAttribute("target","_blank");
28                            e.appendChild(self.document.createTextNode(">>"));
29                          r.appendChild(e);                          r.appendChild(e);
30    
31                          r.appendChild(document.createElement("br"));                          r.appendChild(self.document.createElement("br"));
32    
                         return null;  
33                  } else {                  } else {
34                          alert("can't find results div!");                          alert("can't find results div!");
35                  }                  }
# Line 39  function myfilter() { Line 38  function myfilter() {
38                  '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +                  '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +
39                  '</li>';                  '</li>';
40  */  */
41                    return null;
42          }          }
43    
44          // this function is called when updating innerHTML with results          // this function is called when updating innerHTML with results
45          document.myfilter.display = function (html) {          self.document.myfilter.display = function (html) {
46                  return null;                  return null;
47  //              return '<ul>'+html+'</ul>';  //              return '<ul>'+html+'</ul>';
48          }          }
# Line 72  function myfilter() { Line 72  function myfilter() {
72    
73  <form method="get" onSubmit="return false;">  <form method="get" onSubmit="return false;">
74  <div class="filters">  <div class="filters">
75          <input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onKeyUp="document.myfilter.filter(document,this.value);">          <input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onKeyUp="self.document.myfilter.filter(this.value);">
76          <!-- this button is strictly for looks -->          <!-- this button is strictly for looks -->
77          <input class="filters" value="filter" type="button">          <input class="filters" value="filter" type="button">
78  </div>  </div>

Legend:
Removed from v.465  
changed lines
  Added in v.469

  ViewVC Help
Powered by ViewVC 1.1.26