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

Table loading Ajax data twice

$
0
0
I love dataTables - thank you very much.

I have a dataTables table that loads via ajax. It load the data twice. How can I stop this please?

		// set up tables
		var contactTable = $("#contactTable").dataTable( {
    	    "sScrollY": "200px",																					// the value set here is irrelevant as it's set by pageResizing()
			"bProcessing": true,
			"sPaginationType": "full_numbers",
			"iDisplayLength": 25,
    		"aLengthMenu": [[10, 20, 25, 40, 50, 100, 250, 500<% if cint(contactCount) < 5000 then response.write ", -1" %>], [10, 20, 25, 40, 50, 100, 250, 500<% if cint(contactCount) < 5000 then response.write ", 'All'" %>]],
			"bLengthChange": true,
			"bServerSide": true,
			"sAjaxSource": "SSP_EmailEvents.asp?CampaignID=<%=campaignID%>&eventType=<%=eventType%>",
			"aoColumnDefs": [
			    { "aDataSort": [ 4 ], "aTargets": [ 2 ] },
				{ "bVisible": false, "aTargets": [ 4 ] }									
			],
			"aaSorting": [[ 2, "asc" ]],
			"sDom": 'T<"clear">lfrtip',
			"oTableTools": {
				"aButtons": [ "copy", "csv" ]
			}
		} ); 

Thanks.

Viewing all articles
Browse latest Browse all 81684

Trending Articles



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