Hello, I have build a table called Project, in RoR with Nested Sets (this means the table has a parent_id, lft and rgt). This table has now several records of projects, that I have inserted via the console, and with the methods provided by the plugin acts_as_netsed_set. What I wanna do now is, to create a treeview of the project table with a JavaScript Library. I''ve looked at ExtJS, but I think this is too heavy for my requirements. I just need to create a tree and to every item in the tree, I need 4 links (maybe through columns, so that every link is in another column), because every item should point to 4 different pages with details of the project. Does anyone know a good Ajax-Framework that is small and supports things like this? Thank you very much. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
sushi 2k wrote:> Hello, > I have build a table called Project, in RoR with Nested Sets (this means > the table has a parent_id, lft and rgt). > This table has now several records of projects, that I have inserted via > the console, and with the methods provided by the plugin > acts_as_netsed_set. > What I wanna do now is, to create a treeview of the project table with a > JavaScript Library. I''ve looked at ExtJS, but I think this is too heavy > for my requirements. > I just need to create a tree and to every item in the tree, I need 4 > links (maybe through columns, so that every link is in another column), > because every item should point to 4 different pages with details of the > project. > Does anyone know a good Ajax-Framework that is small and supports things > like this? > Thank you very much.Why do you want to do this on the client side in the first place? You should be able to generate suitable HTML with Rails and display the info you''re describing without needing Ajax. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. --0015174c3ff23505b4047d004f0c Content-Type: text/plain; charset=ISO-8859-1 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --0015174c3ff23505b4047d004f0c--
Marnen Laibow-Koser wrote:> sushi 2k wrote: >> Hello, >> I have build a table called Project, in RoR with Nested Sets (this means >> the table has a parent_id, lft and rgt). >> This table has now several records of projects, that I have inserted via >> the console, and with the methods provided by the plugin >> acts_as_netsed_set. >> What I wanna do now is, to create a treeview of the project table with a >> JavaScript Library. I''ve looked at ExtJS, but I think this is too heavy >> for my requirements. >> I just need to create a tree and to every item in the tree, I need 4 >> links (maybe through columns, so that every link is in another column), >> because every item should point to 4 different pages with details of the >> project. >> Does anyone know a good Ajax-Framework that is small and supports things >> like this? >> Thank you very much. > > Why do you want to do this on the client side in the first place? You > should be able to generate suitable HTML with Rails and display the info > you''re describing without needing Ajax. > > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.orgYes, I know. But with an Ajax Gui, the usability would be better for the users. And only the parts that are opened would be loaded. So that, e.g. the projects-tree would look like the folders in the windows explorer. -- Posted via http://www.ruby-forum.com/. --000325558e165dc6c3047d017b92 Content-Type: text/plain; charset=ISO-8859-1 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --000325558e165dc6c3047d017b92--
sushi 2k wrote: [...]> Yes, I know. But with an Ajax Gui, the usability would be better for the > users. And only the parts that are opened would be loaded.Unless you have a very big tree (i.e. more than a couple hundred items), this will probably degrade performance. Better to fetch all the data at once.> So that, e.g. the projects-tree would look like the folders in the > windows explorer.Yes, you can still do that. But I think you should do it client-side without Ajax. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. --0015175cad8c95c154047d0e5227 Content-Type: text/plain; charset=ISO-8859-1 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --0015175cad8c95c154047d0e5227--