jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -


i'm trying implement crud operation using datatableseditor using datatables.but i'm getting error messages:

1)uncaught exception: datatables editor - remote hosting of code not allowed. please see http://editor.datatables.net details on how purchase editor license

2)typeerror: a.editor undefined

3)$.fn.datatable.editor not constructor"

what reason?

here configuration:

    <%@ page language="java" contenttype="text/html; charset=iso-8859-1"     pageencoding="iso-8859-1"%> <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>insert title here</title> <link rel="stylesheet" type="text/css"     href="//cdn.datatables.net/1.10.12/css/jquery.datatables.min.css"> <link rel="stylesheet" type="text/css"     href="https://cdn.datatables.net/buttons/1.2.1/css/buttons.datatables.min.css"> <link rel="stylesheet" type="text/css"     href="https://editor.datatables.net/extensions/editor/css/editor.datatables.min.css"> <link rel="stylesheet" type="text/css"     href="https://cdn.datatables.net/select/1.2.0/css/select.datatables.min.css"> <link rel="stylesheet"     href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <link rel="stylesheet"     href="https://formden.com/static/cdn/bootstrap-iso.css" /> <script src="//code.jquery.com/jquery-1.12.3.js"></script> <script     src="https://editor.datatables.net/extensions/editor/js/datatables.editor.min.js"></script> <script     src="https://cdn.datatables.net/select/1.2.0/js/datatables.select.min.js"></script> <script     src="https://cdn.datatables.net/buttons/1.2.1/js/datatables.buttons.min.js"></script>  <script     src="https://ajax.googleapis.com/ajax/libs/jquery/1.14.4/jquery.min.js"></script> <script src="//cdn.datatables.net/1.10.12/js/jquery.datatables.min.js"></script> <script     src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> <script     src="https://cdn.datatables.net/1.10.12/js/datatables.bootstrap.min.js"></script> </head> <body>     <table id="example" class="table table-striped table-bordered"         width="100%" cellspacing="0">         <thead>             <tr>                 <th>name</th>                 <th>position</th>                 <th>office</th>                 <th>extn.</th>             </tr>         </thead>         <tfoot>             <tr>                 <th>name</th>                 <th>position</th>                 <th>office</th>                 <th>extn.</th>             </tr>         </tfoot>     </table>     <script>         var editor; // use global submit , return data rendering in examples          $(document).ready(                 function() {                     editor = new $.fn.datatable.editor({                         "ajax" : {                             "url" : "getcasetypereport.do"                         },                         table : "#example",                         fields : [ {                             label : "first name:",                             name : "casetypecode"                         }, {                             label : "last name:",                             name : "casetypecode"                         }, {                             label : "position:",                             name : "casetypename"                         }, {                             label : "office:",                             name : "shortform"                         }, {                             label : "extension:",                             name : "casepriority"                         } ]                     });                     alert("editor::" + editor);                     var table = $('#example').datatable(                             {                                 dom : "bfrtip",                                 "ajax" : {                                     "url" : "getcasetypereport.do"                                 },                                 columns : [                                         {                                             data : null,                                             render : function(data, type, row) {                                                 // combine first , last names single table field                                                 return data.casetypecode + ' '                                                         + data.casetypecode;                                             }                                         }, {                                             data : "casetypename"                                         }, {                                             data : "shortform"                                         }, {                                             data : "casepriority"                                         }                                  ],                                 select : true                             });                     alert("table::" + table);                     // display buttons                     new $.fn.datatable.buttons(table, [ {                         extend : "create",                         editor : editor                     }, {                         extend : "edit",                         editor : editor                     }, {                         extend : "remove",                         editor : editor                     } ]);                      table.buttons().container().appendto(                             $('.col-sm-4:eq(0)', table.table().container()));                 });     </script> </body> </html> 


Comments

  1. Casino at Mohegan Sun - Cleveland Casinos
    The casino at Mohegan Sun in 스포츠무료중계 Uncasville, CT is set on a 먹튀검증업체 순위 scenic road that 넷마블바카라시세 features a full-service spa, a full-service spa, 해외안전놀이터 and a golf course. 일본 야구 분석 사이트

    ReplyDelete

Post a Comment

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -