How to use multiple sources for several dataTables in one page ?
How to use multiple sources for several dataTables in one page ?
garcon1986
Posts: 9Questions: 0Answers: 0
I want to use jquery dataTables to show something.
It works well when i just put one dataTable in one page, Then i add
It works well when i just put one dataTable in one page, Then i add
This discussion has been closed.
Replies
Can you repost this as you seem to have been cut off mid sentence here.
Regards,
Izzy
I want to use jquery dataTables to show something.
It works well when i just put one dataTable in one page, Then i add one more, but they occupied almost the same position, and one of them doesn't work well.
I used two methods:
1. i use two separate pages. Each page contains one working-well dataTable. Then i include the two pages using the third page.
2. I use two tables in one page. Each table uses one dataTable, like the multi-tables in examples. http://datatables.net/examples/basic_init/multiple_tables.html
Problem of the first method: The two tables almost occupy the same position and one table doesn't work.
Problem of the second method: i can't use more [code]sAjaxSource[/code].
Do you have solutions for the two problems?
And for the second problem, can i use multiple `sAjaxSource` here. If yes, how to do that? If no, how to achieve that in another way?
here is my code:
[code]
$(document).ready(function() {
$('#example').dataTable( {
"bJQueryUI": true,
%
[code]
$(document).read
Either way, if you have tables on top of each other then it sounds like you are having a CSS issue. Either floats of positioning would be my guess. Is the issue common across all browsers? Perhaps having a "play around" in Firebug might bring something to light.
Regards,
Allan
Allan