Load data after trigger

Load data after trigger

GieGie Posts: 1Questions: 0Answers: 0
edited October 2011 in General
Hi All, i'm newbie. I have employees data from 2 company in one datatables and i have two button which has 2 company ID, the first initialization will load empty table and if i click one of that company button will send post company id value and load data via ajax for only employees on that company. Is there any example to do that ? Thanks

Replies

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Sounds like the fnReloadAjax API plug-in method might be exactly what you want: http://datatables.net/plug-ins/api#fnReloadAjax . When the button is clicked just call fnReloadAjax with the URL for the data source that you want to load into the table.

    Allan
This discussion has been closed.