Now would be a good time to mention that:<br><br>SUSortable&gt;&gt;destory<br><br>...is a typo for...<br><br>SUSortable&gt;&gt;destroy<br><br>:-)&nbsp; Still acting on the rest of the advice.&nbsp; Thanks!<br><br>Jeremy<br><br><br><br>
<div><span class="gmail_quote">On 12/13/06, <b class="gmail_sendername">Lukas Renggli</b> &lt;<a href="mailto:renggli@gmail.com">renggli@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; After I click on a link that updates the contents, the list is no longer<br>&gt; draggable it seems.&nbsp;&nbsp;Is there something I need to do for the sortable stuff<br>&gt; to understand that the DOM has changed?<br><br>Yes, you need to remove the sortable before updating (actually it is
<br>not really necessary, but it keeps the browser fast and clean) and<br>recreate the sortable afterwards. The sortable needs this to update<br>all the assigned event handlers, the cached list of elements, etc.<br><br>You can do it with something like this:
<br><br>(html sortable<br>&nbsp;&nbsp;&nbsp;&nbsp;id: 'sortable';<br>&nbsp;&nbsp;&nbsp;&nbsp;destroy) ,<br>(html updater<br>&nbsp;&nbsp;&nbsp;&nbsp;id: 'whatever';<br>&nbsp;&nbsp;&nbsp;&nbsp;callback: [ :r | &quot; do whatever modifies the sortable &quot; ];<br>&nbsp;&nbsp;&nbsp;&nbsp;onSuccess: (html sortable<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: 'sortable')&nbsp;&nbsp; &quot; recreate the sortable (a factory method
<br>would be better) &quot;<br><br>HTH,<br>Lukas<br><br>--<br>Lukas Renggli<br><a href="http://www.lukas-renggli.ch">http://www.lukas-renggli.ch</a><br>_______________________________________________<br>Seaside mailing list
<br><a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
</a><br></blockquote></div><br>