I would like to replace a sortable list in a div container by some
other element when onUpdate is called. Clearly there is a problem
because the list item is still moving when the list has already been
replaced. Does anyone know how I can get around this problem?
This example causes IE 5.55 and IE 6.0 to throw a javascript error
(missing object - I guess in dragdrop.js)
Sortable.create(
'list',
{
onUpdate: function() {
Sortable.destroy('list');
$('dest').update('no more list - just text!');
// -> IE 5.55 and IE 6.0 -> javascript error
}
}
)
<div id="dest">
<ul id="list">
<li id="item_1">item 1</li>
<li id="item_2">item 2</li>
</ul>
</div>
thanks 'boe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---