On Wednesday 14 June 2006 13:34, Samuel DeVore wrote:
> I have a page that I have been tasked with adding sortable support to, and
> the div elements that are being dragged have a <a href> in them with an
> onClick handler that opens a new window with a preview.  Is there a way to
> keep that onCLick from firing when a sortable is dropped?

not easily.

you'd have to make your onclick events aware of the fact that there's a 
draggable underneath them, and you'd also probably want to make all of the 
links inside the draggable aware of the draggable as well.

My advice on this would be to use the handle: option and specify a part of 
your div as a handle for the user to grab and drag around with.

-Jeremy

-- 
Jeremy Kitchen ++ [EMAIL PROTECTED]

http://www.pirate-party.us/ -- defend your rights

Attachment: pgp06wHtqC0nl.pgp
Description: PGP signature

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

Reply via email to