views:

89

answers:

1

Most of the Rails books I have touch on script.aculo.us and prototype, but because the Rails framework is so large, they don't spend a lot of time going in depth on the two packages.

I really like Agile Web Development with Rails (3rd Ed.), so I was leaning towards picking up another book from Pragmatic Bookshelf specifically on script.aculo.us and prototype.

But, it is coming up on two years old, so I wanted to get the opinion of some web developers on StackOverflow. I have very little experience with JavaScript (but have done a bit of Java), so any book that also has a primer on Javascript in general would be a plus.

What book would you recommend for learning script.aculo.us?

EDIT:

It looks like jQuery is gaining a lot of steam and the references I had been learning from were a little bit behind. I also like the idea of sticking to unobtrusive javascript as a rule.

It looks like most of the jQuery resources are online and the project has been moving so quickly that books are likely to be quickly outdated. I'll play around with jRails and watch the Railscasts and go from there.

+2  A: 

If I understand you correctly the reason you're learning prototype is for use with rails? There seems to be a bit of a move away from using obtrusive js with rails so this approach will likely leave you outdated.

If you're going to get started leaning a js framework then I would seriously consider jQuery instead of prototype. There may not be too much of a difference in so far as what they can both do but the documentation and support available for jQuery is second to none.

Plus you get the added bonus of unobtrusive js.

Check out the railscasts on using jQuery with rails.

KJF
Well I figure script.aculo.us and prototype go hand in hand because script.aculo.us is built on top of prototype. Is jQuery the new recommended JavaScript package for Rails? I always thought that script.aculo.us was.
cgyDeveloper
I edited the question to remove prototype.
cgyDeveloper
@KJF so, unobtrusive js is only possible with jQuery? i've heard it all now
seengee
Yep, funny. Check out this blog post from 2006 which introduced an unobtrusive extension to prototype: http://www.danwebb.net/2006/9/3/low-pro-unobtrusive-scripting-for-prototype
robertc