Getting Datatable Warning

Getting Datatable Warning

abhi12363abhi12363 Posts: 6Questions: 0Answers: 0
edited November 2013 in DataTables 1.8
Hi All,
Please help me to resolve this warning and showing data in data grid. I am using jsp and trying to show data from javascript variable and getting warning again and again and getting null as data inside grid. bellow m pasting my code

<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


Using JQuery DataTables plugin with AJAX source implemented in Java web application








var oTable = null;
$(document).ready(function(){
$('#example').dataTable( {
"bDestroy": true,
"aaData": [
{"col0":"resultForCol0","co11WithFloatingValue":0.9523809523809524,"col2":"a","col3WithInt":71},
{"col0":"resultForCol0","co11WithFloatingValue":0.9523809523809523,"col2":"bbb","col3WithInt":40},
{"col0":"resultForCol0","co11WithFloatingValue":0.7830687830687831,"col2":"c","col3WithInt":19},
{"col0":"resultForCol0","co11WithFloatingValue":0.7167011732229124,"col2":"dd dd dd","col3WithInt":10},
{"col0":"resultForCol0","co11WithFloatingValue":0.7159975101151571,"col2":"eee","col3WithInt":14}
],
"aoColumns": [
{ "mData": "col0" },
{ "mData": "co11WithFloatingValue" },
{ "mData": "col2" },
{ "mData": "col3WithInt" },
]
});

// Allow to resize manually the width of the columns
// jQuery("#example").colResizable(); // do not work...
});
alert(">>>>>>>>>>>>>>>>>>>>> Test <<<<<<<<<<<<<<<<<<<<<");



<!--



-->





col0
co11WithFloatingValue
col2
col3WithInt









<!--

DataTables warning (table id = 'example'): Cannot reinitialise DataTable.

To retrieve the DataTables object for this table, pass no arguments or see the docs for bRetrieve and bDestroy

-->
This discussion has been closed.