JQuery Data Table Redraw

JQuery Data Table Redraw

peterwkcpeterwkc Posts: 21Questions: 0Answers: 0
edited December 2012 in DataTables 1.9
Hi all, I have a JQuery data table initialization in page 1. Then, I have the delete a single row operation in page 2. How to get the JQuery data table instance in page 2 in order to call oTable.fnDraw(true);

Is it I need to call the ajax again to get the data from server before calling oTable.fnDraw(true);

Please help.

Thanks.

Replies

  • peterwkcpeterwkc Posts: 21Questions: 0Answers: 0
    I think I need to pass the JQuery Data Table instance during the click event on page 1. In this case, it will pass the JQuery Data Table instance to page 2.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    http://datatables.net/forums/discussion/12899/post-test-cases-when-asking-for-help-please-read

    Post a test case please.

    I don't understand the question I'm afraid. Do you want to know how to get the DataTable instance again? Just call `$('#myTable').dataTable()` again, or store the variable somewhere.

    Allan
  • peterwkcpeterwkc Posts: 21Questions: 0Answers: 0
    edited December 2012
    Yes, I can call the $('#myTable').dataTable() but this code is in page 1 and I need to refer them on page 2. I guess i need to pass this instance to page 2 using some sort of click function. Please let me know if i correct.
This discussion has been closed.