DataTables + jEditAble - Post from table to server! $100 Donation for AJ
DataTables + jEditAble - Post from table to server! $100 Donation for AJ
The demo that combines datatables.js with jEditAble.js athttp://www.datatables.net/examples/example_editable.html is not ready for prime time.
As a database developer, I think this union is fantastic. I'll make a $100 donation to both jEditAble and Datatables if we can get a professional implementation of these two features.
I created a demo
at http://www.theateronline.com/jqjeditableDataTable.xzc
which uses the ID tag in the TD element to identify field name and primary key. It's working partially. The problem is identified by allan here:
http://datatables.net/forums/comments.php?DiscussionID=20&page=1#Item_2
My javascript/jquery skill are somewhat limited. So help me get this right and support two great Plug In developers while contributing to a new solution.
As a database developer, I think this union is fantastic. I'll make a $100 donation to both jEditAble and Datatables if we can get a professional implementation of these two features.
I created a demo
at http://www.theateronline.com/jqjeditableDataTable.xzc
which uses the ID tag in the TD element to identify field name and primary key. It's working partially. The problem is identified by allan here:
http://datatables.net/forums/comments.php?DiscussionID=20&page=1#Item_2
My javascript/jquery skill are somewhat limited. So help me get this right and support two great Plug In developers while contributing to a new solution.
This discussion has been closed.
Replies
I guess I have a working demo on Monday.
I've updated my jEditable example to make use of the 'callback' parameter that jEditable (which you are quite right is an awesome plug-in for jQuery) to update DataTables when the Ajax call completes. Check it out here: http://www.datatables.net/examples/example_editable.html
My server-side script doesn't do very much, it simply appends '(server updated') to the string and returns (in order to indicate that something has happened on the server. Once done, all the filtering etc that DataTable provides works as expected.
Let me know how that fits for you.
Regards,
Allan
http://naspinski.net/post/Inline-editing-with-DB-write--REAL-AJAX-with-AspNet-Series.aspx - this builds on this tutorial:
http://naspinski.net/post/GridView-SortingPaging--REAL-AJAX-with-AspNet-Series.aspx
It is using asp.net, but the javascipt is backend indifferent.