Re: [Proto-Scripty] Issue with droppable and an element that has more than one class name

2010-04-28 Thread Guillaume Lepicard
hi,

as far as i can remember, the accept option has to be in a selector syntax:
try
new Draggable ('draggable', {revert: 'failure', accept: '.dropme'});
or
Droppables.add(audience-element-0, {accept: '.Social', onDrop:
this.dropElement});
On Tue, Apr 27, 2010 at 10:47 PM, Jangla  wrote:

> If I have this code:
>
> drag me
> drop here
>
> 
> new Draggable ('draggable', {revert: 'failure', accept: 'dropme'});
> Droppables.add ('droppable');
> 
>
> I would expect the dropped element to be accpeted by the droppable but
> it's not for some reason. Can anyone help me out on this? I have some
> rather more complex code that results in a div element with the class
> names "audience-element" and  "Social" like so:
>
>  style="top: 0pt; left: 0pt; z-index: 0;">
>
> As far as I can tell, if I define my droppable like so:
>
> Droppables.add(audience-element-0, {accept: 'Social', onDrop:
> this.dropElement});
>
> ... then this should successfully drop onto the target element and
> stay therebut it doesn't :(
>
> Help!!! :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prototype & script.aculo.us" group.
> To post to this group, send email to
> prototype-scriptacul...@googlegroups.com.
> To unsubscribe from this group, send email to
> prototype-scriptaculous+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/prototype-scriptaculous?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] Issue with droppable and an element that has more than one class name

2010-04-27 Thread Jangla
If I have this code:

drag me
drop here


new Draggable ('draggable', {revert: 'failure', accept: 'dropme'});
Droppables.add ('droppable');


I would expect the dropped element to be accpeted by the droppable but
it's not for some reason. Can anyone help me out on this? I have some
rather more complex code that results in a div element with the class
names "audience-element" and  "Social" like so:



As far as I can tell, if I define my droppable like so:

Droppables.add(audience-element-0, {accept: 'Social', onDrop:
this.dropElement});

... then this should successfully drop onto the target element and
stay therebut it doesn't :(

Help!!! :)

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.