I am not sure about the Js Helper... but the jQuery data api stores 
key/value pair data in the actual object. So, as you create the draggable 
object, you need to add the data, just as you are trying to access it.

So, if you are doing a $('div_1').draggable({options});
You need to also add a $('div_1').draggable({options}).data('key','value') 
setter.
Then when you drop it... that element object still has that data set.

The other thing that is mind bending about working with draggable and 
droppable elements is making sure that you are access the right object. So, 
just do some sanity checks to make sure you are operating on the object you 
think you are operating on.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to