Is it possible to filter a table by clicking an image?

Is it possible to filter a table by clicking an image?

thartthart Posts: 3Questions: 0Answers: 0
edited June 2011 in General
I am working with a table that lists episodes for a podcast. Each episode has a focus. What I would like to do is have images (outside) the table that, once clicked, will filter the table by a criteria set by me. Is this even possible?

Replies

  • thartthart Posts: 3Questions: 0Answers: 0
    bump. anyone?
  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    edited July 2011
    Yes, the oTable.fnFilter() function is ideal for this

    here's some discussion about it, but using links instead of images. The idea is the same. Click handler for your image (or a link) triggers fnFilter by your criteria.

    http://www.datatables.net/forums/discussion/comment/22501#Comment_22501.

    You can read the API description of fnFilter here: http://www.datatables.net/api
  • thartthart Posts: 3Questions: 0Answers: 0
    Thanks for the help fbas. That was easier than expected. I can get it working in my own code just fine. Now to see if I can get it working with Wordpress and WP-Table-Reloaded. The hard part seems to be finding where to assign the initialization to a variable so I can call it in a post/page.
This discussion has been closed.