jEditTable Post to Server

jEditTable Post to Server

go4d1go4d1 Posts: 2Questions: 0Answers: 0
edited March 2009 in Plug-ins
I didn't see a good example of how to post changes using jEditTable. Below is my code. If anyone can suggest a better way to do it, I'd appreciate. A working example on the web can be found here.

http://www.theateronline.com/jqjEditAbleDataTable.xzc

$(document).ready(function() {
$('td.name').editable('./jqjEditableDataTable.xzc', {
name:'name'
});
$('td.state').editable('./jqjEditableDataTable.xzc', {
loadurl: './jqEditableST.xzc',
type : 'select',
submit : 'OK'
});

$('#myexample').dataTable();

});





Question Set Label
Library Department



13th Street Repertory
NY


29th Street Rep
NY


45 Below
NY

Replies

  • allanallan Posts: 61,652Questions: 1Answers: 10,094 Site admin
    Hi go4d1,

    Did you see this example: http://www.datatables.net/examples/example_editable.html

    The problem with what you have at the moment is that it isn't updating DataTables with the new data, so the search etc will use using the old data. The example above shows how it might be used while updating DataTables. Note that you will need to make the Ajax call to the server yourself using this method (not sure if jEditable can be made to still post to the server when using a callback function - possibly...).

    Allan
  • easymindeasymind Posts: 6Questions: 0Answers: 0
    edited March 2009
    [deleted]
  • jabberjabber Posts: 23Questions: 1Answers: 0
    edited March 2012
    [deleted]
This discussion has been closed.