Revert after dropping a draggable, only if out of bounds

Hi, I have a div tag as a “container” for all my draggable objects… My
goal is to be able to decide whether to revert these objects based on
where they are dropped. If they are “out of bounds”, or not in the
container after they’ve been dropped, I want them to revert, otherwise,
drop normally.

I currently have a few JS functions setup that calculate the boundries
of the container, and alert me on mouseup… true if they’ve been dropped
outside of the container, and false if they’ve been dropped inside the
container.

By default, the droppable object is not set to revert… How would I go
about making this object revert only if it’s been dropped outside of the
container?

Thanks ahead of time for any help…

···

--
Posted via http://www.ruby-forum.com/.

Please, this is definitely not a question for a Ruby mailing list.

j`ey
http://www.eachmapinject.com

···

On 10/15/06, Jeremy Blah <jcsarda@gmail.com> wrote:

Hi, I have a div tag as a "container" for all my draggable objects… My
goal is to be able to decide whether to revert these objects based on
where they are dropped. If they are "out of bounds", or not in the
container after they've been dropped, I want them to revert, otherwise,
drop normally.

I currently have a few JS functions setup that calculate the boundries
of the container, and alert me on mouseup… true if they've been dropped
outside of the container, and false if they've been dropped inside the
container.

By default, the droppable object is not set to revert… How would I go
about making this object revert only if it's been dropped outside of the
container?

Thanks ahead of time for any help…

--
Posted via http://www.ruby-forum.com/\.

Jeremy Blah wrote:

Hi, I have a div tag as a “container” for all my draggable objects… My goal is to be able to decide whether to revert these objects based on where they are dropped. If they are “out of bounds”, or not in the container after they’ve been dropped, I want them to revert, otherwise, drop normally.

You would do better asking this on a JavaScript or DHTML mailing list.

···

--
James Britt

"In physics the truth is rarely perfectly clear, and that is certainly
  universally the case in human affairs. Hence, what is not surrounded by
  uncertainty cannot be the truth."
  - R. Feynman