Jeditables + Datables

Jeditables + Datables

Hi folks,

 I found an example of how to use Jeditables with Datables without needing a server call. This is going to be used in a standalone app that doesn't need to remember the data after used. The source of the code is here.

http://jsfiddle.net/j78pR/

Unfortunately my table isn't static, it's loaded after the page loads. I load my by calling this javascript function after I create the table with a vbs loop.

  1. function initTables()
    {

    var oTable = $('#resTable').dataTable(
    {
        "oLanguage": {
            "sLengthMenu": 'Display <select>'+
            '<option value="-1">20</option>'+
            '<option value="-1">40</option>'+
            '<option value="-1">60</option>'+
            '<option value="-1">All</option>'+
            '</select> records'
        },
       
        "bSort": false,
        "iDisplayLength": 20,
        "bScrollCollapse" : false,
        "sScrollY": "620"
       
    });

    $('#resTable').replaceWith(oTable)

    }























I've tried using the code in the JS fiddle, it'll get the editable functioning, allow me to edit the text, but it won't let me press enter to make it stick.

Any help would be appreciated, i'm new to jQuery.