Ok, and are you sure that when you defined the draggable in the first place
that you assigned it to a member variable of the element? Like this?
$('elemento').draggable = new Draggable($('elemento'), {... } );
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Garito
Sent: Saturday, March 11, 2006 7:29 AM
To: [email protected]
Subject: Re: [Rails-spinoffs] Question abour Draggables & Droppables
Ryan Gahl escribió:
>> Hi!
>>
>
>
>> I read these threat but draggableElement.draggable.options.revert =
>> false; doesn't work
>>
>
>
>> the error is: draggableElement.draggable has no properties
>>
>
>
>> Any Idea?
>>
>
>
>> Thanks!
>>
>
>
>> --
>> Mis Cosas
>> http://blogs.sistes.net/Garito/
>>
>
>
> Mis, Can we please see the rest of the code so we can put your question
> into better context to try to troubleshoot your problem?
>
>
> PS: A couple people on this list now have called me out as being a
> notorious "top-poster". I just want to let everyone know that I
> apologize if my posting style has not conformed to the group's
> preferences, and I'm changing my ways :-)
>
> The information transmitted in this electronic mail is intended only for the
> person or entity to which it is addressed and may contain confidential,
> proprietary, and/or privileged material. Any review, retransmission,
> dissemination or other use of, or taking of any action in reliance upon,
> this information by persons or entities other than the intended recipient
> is prohibited. If you received this in error, please contact the sender and
> delete the material from all computers.
>
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
Sure!
this is the complete options for the droppable I'd used:
var opciones_papelera = {
hoverclass: "PapeleraSeleccionada",
onDrop: function(elemento, contenedor)
{
//elemento.draggable.options.revert = false;
var id = elemento.id.split("_")[1]
if( confirm("Borro " + id + "?") )
{
Notificar("Borrando " + id + "...", 1)
var ajax = new Ajax.Request(elemento.getAttribute("borraren"), {
onSuccess: function()
{
Element.remove(elemento.id)
Notificar("Se ha borrado " + id, 0)
},
on204: function()
{
padre = elemento.parentNode
var ajaxSinDatos = new Ajax.Adder(padre.id,
padre.getAttribute('sindatos'))
Element.remove(element.id)
Notificar("Se ha borrado " + id + ". No hay datos", 0)
},
onFailure: function()
{
//elemento.draggable.options.revert = true;
Notificar("No se ha borrado " + id, 0)
}
}
)
}
},
}
If I uncomment this line:
//elemento.draggable.options.revert = false;
javascript raises the error
Thanks!
--
Mis Cosas
http://blogs.sistes.net/Garito/
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs