DataTables logo DataTables

via Ad Packs
Javascript Problem In TableTools
  • I am getting the following error in the ZeroClipboard.js file

    this.movie.clearText is not a function (Line 279)

    No idea what is causing this, my table renders however the only thing that does is the option to sort.

    <script type="text/javascript">
            $(document).ready(function() {
            
    				$('#table').dataTable( {
    				    "sDom": 'T<"clear">lfrtip',
    				    "aaSorting": [[ 0, "desc" ]],
                        "bJQueryUI": true,
    					"sPaginationType": "full_numbers",
    
    				} );
       
    			} );    
    </script>
    
  • Ok I was able to get the TableTools to dispplay, however here are the problems I have.

    I get the following error:

    this.movie.clearText is not a function on Line 279.

    The Print button works, however none of the export to csv/excel buttons work and when you click copy to clipboard, it will alert you how many rows were copied however the copying never happens.
  • Well sorta solved my own forum question, I was able to fix it. Awesome stuff!
  • kkudikkudi
    Posts: 74
    dobulet302, I have the same javascript error, could you please tell me what you went about solving it?
    Thanks
  • Made my script like the following.

    <script type="text/javascript" charset="utf-8">
            $(document).ready(function() {
                TableToolsInit.sSwfPath="swf/ZeroClipboard.swf";
               
    				$('#table').dataTable( {
    				    				    
    				   "bPaginate": false,
                        "bJQueryUI": true,
                         "sDom": '<"H"lTfr>t<"F"ip>'
    				} );
    
       
    			} );    
    </script>
    
  • mgmg
    Posts: 44
    I'm getting the "this.movie.clearText is not a function" error as well in Firefox.
  • boudgaboudga
    Posts: 10
    go into ZeroClipboard.js and make line 279 look like this:

    //this.movie.clearText();

    That fixed it for me! Yea!!!
  • allanallan
    Posts: 15,522
    Make sure you are using the version of ZipClipboard that each TableTools release comes with as they are not identical between releases. Note that this is an old thread (3 months or so) and refers to TableTools 1.x initialisation, which has changed for TableTools 2.x.

    Allan
  • boudgaboudga
    Posts: 10
    our application still uses version 1.1.1
  • allanallan
    Posts: 15,522
    Okay - thanks for the clarification. Sounds like a little bug in 1.1.1 then - thanks for flagging it up.

    Allan
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion