Hi, I had posted this before and did not hear from anyone. Hope the repost will help :-) I have a situation where I have a table embedded inside another outer table. 1: The outer table is a 3x3 grid. In row number 1 and Column 2, there is a inner table embedded which is a 4x4 grid. 2: All the cells in the outer table and inner table are marked droppable. I have a callback function that should called when we drop a image in one of the cells. But, when I drag and drop a image inside a cell in the inner-table, the callback function identifies the drop on the cell that is the outer table and not the inner-table cell where I dropped. How can I make the inner table cell to take a higher precedence to the outer table cell in the call back function? Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Is this inner table the only place where you *want* to receive drops? If so, you could look at the parameter "accept". Set a particular class on your draggable, and then add that class to the accept parameter. This will limit the droppable to only accept draggables of that class. Walter On Sep 20, 2007, at 1:28 PM, Pat Chang wrote:> How can I make the inner table cell to take a higher precedence to the > outer table cell in the call back function?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---