Alex...

I doubt that the table would ever have more than 200 rows. Putting the
contents of the table into an array might not be a bad idea, I'll look into
it. Thank you for your input. 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Ezell
Sent: Friday, September 14, 2007 12:44 PM
To: [email protected]
Subject: [jQuery] Re: Code Review: Table filtering...


How big do you expect this table to get?

I'm not sure, but on a really large table, it might be pretty slow to do a
.each() over all the elements on each keypress.

Maybe a better way would be to have a function to parse the table results
and build some sort of data structure (array, JSON object,
etc.) which you might be able to filter quicker. I'm not *sure* that it
would be faster, but it's something to explore.

/alex

On 9/14/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> Yeah...I saw that after I wrote my own actually. Mine is only like 5 
> lines of code, I'm guessing the plugin is far larger than that.
>
> At this point, I'm just looking for feedback to tell me if my code is 
> any good.
>
> :)
>
>
> andy
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] 
> On Behalf Of Chris W. Parker
> Sent: Friday, September 14, 2007 11:49 AM
> To: [email protected]
> Subject: [jQuery] Re: Code Review: Table filtering...
>
>
> On Friday, September 14, 2007 9:25 AM Bil Corry said:
>
> > Andy Matthews wrote on 9/14/2007 8:11 AM:
> >> Yesterday I asked on the list for suggestions on how to filter the 
> >> contents of a table using an autocomplete type interface. Didn't 
> >> get any answers so last night I wrote it myself.
> >
> > Sorry, I must have missed your post (I find it difficult to keep up 
> > with the traffic on this list).  This is what I've been using for 
> > many years, the only tweak I made to it was to make it
> > case-insensitive:
> >
> > <http://www.codeproject.com/jscript/tablefilter.asp>
>
> And if you prefer a jQuery plugin (this is the one I was talking about):
>
> http://ideamill.synaptrixgroup.com/?page_id=16
>
>
>


Reply via email to