er, note to self: RTFM!    Directly from the sortables documentation page:
"In a sortable can be added new item by simply inserting the new item via
DOM and then using SortableAddItem."  embarassing!  :|

Only problem I'm having now is when I create the item, I'm adding the ID
dynamically by removing spaces from the new LIs contents.  When I do that
and attach SortableAddItem, the page wants to refresh.  If I just hard code
an ID into the SortableAddItem, all works as expected.  If I don't use
SortableAddItem, the item adds fine without page refresh but obviously I
can't sort it.  In case it's some sort of clue, I did have to add an
'onsubmit: return false;' to the form.

I put a breakpoint in with firebug (all praise firebug) right after the
.append line and right before the SortableAddItem line and it appears to be
adding to the dom correctly - in the right spot with a valid id.  (Line 45)

Any ideas?  I *really* hope this isn't as obvious.  :)


Thank you,
Will
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to