I have an HTML table I am trying to "retro-fit" with a sortable such that a cell in one column/row and be moved to another. What I have tried in tyerms of formatting looks akin to: <div id="schedule"> <table> <tr> <td><div id="one">Some Text</div></td> <td><div id="two"></div></td> <td><div id="three"></div></td> </tr> </table> </div> And the declaration: Sortable.create(''schedule'', {tag:''div'',ghosting:true,constraint:false}); So, essentially, I am trying to pick up the <div> tags inside of the main div. Three questions: 1) Can a Sortable be built on like tags (div containing divs)? 2) Can a sortable pick up on tags nested in HTML tables? 3) Is there a better way to approach this retro-fitting nightmare? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
can you approach it in such a way as to remove the table from the html? aka make a bunch of divs look like a table. On 8/26/07, Steve <Steve.Repp-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I have an HTML table I am trying to "retro-fit" with a sortable such > that a cell in one column/row and be moved to another. > > What I have tried in tyerms of formatting looks akin to: > > <div id="schedule"> > <table> > <tr> > <td><div id="one">Some Text</div></td> > <td><div id="two"></div></td> > <td><div id="three"></div></td> > </tr> > </table> > </div> > > And the declaration: > Sortable.create(''schedule'', > {tag:''div'',ghosting:true,constraint:false}); > > So, essentially, I am trying to pick up the <div> tags inside of the > main div. Three questions: > > 1) Can a Sortable be built on like tags (div containing divs)? > 2) Can a sortable pick up on tags nested in HTML tables? > 3) Is there a better way to approach this retro-fitting nightmare? > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
So, are you meaning that the table approach will not work? If so, I am assuming that a main div container containing subdivs can work. Correct? On Aug 26, 9:34 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> can you approach it in such a way as to remove the table from the html? > > aka make a bunch of divs look like a table. > > On 8/26/07, Steve <Steve.R...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > > I have an HTML table I am trying to "retro-fit" with a sortable such > > that a cell in one column/row and be moved to another. > > > What I have tried in tyerms of formatting looks akin to: > > > <div id="schedule"> > > <table> > > <tr> > > <td><div id="one">Some Text</div></td> > > <td><div id="two"></div></td> > > <td><div id="three"></div></td> > > </tr> > > </table> > > </div> > > > And the declaration: > > Sortable.create(''schedule'', > > {tag:''div'',ghosting:true,constraint:false}); > > > So, essentially, I am trying to pick up the <div> tags inside of the > > main div. Three questions: > > > 1) Can a Sortable be built on like tags (div containing divs)? > > 2) Can a sortable pick up on tags nested in HTML tables? > > 3) Is there a better way to approach this retro-fitting nightmare?- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Honestly, I have no idea if it will work or not, i''m thinking probably not as you have your div''s buried inside a table, a tr and a td. tag V1.0 <http://wiki.script.aculo.us/scriptaculous/show/V1.0> li Sets the kind of tag (of the child elements of the container) that will be made sortable. For UL and OL containers, this is ''LI'', you have to provide the tag kind for other sorts of child tags. someone who is more knowledgeable about sortables will probably have a better answer. ah wait.... you need to make the divs inside the TDs sortables... and remove the "schedule" sortable.. then you can drag & drop between the many sortables. of course this could make the backend code a right pain in the arse, but those are the only two ideas my limited experience can come up with. On 8/27/07, Steve < Steve.Repp-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > So, are you meaning that the table approach will not work? If so, I am > assuming that a main div container containing subdivs can work. > Correct? > > > > On Aug 26, 9:34 pm, "Brian Williams" <brianw1...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > can you approach it in such a way as to remove the table from the html? > > > > aka make a bunch of divs look like a table. > > > > On 8/26/07, Steve <Steve.R...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > wrote: > > > > > > > > > > > > > I have an HTML table I am trying to "retro-fit" with a sortable such > > > that a cell in one column/row and be moved to another. > > > > > What I have tried in tyerms of formatting looks akin to: > > > > > <div id="schedule"> > > > <table> > > > <tr> > > > <td><div id="one">Some Text</div></td> > > > <td><div id="two"></div></td> > > > <td><div id="three"></div></td> > > > </tr> > > > </table> > > > </div> > > > > > And the declaration: > > > Sortable.create(''schedule'', > > > {tag:''div'',ghosting:true,constraint:false}); > > > > > So, essentially, I am trying to pick up the <div> tags inside of the > > > main div. Three questions: > > > > > 1) Can a Sortable be built on like tags (div containing divs)? > > > 2) Can a sortable pick up on tags nested in HTML tables? > > > 3) Is there a better way to approach this retro-fitting nightmare?- > Hide quoted text - > > > > - Show quoted text - > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Well I got working a sortable tree using tag:''tr'' but it''s little bit strangely acting. After for nested tags into table, this sound much more tricky. Hope this help, -- Sebastien Grosjean - ZenCocoon On Aug 27, 6:01 am, Steve <Steve.R...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I have an HTML table I am trying to "retro-fit" with a sortable such > that a cell in one column/row and be moved to another. > > What I have tried in tyerms of formatting looks akin to: > > <div id="schedule"> > <table> > <tr> > <td><div id="one">Some Text</div></td> > <td><div id="two"></div></td> > <td><div id="three"></div></td> > </tr> > </table> > </div> > > And the declaration: > Sortable.create(''schedule'', > {tag:''div'',ghosting:true,constraint:false}); > > So, essentially, I am trying to pick up the <div> tags inside of the > main div. Three questions: > > 1) Can a Sortable be built on like tags (div containing divs)? > 2) Can a sortable pick up on tags nested in HTML tables? > 3) Is there a better way to approach this retro-fitting nightmare?--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---