Multiple Tables with one search

Multiple Tables with one search

enggsol_dennisenggsol_dennis Posts: 11Questions: 0Answers: 0
edited March 2012 in General
I need to create 3 datatables in a single page with only one search box.

I don't know if this is doable.

I need your comments/help.

Thanks in advance!

Replies

  • enggsol_dennisenggsol_dennis Posts: 11Questions: 0Answers: 0
    Anyone? Help? Allan?
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    http://datatables.net/plug-ins/api#fnFilterAll :-)

    Allan
  • enggsol_dennisenggsol_dennis Posts: 11Questions: 0Answers: 0
    You're the best man =)

    Think I didn't search enough =)
  • enggsol_dennisenggsol_dennis Posts: 11Questions: 0Answers: 0
    now sorry, but why do i get this error

    "jQuery.fn.dataTableExt is undefined (path)/dataTables.fnFilterAll.js"
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Are you loading jQuery and DataTables before you load your fnFilterAll file?

    Allan
  • enggsol_dennisenggsol_dennis Posts: 11Questions: 0Answers: 0
    Yes sir.

    Now i got it working by replacing these lines ( in fnFilterAll() ):

    line 11: jQuery.fn.dataTableExt.iApiIndex = i;

    line 14: jQuery.fn.dataTableExt.iApiIndex = 0;

    with these

    $.fn.dataTableExt.iApiIndex = i;

    $.fn.dataTableExt.iApiIndex = 0;
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Odd given that they should be the same - but good to hear that you've got it working on your site.

    Allan
  • enggsol_dennisenggsol_dennis Posts: 11Questions: 0Answers: 0
    Yeah I think so too.

    Thank you again for the support!

    Dennis
This discussion has been closed.