Goodbye Prototype, hello jQuery. Spent all weekend learning it For Realz™ and sorting out the various tricks needed to make it play nicely with Rails – looking forward to doing a lot more JS from now on.
Tags: javascript, technology
Goodbye Prototype, hello jQuery. Spent all weekend learning it For Realz™ and sorting out the various tricks needed to make it play nicely with Rails – looking forward to doing a lot more JS from now on.
Tags: javascript, technology
April 14th, 2009 at 2:22 am
Geez, lucky you. Sounds quick and painless.
I did the “new file” bit about six weeks ago, but I am still a fair way off being able to follow through with the “deleted” parts.
Too much AJAX and too many built-in Rails helpers still to be re-invented in jQuery for me…
April 14th, 2009 at 2:29 am
Anything but, my friend. I’m still working through the mechanics of AJAX forms. It’s a very frustrating process. And plenty of little Rails gotchas and techniques to be learned.
Still, I was never happy with the RJS way of doing things, and had used it only rarely. I’ve got some pressing tasks I need to implement in JS now, for the first time really, and so wanted to learn how to do it properly. jQuery seemed the one to learn it in.
After a whole weekend of work I’m yet to have anything at all working to my satisfaction – of course I started with a nice complex multi-level select-box query updating a results div below, which was a nightmare to set up with RJS as well, last time I did anything of the sort there. Maybe a few more hours of trial and error frigging around, and I’ll actually have my very own working reference code!
Still, really looking forward to becoming somewhat fluent in this. It’s gone from a luxury to something of a required skill, IMO, and I have plenty of things I want to implement once I can figure it out.
April 14th, 2009 at 4:52 am
Well, relatively quick and painless I think it was… if in a single weekend you got to the point where you could literally delete Prototype and Scriptaculous. I’ve been at it for six weeks now and I’m still not ready to delete (admittedly not continuously, obviously, but the changes have been hanging around half done in my worktree like an annoying relative that comes to visit, leaves all his/her stuff in the living room for weeks, and won’t go away).