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[<th>] 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
[email protected]
http://jquery.com/discuss/