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
<ahmetalpbalkan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> I''m trying to do something like that:
>
> http://host.sonspring.com/portlets/
>
>
> On 29 Temmuz, 20:10, ahmetalpbalkan
<ahmetalpbal...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---