daoustmark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-29 22:18 UTC
Sortable List Items Within Table Cells...
Hello, I am working on a calendar which will have list elements in it. I am having a problem making the list elements sortable...here is a sample of the HTML: <tr> <td id="november19" class="CalendarDay"><p>19</p></td> <td id="november20" class="CalendarDay"><p>20</p></td> <td id="november21" class="CalendarDay"><p>21</p></td> <td id="november22" class="CalendarDay"><p>22</p></td> <td id="november23" class="CalendarDay"><p>23</p> <ul id="list1"> <li><a href="#">Event1</a></li> <li><a href="#">Event2</a></li> </ul> </td> <td id="november24" class="CalendarDay"><p>24</p> <ul id="list2"> <li id="article5" class="sortable"><a href="#">Event4</a></li> </ul> </td> <td id="november25" class="CalendarDay"><p>25</p></td> </tr> If I just use the id''s in the ''ul'' tag, I have no problem making things sortable, but I want to be able to drag list elements to empty table cells. For example, I want to drag Event 4 into the cell for November 20th... Any suggestions? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
<%= drop_receiving_element "November20", :update => "update_id", :url => { :action => "anyaction" }, :accept => "Event4", :hoverclass => ''hover'', :complete => "new Effect.Highlight(''November20'');return false;" %> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
daoustmark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Nov-30 15:29 UTC
Re: Sortable List Items Within Table Cells...
Thanks, but I''m actually not using Ruby - I''m using PHP (I know this is a Ruby spin-off group, but its the only Scriptaculous discussion I can find) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---