Carry two tables on the same page with json

Carry two tables on the same page with json

alexs3alexs3 Posts: 2Questions: 0Answers: 0

I have two questions:
- I have to make two request to server?
- And how do I know which identify the contents of each table in json?

Thank you.
Alex

Replies

  • headshot9xheadshot9x Posts: 59Questions: 16Answers: 1
    edited April 2015

    Hi alexs3, I think you should define two table with "id" , then load data using json

    <table id="table_a"></table>
    <table id="table_b"></table>
    var table1, table2
    ////load data into table_a, table_b
     table1 = $('#table_a').DataTable({.....});
    table2=$('#table_b').DataTable({.....});
    
    
This discussion has been closed.