Jedit without XHR request

Jedit without XHR request

systematicalsystematical Posts: 23Questions: 0Answers: 0
edited April 2013 in General
Is it possible to use jedit without making a callback to the server? I only need to update whats in the tables TD and then give the user the ability to print that table.

Replies

  • systematicalsystematical Posts: 23Questions: 0Answers: 0
    edited April 2013
    Incase anyone else was wondering how to do this:

    [code]
    "fnCreatedRow": function(nRow, aData, iDataIndex){
    $('td:eq(4)', nRow).addClass('make-editable');
    },
    "fnDrawCallback": function(){

    $('.make-editable').click(function(){
    var pos = oTable.fnGetPosition(this);
    var me = this;
    var value = $(this).text();
    $(this).html('');
    $(this).find('input').focus();
    $(this).find('input').blur(function(){
    var newValue = $(me).find('input').val();
    oTable.fnUpdate(newValue, pos[0], pos[1], false, false);
    $(me).html(newValue);
    });
    })
    }
    [/code]

    Note jedit was not necessary.
This discussion has been closed.