hi. i've created some drag and drop functionality for re-ordering a
top-ten of items in a mysql database from php. this works fine but i
want to make the item being dragged a different colour. i've tried the
ghosting option but this isnt giving me enough contrast. i'm using
Sortaable.create in scriptaculous. anyone know how to do this? So far
I have:
<script type="text/javascript">
Sortable.create('item_list', {constraint:'vertical',onUpdate :
updateOrder, ghosting:true, handle: 'dragger'});
function updateOrder(){
var options = {
method : 'post',
parameters : Sortable.serialize('item_list')
};
new Ajax.Request('/toptens/update', options);
}
function refresh() {
window.location.reload( true );
}
</script>
I have tried using onChange and hoverclass but could not get this to
work.
any ideas?
thanks,
lukemack.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---