Hi Echarp
i like the filtertable js and have used it in one of my apps, but find it to slow when filtering a large table, is it possible to change to a ‘click serach button or hit enter’ so it doesnt filter live
simpleinvoices.sf.net/demo
Cheers
Justin Kelly
justin@kelly.org.au
+1
It’s a pleasure to create something that can be useful!!!
To improve it on a large table, yes, you would need to move the filtering code toward a “submit” button.
Just modify the javascript, something like:
var form = document.createElement('form');
form.setAttribute('class', 'filter');
__ For ie...
form.attributes['class'].value = 'filter';
var input = document.createElement('input');
form.appendChild(input);
var input2 = document.createElement('input');
input2.setAttribute('type', 'submit');
input2.attributes['type'] = 'submit';
input2.onkeyup = function() {
filterTable(input, element);
}
form.appendChild(input2);
element.parentNode.insertBefore(form, element);
Have fun.
+1
Hello Echarp
I am looking for a table sort script to find names and numbers in a table of about 100 rows.
Your tablefilter script seems to be very good for this job,
so I tested your fiterTable.js script with the browsers: Firefox 2.x; IE 7; Opera 9 and Netscape 7.x.
It runs in all browsers without Netscape(The form field das’nt appear).
In your homepage http://leparlement.org/filterTable it’s ok, also in Netscape.
What did I wrong?
Best Regards
Franz Kruft
+0
-1