Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82039

eXtends 'text' not working

$
0
0
why my eXtends 'text' not working ?? but, csv or pdf no problem... this is my code

$j(document).ready(function() {   
            var oTable = $j('#tabel_file').dataTable( {
                    
                    "bProcessing": true,
                    "bServerSide": true,
                    "bAutoWidth": false,
                    "bDestory": true,
                    "bRetrieve": true,
                    "sScrollX": "100%",
                    "sScrollXInner": "130%",
                    "bScrollCollapse": true,
                    "sAjaxSource": "file_json.php",
                    "sPaginationType": "full_numbers",
                    "aoColumns": [ 
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"},
                        {"sClass": "center"}
                        
                    ],
                    "aoColumnDefs": [
                    { "bVisible": false, "aTargets": [0] },
                    { "bVisible": false, "aTargets": [2] }
                    ],
                    "fnServerData": function ( sSource, aoData, fnCallback ) {
			aoData.push(
                            { "name": "kd", "value": "<?php echo $_GET['kd'];?>" },
                            { "name": "database", "value": "<?php echo $_GET['database'];?>" },
                            { "name": "content", "value": "<?php echo $_GET['content'];?>" },
                            { "name": "min", "value": $j("#min").attr("value") },
                            { "name": "max", "value": $j("#max").attr("value") }
                            
                        );
			$j.getJSON( sSource, aoData, function (json) { 
				fnCallback(json)
		    })},
                    "sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
                    "oTableTools": {
			   "sSwfPath": "data_tables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",
                           "aButtons": [
                            "csv",
                            "text" ]
                    }
                
            } );
        $j('#min').blur( function() { oTable.fnDraw(); } );
	$j('#max').blur( function() { oTable.fnDraw(); } );
           
            } );

Viewing all articles
Browse latest Browse all 82039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>