wrong Cookie gets deleted (multiple tables on one page)

wrong Cookie gets deleted (multiple tables on one page)

haydehayde Posts: 6Questions: 0Answers: 0
edited July 2011 in Bug reports
State saving does not work with multiple tables on one page it seems.
test here: http://www.databased.at/hattrick/x-ray/pages/squadRAW.htm

if i check with firebug firecookie i can see that when i cange sort order on table A cookie of table B gets deleted etc.
somethign wrong with my implementation or is this a bug?

Anyway thanks for this epic tool !

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    use sCookiePrefix to give each table a unique cookie

    http://www.datatables.net/ref

    [code]
    $(document).ready(function() {
    $('#tableA').dataTable( {
    "sCookiePrefix": "tableA_",
    } );

    $('#tableB').dataTable( {
    "sCookiePrefix": "tableB_",
    } );
    } );
    [/code]
  • haydehayde Posts: 6Questions: 0Answers: 0
    for example after clicking to sort on table a this cookie action happens:
    http://www.databased.at/hattrick/x-ray/pages/squadRAWcookiebug.png
  • haydehayde Posts: 6Questions: 0Answers: 0
    thank you fbas. i thought i had tried that but i oviousely didnt.
    works now :)
  • haydehayde Posts: 6Questions: 0Answers: 0
    still this is not intended i guess
This discussion has been closed.