Internet Explorer problem

Internet Explorer problem

morrtymorrty Posts: 29Questions: 6Answers: 0
edited August 2011 in General
I'm getting popup in IE that says: "DataTables warning (table id = 'datatable'): Requested unknown parameter '0' from the data source for row 0"

It only occurs in IE and only if I'm using form elements in the cells.

For example:
[code]

<?php foreach ($items as $item): ?>







<?php endforeach; ?>

[/code]

Unfortunately the webapp is used in a corporate environment where only IE exists.

Any way to fix this?

Replies

  • 12Bo12Bo Posts: 10Questions: 0Answers: 0
    edited December 2011
    I am encountering a similiar issue.

    The alert message only pops up in Internet Explorer.

    Application Info:
    I am using Datatables with Ignited Datatables (codeigniter library).

    HTML
    [code]



     
    ID
    Evaluated Employee
    First Name
    Building
    Observed By
    Evaluation Date
    Functions




    loading..




    [/code]

    Javascript
    [code]
    var oTable = $('#walkthrough-table').dataTable({
    "bPaginate": true,
    "bFilter": true,
    "bSort": true,
    "bAutoWidth": false,
    "sDom": '<"top"f<"advanced-search-wrap">>t<"bottom"lip>',
    "sPaginationType": "full_numbers",
    "iDisplayLength": 25,
    "aaSorting": [[ 6, "desc" ]],
    'aoColumns' : [
    { 'sName': 'entry.publish_status', 'bSortable': false },
    { 'sName': 'entry.entry_id'},
    { 'sName': 'employee_name'},
    { 'sName': 'employee.first_name', 'bVisible': false },
    { 'sName': 'building.building_name'},
    { 'sName': 'entry.observed_by' },
    { 'sName': 'entry.date_submitted' },
    { 'sName': 'functions', 'bSortable': false },
    ],
    "sAjaxSource": "<?php echo site_url('ajax/walkthrough/get_table_data'); ?>",
    });

    [/code]
    * I changed 'sName' to 'mDataProp' but then the table data will not load.

    JSON that is returned
    [code]
    {"sEcho":0,"iTotalRecords":1,"iTotalDisplayRecords":1,"aaData":[["","25","Smith, Sarah","Sarah ","Building A","username","2011-11-23 09:13:00",""]],"sColumns":"entry.publish_status,entry.entry_id,employee.last_name,employee.first_name,building.building_name,entry.observed_by,entry.submitted_date,functions"}

    [/code]

    The error message I receive in Internet Explorer is
    [code]
    DataTables warning (table id = 'walkthrough-table'): Requested unknown parameter '8' from the data source for row 0
    [/code]

    When you click the "Ok" button on the alert box the table is populated with the data and the text 'null' is added after the last column in the table.

    Then the same error pops up again.

    Thank you for any assistance on this.

    12Bo
  • 12Bo12Bo Posts: 10Questions: 0Answers: 0
    Damn You Internet Explorer!!!!! /raisefistandshake

    The issue was caused by the good ole' trailing comma.

    Remove that and everything will work.

    Thanks again for the hard work on this package.
  • sakthigsakthig Posts: 1Questions: 0Answers: 0
    Thanks 12Bo ... solved my issue too ... ;)
This discussion has been closed.