Editor - (License) -
Editor - (License) -
ArunProjects
Posts: 6Questions: 1Answers: 0
This example does not work ,
https://editor.datatables.net/examples/advanced/tableOnlyData.html ,
it gives a error for datatables.net/tn/4 , no updated date field .
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<link href="http://datatables.net/download/build/nightly/jquery.dataTables.css" rel="stylesheet" type="text/css" />
<script src="http://datatables.net/download/build/nightly/jquery.dataTables.js"></script>
<script src="http://cdn.datatables.net/tabletools/2.2.4/js/dataTables.tableTools.min.js"></script>
<script src="http://localhost:8080/Editor-1.4.2/js/dataTables.editor.min.js"></script>
<link href= "http://cdn.datatables.net/tabletools/2.2.4/css/dataTables.tableTools.css" rel="stylesheet" type="text/css" />
<link href="http://localhost:8080/Editor-1.4.2/css/dataTables.editor.min.css" rel="stylesheet" type="text/css" />
<link href="http://localhost:8080/Editor-1.4.2/css/dataTables.editor.css" rel="stylesheet" type="text/css" />
<meta charset=utf-8 />
<title>DataTables - JS Bin</title>
</head>
<body>
<table class="display" id="example" width="100%">
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Updated date</th>
</tr>
</thead>
<tfoot>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Updated date</th>
</tr>
</tfoot>
</table>
</body>
var editor; // use a global for the submit and return data rendering in the examples
$(document).ready(function() {
editor = new $.fn.dataTable.Editor( {
"ajax": "editorjson1.txt",
"table": "#example",
"fields": [ {
"label": "First name:",
"name": "first_name"
}, {
"label": "Last name:",
"name": "last_name"
}
]
} );
$('#example').DataTable( {
dom: "Tfrtip",
ajax: "editorjson1.txt",
columns: [
{ data: "first_name" },
{ data: "last_name" },
{ data: "updated_date" }
],
tableTools: {
sRowSelect: "os",
aButtons: [
{ sExtends: "editor_create", editor: editor },
{ sExtends: "editor_edit", editor: editor },
{ sExtends: "editor_remove", editor: editor }
]
}
} );
} );
</body>
</html>
This discussion has been closed.
Replies
The example you linked to appears to work okay for me. Could you confirm what browser and OS you are using to access that example page on my site so I can try to reproduce the error?
Allan
I tried with Chrome and Firefox . I am getting error Requested unknown parameter updated_date . I am getting error on both . when I add the following lines in the field it works
,
{
"label": "Updated Date:",
"name": "updated_date"
}
I can provide the url in case you need it for testing . Please send me your email .
Oh I see, it isn't the link to gave above that you are having the problem with?
If you could use the contact form to drop me the URL you are using please.
Allan
I have send the site details using contact form , this is a temporary IP
remove updated date field and test your example with txt file , it will give tn/4 error
$(document).ready(function() {
editor = new $.fn.dataTable.Editor( {
"ajax": "editorjson1.txt",
"table": "#example",
"fields": [ {
"label": "First name:",
"name": "first_name" ,
"disable" : "true"
Thanks for the link. Unfortunately the server appears to be down at the moment. I'll try again tomorrow morning.
Allan
it is on now ; sorry i switch my locations from office to home so . I am in PDT timezone.
It appears to be offline again when I checked just now. Can you leave it on until I get a chance to check it?
Allan