Suggestion for Ajax-Framework, for RoR

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.

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
[email protected]

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
[email protected]

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.
So that, e.g. the projects-tree would look like the folders in the
windows explorer.

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
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs