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;
$('#example').dataTable( {
"bDestroy": true,
"aaData": [
{"col0":"resultForCol0","co11WithFloatingValue":0.7167011732229124,"col2":"dd dd dd","col3WithInt":10},
"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 <<<<<<<<<<<<<<<<<<<<<");





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.