My favorites | Sign in
Project Logo
                
Code license: Artistic License/GPL
Labels: jquery
Feeds:
People details
Project owners:
  noah.blumenthal

jQuery plugin transforms a normal table into an editable one. Complete control is given over which columns are editable.

Example of use

        $('table.myTable').inplacerowedit({
            url: /Some/URL',
            inputs: {
                '0': { type: 'datepicker', name: 'OpenDate' },
                '1': { type: 'datepicker', name: 'CloseDate' },
                '2': { type: 'text', name: 'Cost' },
                '3': { type: 'text', name: 'Description' }
            }
        });

What happens is that the plugin sends the data to the server and expects a JSON response -- an Array with the new data to be populated in each edited row. If there's a non-editable row, the array should have an empty element there. In the future I'll make an option to update all rows but for now it just updates the rows that you edited.

Options









Hosted by Google Code