<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Re: Multiple table filter</title>
    <link>http://blog.echarp.org/Re_Multiple_table_filter_1/index.rss</link>
    <description>Re: Multiple table filter</description>
    <item>
      <title>Re: Multiple table filter</title>
      <pubDate>2009-08-16 23:09:35+0200</pubDate>
      <link>http://blog.echarp.org/Re_Multiple_table_filter_3</link>
      <comments>http://blog.echarp.org/Re_Multiple_table_filter_3</comments>
      <dc:creator>echarp</dc:creator>
      <description>&lt;p&gt;&lt;p&gt;I&amp;#8217;m not sure about your goal, you want &amp;#8220;one&amp;#8221; filter to filter over many tables? Input filter should be present above the first one then?&lt;/p&gt;
&lt;p&gt;First you can &amp;#8220;only&amp;#8221; add the filter form if you are in the first table:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;pre&amp;gt;&lt;/p&gt;
&lt;p&gt;if (t == 0 &amp;amp;&amp;amp; element.attributes[&amp;#8216;class&amp;#8217;] &amp;amp;&amp;amp; &amp;#8230;) {
  &amp;#8230;
}&lt;/p&gt;
&lt;p&gt;&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;(at the end of the javascript file)&lt;/p&gt;
&lt;p&gt;Then in the &lt;code&gt;filterTable(input, element);&lt;/code&gt; part, reloop over all tables to add each to the onkeyup event.&lt;/p&gt;
&lt;p&gt;Something like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;pre&amp;gt;&lt;/p&gt;
for (var t2 = 0; t2 &amp;lt; tables.length; t2++) {
element2 = tables[t];
filterTable(input, element2);
}
&lt;p&gt;&lt;/pre&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s just one way to do it, simple. You tell me if it&amp;#8217;s good.&lt;/p&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Re: Multiple table filter</title>
      <pubDate>2009-08-10 20:08:54+0200</pubDate>
      <link>http://blog.echarp.org/Re_Multiple_table_filter_2</link>
      <comments>http://blog.echarp.org/Re_Multiple_table_filter_2</comments>
      <dc:creator>Sam</dc:creator>
      <description>&lt;p&gt;&lt;p&gt;Sorry it tried to compile the form at the end of the script,&lt;/p&gt;
&lt;p&gt;I had tried to use the same basic version of your form with the form calling the function filter(this,&amp;#8216;Id1&amp;#8217;,&amp;#8216;Id2&amp;#8217;,&amp;#8216;Id3&amp;#8217;,1)&lt;/p&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
