How to use multiple sources for several dataTables in one page ?

How to use multiple sources for several dataTables in one page ?

garcon1986garcon1986 Posts: 9Questions: 0Answers: 0
edited November 2009 in General
I want to use jquery dataTables to show something.

It works well when i just put one dataTable in one page, Then i add

Replies

  • izzy6150izzy6150 Posts: 49Questions: 0Answers: 0
    Hi garcon1986,

    Can you repost this as you seem to have been cut off mid sentence here.

    Regards,
    Izzy
  • garcon1986garcon1986 Posts: 9Questions: 0Answers: 0
    edited November 2009
    I'm sorry, i have met a problem when i posted this question yesterday.
    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,
    %
  • garcon1986garcon1986 Posts: 9Questions: 0Answers: 0
    edited November 2009
    here is my code:
    [code]
    $(document).read
  • garcon1986garcon1986 Posts: 9Questions: 0Answers: 0
    edited November 2009
    sorry, it seems the forum is not very robust, and it has some latency also. i'm sorry for posting the same content here.
  • garcon1986garcon1986 Posts: 9Questions: 0Answers: 0
    edited November 2009
    null
  • garcon1986garcon1986 Posts: 9Questions: 0Answers: 0
    edited November 2009
    null
  • garcon1986garcon1986 Posts: 9Questions: 0Answers: 0
    edited November 2009
    null
  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    lol - looks like you are having forum issues... Funny - I've never seen it that bad before. Perhaps you hit it at a bad time.

    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
  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    Hmmm - I think I misunderstood the question. Given that this thread is a duplicate - I'm going to sink it. Please post replies in the other thread: http://datatables.net/forums/comments.php?DiscussionID=900&page=1#Item_0

    Allan
This discussion has been closed.