I can not get scroller and Tabletools to work

I can not get scroller and Tabletools to work

ac0uaac0ua Posts: 3Questions: 1Answers: 0

[NOTES]: I have been using datatbles for about 2 years now but never had trouble until i needed to redesign the site from the ground up.

[PROBLEM]: There is an issue getting Scroller and Tabeltools to work together

I do not understand the Dom vs sDom (a link would be helpful but not my main concern)

[What I have tried]:

Scroller Works not table tools (also the <TH> do not follow the <TD>) http://snag.gy/sxQx6.jpg
"Dom": '<"search"fTlp><"bottom">T<"clear">lfrtip',
//"sDom": '<"search"fTlp><"bottom">',

Tabletools Works not scroller http://snag.gy/nq4ex.jpg
//"Dom": '<"search"fTlp><"bottom">T<"clear">lfrtip',
"sDom": '<"search"fTlp><"bottom">',

//---------------------------------------------------------------------------------------
$(document).ready(function() {

    $('#assets').dataTable( {
        "sAjaxSource": "include/asset_json.php",
        "bProcessing": true,
        "Dom": '<"search"fTlp><"bottom">T<"clear">lfrtip',
        //"sDom": '<"search"fTlp><"bottom">',
        //"paginate": false,
        "autoWidth": true,
        //"info": true,
        "scrollY":        "200px",
        "scrollCollapse": true,
        "paging":         false,

         tableTools: {
            "sSwfPath": "include/DataTables-1.10.0/extensions/TableTools/swf/copy_csv_xls_pdf.swf"
        }
    } );
//------------------------------------------------------------------------------------

http://live.datatables.net/fidevup/2/

http://debug.datatables.net/otexuy

Answers

  • ac0uaac0ua Posts: 3Questions: 1Answers: 0

    It is working now. I replaced dom with sDom.
    I stripped all the embedded CSS out of my code meaning the css between style tags
    I will slowly start to reintroduce CSS as needed.

    <style type="text/css" class="init">
    CSS
    {
    display: "something";
    }
    </style>
    

    I used sDom I still do not know what the difference is between dom and sDom.

    "sDom": '<"search"fTlp><"bottom"><"clear">lrtip',
    
  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394

    sDom = 1.9.

    dom = 1.10

    Both should work in 1.10

  • ac0uaac0ua Posts: 3Questions: 1Answers: 0

    I am still a bit confused as to why sDom would work. perhaps there is some legacy code left over.

    Thank you for the information.

This discussion has been closed.