Forum: Ruby on Rails Which JS/Ajax library to use with RoR

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F50f5d582d76f98686da34917531fe56?d=identicon&s=25 Peter Szinek (Guest)
on 2006-05-24 12:12
(Received via mailing list)
Hello,

I am beginning to soak myself into JS/Ajax stuff and I am quite confused
because of the myriad of AJAX books/frameworks - Its even worse than RoR
in this sense (i.e. in the case of RoR, half of the people are writing
books on it, and i believe this value is even higher with AJAX ;-) Of
course this is not a bad thing, but if a newbie has to choose something
it can be really hard.
So my questions:
1) Which book should i buy on AJAX, preferably with as much Ruby/Rails
examples/orientation as possible. Is the pragmatic book on Ajax OK?
2) Which framework should i use? Prototype seems logical to me because
also script.aculo.us is using it. Is it OK or do you recommend to use
something else?

Basically i need the JS/Ajax knowledge to do the following thing from
Rails:
1) A DB has a lots of rows
2) I want to trigger a code (e.g. by clicking a button) which does
something with these records. The process is very time consuming, so i
will use an AJAX request to run it in the background
3) Update the page from where the action was triggered say every 10
seconds with the partial results

Can you point me to a tutorial which does something like this? Probably
this is quite basic and i could find something myself, but i would like
to hear your opinion on the framework etc.

Thx,
Peter
3d333b0012928f3dd5a6861cb09ad683?d=identicon&s=25 Guest (Guest)
on 2006-05-24 14:41
I think Rails uses Prototype and script.aculo.us...
I think the helpers and RJS tenplates do most the writing for you?
Fa1f6d9c0f7c529554bfefb91996924c?d=identicon&s=25 �杰 (Guest)
on 2006-05-24 20:10
(Received via mailing list)
This topic is locked and can not be replied to.