title: Smalltalk Seaside jQuery Search as you Type
body: <pre><code>renderFilterOn: html
  |aFilter|
  html textInput
  onKeyUp: (html jQuery ajax callback: [:val | aFilter := val] 
                  value: ((html jQuery this) value);
              script: [:s | 
                  s add: ((s jQuery class: 'itemnames') 
                  each: (s jQuery ajax callback: [:v | |aName anID |
                  aName := ((v subStrings: $,) last).
                  anID := ((v subStrings: $,) first).
                   ((aName asUppercase) includesSubString: (aFilter asUppercase))
                      ifFalse: ["Do something here to hide values"]] value: (Array with: ((html jQuery this) attributeAt: 'id') with: (html jQuery this) text)))
                      ]
          )
  </code></pre>
  
  <p>So, what do I do in the "Do something here to hide values"?</p>
  
  <p>The ID I get is the ID of a 'td' element of which I want to hide its parent 'tr' element.</p>
  
  <p>I really don't want to do the new component and render thing as the table can contain many thousands of results, and displaying a new component with those results filtered on every keypress would make things way too slow.</p>