# Suggestion for Ajax-Framework, for RoR

**URL:** <https://www.ruby-forum.com/t/suggestion-for-ajax-framework-for-ror/181514>\
**Category:** Rails\
**Created:** [January 13, 2010, 12:19am UTC](https://www.ruby-forum.com/t/suggestion-for-ajax-framework-for-ror/181514 "2010-01-13T00:19:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sushi2k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4491bb/32.png) [@sushi2k](https://www.ruby-forum.com/u/sushi2k)\
**Post date:** [January 13, 2010, 12:19am UTC](https://www.ruby-forum.com/t/suggestion-for-ajax-framework-for-ror/181514/1 "2010-01-13T00:19:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sushi2k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4491bb/32.png) [@sushi2k](https://www.ruby-forum.com/u/sushi2k)\
**Post date:** [January 13, 2010, 12:49am UTC](https://www.ruby-forum.com/t/suggestion-for-ajax-framework-for-ror/181514/2 "2010-01-13T00:49:48Z")

</div>

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](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![sushi2k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4491bb/32.png) [@sushi2k](https://www.ruby-forum.com/u/sushi2k)\
**Post date:** [January 13, 2010, 2:13am UTC](https://www.ruby-forum.com/t/suggestion-for-ajax-framework-for-ror/181514/3 "2010-01-13T02:13:43Z")

</div>

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](http://www.marnen.org)  
> removed\_email\_address@domain.invalid

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.

---

<div class="post-metadata">

**Author:** ![sushi2k](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/4491bb/32.png) [@sushi2k](https://www.ruby-forum.com/u/sushi2k)\
**Post date:** [January 13, 2010, 5:32pm UTC](https://www.ruby-forum.com/t/suggestion-for-ajax-framework-for-ror/181514/4 "2010-01-13T17:32:53Z")

</div>

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](http://www.marnen.org)  
removed\_email\_address@domain.invalid
