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

Exporting Not Working

$
0
0
Hi,
I have implemented the data table and trying to put the export buttons on the page.iput all the code mentioned in forums and examples.

<table id='example' class="table table-striped table-bordered bootstrap-datatable datatable">
..
..
..
<table>

<script src='js/jquery.dataTables.min.js'></script>	
<script src="js/TableTools.min.js"></script>
<script>
$(document).ready( function () {
$('#example').dataTable( {
	 "bRetrieve" : true,
         "sDom": '<"H"Tfr>t<"F"ip>',
            "oTableTools": {
                "sSwfPath": "http://datatables.net/release-datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",
                "aButtons": [
                    {
                    "sExtends": "print",
                    "sButtonText": "Print",
                    "bShowAll": true,
                    "sMessage": "Record Data",
                    },
                    {
                    "sExtends": "pdf",
                    "sButtonText": "Export to PDF"
                    },
                    {
                    "sExtends":"xls",
                    "sButtonText": "Export for Excel"
                    }
                ]}  
				});
			} );
</script>

Viewing all articles
Browse latest Browse all 82144

Trending Articles



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