hi. i've created some drag and drop functionality for re-ordering a
top-ten of items in my cake admin section (cake 1.1). 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
Sortable.create in scriptaculous and not using the Ajax helper.
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 "Cake
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---