Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: datatables warning (table id = 'example') requested unknown parameter

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default datatables warning (table id = 'example') requested unknown parameter

    Getting above error while using server side datatable and here is My code


    function getReports() {
    /* document.getElementById("tableDiv").style.display = "block"; */
    /* alert(from +" "+to); */
    /* alert($("#input-datetimepicker2").val() + " " + $("#input-datetime2picker").val()); */

    var table = $("#example").dataTable({

    "bServerSide": true,
    "bDestroy": true,
    "sAjaxSource": "${pageContext.request.contextPath}/admin/AdminService?hdnmode=user_audit_trail_data&fromDat e="+ $("#input-datetimepicker2").val() +"&toDate="+$("#input-datetime2picker").val(),
    "bProcessing": true,
    //"sPaginationType": "full_numbers",
    "bJQueryUI": true,
    "sServerMethod": "POST",

    "aoColumns": [
    { "mDataProp": "userName" , "sDefaultContent" : "" },
    { "mDataProp": "actionName" },
    { "mDataProp": "actionEvent" },
    { "mDataProp": "actionDescription" },
    { "mDataProp": "actionTime" },
    { "mDataProp": "actionStatus" }
    ],

    "aLengthMenu": [
    [5, 10, 50, 100,500, -1],
    [5, 10, 50, 100,500, "All"]
    ],
    "iDisplayLength" : 5,

    });

    for (var i=0; i< ParsedObject.length; i++) {
    var temp_item = ParsedObject[i]; //new row data
    table.fnAddData(temp_item.userName, temp_item.actionName, temp_item.actionEvent, temp_item.actionDescription, temp_item.actionTime, temp_item.actionStatus); //adds new row to datatable
    }

    }


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,051
    My Mood
    Mellow
    Thanks
    184
    Thanked 650 Times in 637 Posts

    Default Re: datatables warning (table id = 'example') requested unknown parameter

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    And then post your code correctly per the provided link.

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,360
    Thanks
    49
    Thanked 2,206 Times in 2,179 Posts

    Default Re: datatables warning (table id = 'example') requested unknown parameter

    Java != javascript
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. adding data in table but the table is in another frame
    By brianskiee in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 13th, 2014, 03:31 PM
  2. The requested resource () is not available.
    By freakycoder in forum Web Frameworks
    Replies: 0
    Last Post: July 10th, 2012, 12:44 AM
  3. Replies: 3
    Last Post: May 27th, 2012, 11:11 AM
  4. Cannot assign requested address
    By frozen java in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 12th, 2012, 12:32 PM
  5. how to pass value of table cell as parameter/attribute
    By ajincoep in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: February 8th, 2011, 08:51 AM