WSS 3.O & jquery 1.4.4, Mulitple lists on page

Aug 12, 2011 at 4:39 PM

Unfortunately can't get this to work with jquery 1.4.4 which is what I have. When I put it in a CEWP I get a search box with loads of mumbo jumbo around it, I've implemented the solution for using jquery later than 1.2.6. This is what I get;

"; } else { // filterable tdset += " "; } colIndex++; }); var tr = " " + tdset + ""; $(tr).insertAfter(this); }); $("input.vossers-filterfield") .css("border", "1px solid #7f9db9") .css("width", "100%") .css("margin", "2px") .css("padding", "2px") .keyup(function() { var inputClosure = this; if(window.VossersFilterTimeoutHandle) { clearTimeout(window.VossersFilterTimeoutHandle); } window.VossersFilterTimeoutHandle = setTimeout(function() { var filterValues = new Array(); $("input.vossers-filterfield", $(inputClosure).parents("tr:first")).each(function() { if($(this).val() != "") { filterValues[$(this).attr("filtercolindex")] = $(this).val(); } }); $(inputClosure).parents("tr.vossers-filterrow").nextAll("tr").each(function() { var mismatch = false; $(this).children("td").each(function(colIndex) { if(mismatch) return; if(filterValues[colIndex]) { var val = filterValues[colIndex]; // replace double quote character with 2 instances of itself val = val.replace(/"/g, String.fromCharCode(34) + String.fromCharCode(34)); if($(this).is(":not(:containsIgnoreCase('" + val + "'))")) { mismatch = true; } } }); if(mismatch) { $(this).hide(); } else { $(this).show(); } }); }, 250); }); });

<input class="vossers-filterfield" />

 

Also, can I use this for multiple lists on a page?