Re: [Rails-spinoffs] creating a recycle-bin

2006-08-04 Thread Jeroen Verhagen
Thanks for all your reactions On 8/4/06, louis d walch <[EMAIL PROTECTED]> wrote: Add a DISABLED attribute to the form element and it will not be submitted. The solution that worked was either: element.innerHTML = ''; or: element.parentNode.removeChild(element); is guess setting the 'disab

RE: [Rails-spinoffs] creating a recycle-bin

2006-08-03 Thread Hill, Greg
> This would work, but the items that I want to delete also contain > textarea, so form elements that I do not want to be submitted. So > somehow i have to completely removed those elements from the DOM. Make the droppable be outside the form element, it will not get submitted then. Greg

RE: [Rails-spinoffs] creating a recycle-bin

2006-08-03 Thread louis d walch
] creating a recycle-bin Hi Tim, On 8/3/06, Tim Bellinghausen <[EMAIL PROTECTED]> wrote: > > for an project of mine I also needed an trash. I solved this with using > an as the trash and made it also an sortable and set the > "containment" property for the sortables. With t

Re: [Rails-spinoffs] creating a recycle-bin

2006-08-03 Thread Michael Peters
Tim Bellinghausen wrote: > Hi, > > for an project of mine I also needed an trash. I solved this with using > an as the trash and made it also an sortable and set the > "containment" property for the sortables. With this it is possible to > drag my items to the trash and if done so, the "onUpdat

Re: [Rails-spinoffs] creating a recycle-bin

2006-08-03 Thread Jeroen Verhagen
Hi Tim, On 8/3/06, Tim Bellinghausen <[EMAIL PROTECTED]> wrote: for an project of mine I also needed an trash. I solved this with using an as the trash and made it also an sortable and set the "containment" property for the sortables. With this it is possible to drag my items to the trash and

Re: [Rails-spinoffs] creating a recycle-bin

2006-08-03 Thread Tim Bellinghausen
Hi, for an project of mine I also needed an trash. I solved this with using an as the trash and made it also an sortable and set the "containment" property for the sortables. With this it is possible to drag my items to the trash and if done so, the "onUpdate" function sets the "display" property

[Rails-spinoffs] creating a recycle-bin

2006-08-03 Thread Jeroen Verhagen
Hi all, I'm trying to create a recycle bin for elements from a Sortable. To do that I created an (image of a recycle-bin ofcourse) and made it a Droppable. However what should I do with the element in the onDrop function of the Droppable to stop it from going back into the Sortable? How do I rem