Thank you for the reply Kjell.
I've added some stuff inline:

On 6/24/06, Kjell Bublitz <[EMAIL PROTECTED]> wrote:
Hello

> 1- I need to have the elements in the palette snap to a "grid"inside
> of it.  Same thing when it gets dropped into the form.  I guess it
> would be tricky not having specific x/y points because there is no
> specific place in the form where elements must go or how they would be
> layout out.


You don't have to worry about X/Y. Scriptaculous dragdrop.js handles all
that. The actually "targeting" is performed by the elements (div). There is
no limit in depth, layout or anything else.

How would I define where elements can be placed.  I used snap and
understand how that works. What if I have a box, a div , can I make it
so the element can only be dropped into the box or back to it's
original place ? I'm guessing that I would use the containment option
but unsure who to use it. Right now I have a form where I want to drop
the elements. I did a droppable add but not sure if I see anything
happening differently.

3- Last tricky thing is I'd like a way to replenish the palette, so
> when a text field gets used another would appear.


I don't understand what a pallete is. Neither what replenish means (i'm
german, pardon), but about the reappearing i can tell that this is quiet
easy too.

I forgot the name, but there is a option for this within the "Draggable"
class .. if the draggable option is set to true the textfield will work as
"pile" wherefrom users can drag unlimited textfields from (or whatever you
set as draggable). If they drop the current object on a defined 'droppable'
the "onDrop" event is your friend to work further with this new type of user
input (as described above)

I looked at clone but that only clones until element is released, then
clone is destroyed I believe.

Stuart
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to