Re: [jQuery] PLUGIN: In place AJAX editing of TableSorter
OK! Plugin has been updated to; A) Only update changed columns B) Work with HTML Form elements (input[checkbox/radio/text],select,textarea) C) Not crash IE If anyone has any comments or suggestions, I'm all ears. Demo page: http://dev.iceburg.net/jquery/tableEditor/demo.php ~ Brice -- View this message in context: http://www.nabble.com/PLUGIN%3A-In-place-AJAX-editing-of-TableSorter-tf2506135.html#a7008407 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] PLUGIN: In place AJAX editing of TableSorter
Would it be possible to have something check if a field has been modified, before saving it? Dan, Sounds good enough. I'll update it so that it only serializes changed fields, and if the serialized array is empty, no AJAX request will be sent. Now... if only I could work through some of these bugs ;) ~ Brice -- View this message in context: http://www.nabble.com/PLUGIN%3A-In-place-AJAX-editing-of-TableSorter-tf2506135.html#a6996986 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] PLUGIN: In place AJAX editing of TableSorter
Hey! I really like this! Would it be possible to have something check if a field has been modified, before saving it? That way, you're not needlessly updating information for a value that hasn't changed. Cheers. Brice Burgess wrote: > > jQ gurus -> > > I've been working on a plugin for Christian Bach's tablesorter that we > all hold so dearly ;) It's actually my first "real" jQ plugin, and as > such, there's a few technical hurdles I'm facing. > > For starters; I'm not quite sure the architecture of the plugin is > SANE. I've run across an issue in IE (Safari NOT tested -- FF 1.5 works > fine) where it seems that calling $.unbind() on an element & then > rebinding the same event (click) causes IE to loop execution of the > event? If anyone could peep over my code & provide comments on > fixes/improvements I'd feel a lot better! :) > > I've made a "simple demonstration page" for the IE unbind issue; > http://dev.iceburg.net/jquery/tableEditor/rebind.html (view source) > > And for those that are curious to see in place editing of a > tableSorter table, I've put up a demo page; > http://dev.iceburg.net/jquery/tableEditor/demo.php > > Here's an outline of behavior from the demo page > > --- > On table load, assign an "edit" event to all elements matching the > configurable EVENT_LINK selector (by default; all table cell links of > class "tsEditLink"). > > When "edit" event is called, sorting table(s) is disabled and calling > row's cells become editable. The calling "edit" event link is then > replaced by a "save" event > > When "save" event is called, the datasource is updated through AJAX*, > sort cache is cleared on table(s), sorting is re-enabled, and an "edit" > event replaces the "save" event on the calling link > > * Input in the row is serialized. Rows are assigned a KEY (configurable > through ROW_KEY_SELECTOR) which is likely associated with a File line > number or Database primary key. Cells/Columns are assigned a name > (configured via the table header[] tags) which are likely associated > with Database column names or CSV File cell IDs/#s > > > > Please bear in mind that this is still a work in progress, and is > rather kludgey at this time. I'd like to work with Christian on more > elegant integration with tableSorter if possible. > > > Anyway, it has been awhile -- long time no talk! > > I hope to find all you well, > > ~ Brice Burgess > > > ___ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > -- View this message in context: http://www.nabble.com/PLUGIN%3A-In-place-AJAX-editing-of-TableSorter-tf2506135.html#a6988874 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] PLUGIN: In place AJAX editing of TableSorter
Brice Burgess schrieb: > jQ gurus -> > > I've been working on a plugin for Christian Bach's tablesorter Cool! I think this is the first plugin for a plugin :-) -- Klaus ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
[jQuery] PLUGIN: In place AJAX editing of TableSorter
jQ gurus -> I've been working on a plugin for Christian Bach's tablesorter that we all hold so dearly ;) It's actually my first "real" jQ plugin, and as such, there's a few technical hurdles I'm facing. For starters; I'm not quite sure the architecture of the plugin is SANE. I've run across an issue in IE (Safari NOT tested -- FF 1.5 works fine) where it seems that calling $.unbind() on an element & then rebinding the same event (click) causes IE to loop execution of the event? If anyone could peep over my code & provide comments on fixes/improvements I'd feel a lot better! :) I've made a "simple demonstration page" for the IE unbind issue; http://dev.iceburg.net/jquery/tableEditor/rebind.html (view source) And for those that are curious to see in place editing of a tableSorter table, I've put up a demo page; http://dev.iceburg.net/jquery/tableEditor/demo.php Here's an outline of behavior from the demo page --- On table load, assign an "edit" event to all elements matching the configurable EVENT_LINK selector (by default; all table cell links of class "tsEditLink"). When "edit" event is called, sorting table(s) is disabled and calling row's cells become editable. The calling "edit" event link is then replaced by a "save" event When "save" event is called, the datasource is updated through AJAX*, sort cache is cleared on table(s), sorting is re-enabled, and an "edit" event replaces the "save" event on the calling link * Input in the row is serialized. Rows are assigned a KEY (configurable through ROW_KEY_SELECTOR) which is likely associated with a File line number or Database primary key. Cells/Columns are assigned a name (configured via the table header[] tags) which are likely associated with Database column names or CSV File cell IDs/#s Please bear in mind that this is still a work in progress, and is rather kludgey at this time. I'd like to work with Christian on more elegant integration with tableSorter if possible. Anyway, it has been awhile -- long time no talk! I hope to find all you well, ~ Brice Burgess ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/