You can do it but you'll have to have seperate draggables and droppables as well as checks to disallow drops and throw reverts if there is already an item in place. This is certainly something that you'll have to grow your own of.
I can suggest you'd want to look into creating a bunch of Divs that have the size/background colour for your cells and then absolutely (or float) positioning them where you want. Then you should add droppables to each one. Then put your draggables on the page, I think they should be children of the divs, but not sure. Then you make your draggables draggable. Dont forget about containment and the likes. This should give you something you can play with but will probably be able to drop more than one item per droppable and also it wont 'snap' So then you need to use an onDrop on the droppable to 'snap' the draggable to the correct position and also force a revert if there is an item already there. To force a revert, you'll have to study the workings of scripy and see how it tracks where an item is and 'reverse' it to say the item is somewhere else, then fire the revert function. Gareth On 7/31/07, ahmetalpbalkan <[EMAIL PROTECTED]> wrote: > > > I'm trying to do something like that: > > http://host.sonspring.com/portlets/ > > > On 29 Temmuz, 20:10, ahmetalpbalkan <[EMAIL PROTECTED]> wrote: > > Hello. I'm trying to do some drag-droppable widgets like > > Netvibes.com ... > > I'm completely looking for a code like Netvibes. How can I do that > > with Prototype or Script.aculo.us? > > > > I want to make them droppable on placeholders like netvibes. > > > > Any ideas or links? Thanks. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
