[jQuery] Re: combing classes ?

2007-04-11 Thread David

Hi Frans,

I regularly use multiple plugins on my tables to allow the user to 
search and sort the table contents.


eg:


...


and

src="/affiliate/js/jquery/jquery.js">
src="/affiliate/js/jquery/jquery.tablesorter.js">
src="/affiliate/js/jquery/jquery.quicksearch.js">


$(function(){
 // add pretty stripes to the table rows
 $(".stripeMe tr").mouseover(function() 
{$(this).addClass("over");}).mouseout(function() 
{$(this).removeClass("over");});

 $(".stripeMe tr").removeClass("alt");
 $(".stripeMe tr:even").addClass("alt");

 // set up the table sorting
 $(".sortable").tableSorter({
   sortClassAsc: 'sortUp', // class name for ascending sorting 
action to header
   sortClassDesc: 'sortDown',  // class name for descending sorting 
action to header

   headerClass: 'sort'// class name for headers (th's)
 });

 // add a quicksearch field to the table
 $('.quicksearch tbody tr').quicksearch({
   attached: ".quicksearch",
   position: "before",
   stripeRowClass: ['alt', ''],
   labelClass: "quicksearch_label",
   inputClass: "input",
   labelText: "Quick Search",
   loaderImg: '/affiliate/js/jquery/quicksearch/loader.gif',
   delay: 200
 });
});


I haven't used any of the paging plugins for my tables but I assume it 
would be just as simple to implement.


Cheers,

David

Frans H. wrote:

Jquery is really amazing! I am so glad I was introduced to it.

Is there a way to combine features from multiple plugins ? I'd  love a
sortable, scrollable table with key navigation :)

I'd really love to use all that jquery coolness you guys have created!




  


[jQuery] Re: combing classes ?



Frans H. schrieb:

Jquery is really amazing! I am so glad I was introduced to it.

Is there a way to combine features from multiple plugins ? I'd  love a
sortable, scrollable table with key navigation :)
  
Combining plugins can be tricky. So far I haven't seen a good working 
solution of a client sortable, pageable and searchable table. Christian 
did some great work, but didn't quite finish it (there always other work 
besides jQuery) and Matt Kruse has something in the works, too, though 
so far that was announced as jQuery-independent, dunno if that matters 
for you.


On the other, combining plugins that don't effect each other work 
perfect together. Like combining form plugin with validation, datepicker 
and masked input.


--
Jörn Zaefferer

http://bassistance.de



[jQuery] Re: combing classes ?


On 11 apr, 20:39, "real" <[EMAIL PROTECTED]> wrote:
> Yes, I'm pretty sure you can.
>

Without combining the code ? Can I somehow chain the classes ?



[jQuery] Re: combing classes ?


Yes, I'm pretty sure you can.

On Apr 11, 2:36 pm, "Frans H." <[EMAIL PROTECTED]> wrote:
> Jquery is really amazing! I am so glad I was introduced to it.
>
> Is there a way to combine features from multiple plugins ? I'd  love a
> sortable, scrollable table with key navigation :)
>
> I'd really love to use all that jquery coolness you guys have created!