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

fnReloadAjax causing popups?

$
0
0
So i posted this question before and got 0 replies, but as my codes changed significantly since i posted that im making a new one with the newer code in it. So heres my problem, its all working as it should except when i hit delete, and it rusn my process, removes the entry, and i try to follow with
 oTable.fnReloadAjax()
it does...but pops up saying 'false' a number of times in the process. I am not sure what is causing it or what to do to fix it.

here is my current code:

<script>
	$(document).ready(function(){
	var oTable = $('#dataTable').dataTable({
		"bProcessing": true,
		"bJQueryUI": true,
		"bPaginate": true,
		"sPaginationType": "full_numbers",
		"iDisplayLength": 10,
		"sDom": 'pT<><f>rt<il>',
		"sAjaxSource": 'dataTable/getCmsGroupData',
		"aoColumns": [
			  			{ "mData": "id", "sTitle": "ID", 
			  				"fnRender": function (oObj) {
			                    return '<a href="cmsgroup_update?id='+ oObj.aData["id"] + '">' + oObj.aData["id"] + '</a>';
			                  }},
			  			{ "mData": "version", "sTitle":"Version" },
			  			{ "mData": "name", "sTitle": "Name" },
			  			{ "mData": "description", "sTitle": "Description"},
			  			{ "mData": "notes", "sTitle": "Notes"},
		  			 ],
		"oTableTools": {
			"sRowSelect": "multi",
			"aButtons": [{
				           	 "sExtends": "ajax",
				           	 "bSelectedOnly": "true",
				           	 "sButtonText": "Delete Selected",
				           	 "mColumns": [0],
				           	 "bHeader": false,
				           	 "sAjaxUrl": "dataTable/delete/cmsGroup", 
					         "fnAjaxComplete": function ( XMLHttpRequest, textStatus ) {
			                  	oTable.fnReloadAjax();
			                 }//delete button
				        },
				        "select_all",
				        "select_none", 
				        {
				        	"sExtends": "text",
				        	"sButtonText": "Create New Entry",
				        	"fnClick": function ( nButton, oConfig, oFlash ) {
				                window.location = "cmsgroup_add";
				           }
				        }
				        ]//add button
					}//table tools
				});				
	});	//function
</script>

	<body id="example">
		<div id="container">
			<h1>CMS Group</h1>
			<table>
				<tr>
					<td><div id="sidebar"><jsp:include page="sidebar.jsp"/></div></td>
					<td>
						<table class="display" id="dataTable"  width="100%"></table>
				</td>
			</tr>	
		</table>
			<jsp:include page="footer.jsp" />
		</div>
	</body>
</html>

Any clues?

Viewing all articles
Browse latest Browse all 82117

Trending Articles



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