views:

79

answers:

1

I have a table that I use jEditable with.

Saving to the server works, but the callback for refreshing my table element (that I just edited and saved to the server) does not work.

    /* Apply the jEditable handlers to the table */
$('#example tbody td').editable( '<%= url_for :controller => 'impact_matrix', :action => 'post', :scenario => params[:id] %>', {
  "callback": function( sValue, y ) {
                          ^ goes missing
    var aPos = oTable.fnGetPosition( this );
    oTable.fnUpdate( sValue, aPos[0], aPos[1] );
  },
  "submitdata": function ( value, settings ) {
    temp = value
    return { "row_id": this.parentNode.getAttribute('id') };
  },

sValue (that I point to in the code) - seems to be blank.

I do get values for aPos[0] and aPos[1], but not sValue.

Could someone please explain to me 'what triggers the callback function?'

Or, if I could just see where to get the 'newly edited text' and then just run fnUpdate() on that, I'd be fine.

Thanks in advance for your help.

A: 

i've got the same problem. did you fix it yet?

amd
Unfortunately not. I went for Slickgrid instead. Sorry.
Forkrul Assail