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

dataTable not loading aaData parameter

$
0
0
So the table is on the page

<table width="100%" id="ticketListTable" class="genmed"></table>

I then use AJAX to return the data

		$.ajax({
			type: 'POST',
			url: "ticketAjax.php",
			data: '&m=swapTicketList',
		    dataType: "json",
			success: function(resultData) {
				$('#ticketListTable').dataTable({
					"aaData": resultData,
					"aaSorting": [[0, "desc"]],
					"bJQueryUI": true,
					"bScrollInfinite": true,
					"bScrollCollapse": true,
					"bDestroy": true,
					"bDeferRender": true,
					"iDisplayLength": 100,
					"sScrollY": "1000px",
					"sDom": "Rlfrtip",
				});
			}
		});

The AJAX is working and returning

[{"ID":["17316","17314","17313","17312","17311","17310","17309","17308","17307"....

However aaData is not populating the table with that Json data. Am i misunderstanding how this works? I have read quite a few forums and posts and they all appear to lead to this type of usage.

Viewing all articles
Browse latest Browse all 82109

Trending Articles



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