Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jquery or Prototype

 
Aneesh Vijendran
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I am starting a new Project. There would be substantial use of Ajax.

Which Ajax framework would you recommend?. JQuery or Prototype.
Or would you suggest something different?

Cheers
Aneesh
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is really your choice, most of us here moved away from Prototype.js and went to jQuery.

Eric
 
Aneesh Vijendran
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Thats a good reply indeed.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you aren't familiar with either, and don't have an installed base of code for either, go with jQuery. For some of my stuff I started out using Prototype, and it does everything I'm looking for in a JavaScript library (along with Scriptaculous for some visual effects), so I never saw the need to make the switch. But if I were to start now, I'd go with jQuery as well.
 
Aneesh Vijendran
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good Stuff. Thanks Ulf.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, I don't have a strong bias towards one or the other anymore. I'd play with both and see which fits your style of JavaScript programming, what the rest of the people on your team like, and so on.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64835
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As someone who's written a book on each technology, I feel uniquely qualified to comment. At this stage, Prototype is a dinosaur. It's tried valiantly to keep up, but its origin in trying to make JavaScript look like Ruby, and its intrusiveness into the page make it a distant second to jQuery, in my opinion.

 
anyz mick
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you recommend between jQuery and DoJo?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He'll say jQuery.

Recent Dojo versions are actually quite good, but it's also a steeper learning curve.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64835
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While I haven't written a Dojo book, I did do a technical review of one. David is right, though Dojo is not a bad library, I'd still recommend jQuery as I prefer its approach. Dojo is a bit heavy for my tastes.

But ultimately, it depends upon your own needs and approach you prefer.
 
anyz mick
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for very helpfull replies. Time to learn new library in our project is very crusial and we are looking for easy to use library. So jQuery will be our obvious choice if its learning curve is less than that of DoJo. I'm also evaluating jMaki, a wraper on various Ajax based libraries. I think it will lot easy to work with wraper classes as compared with scripting everything (yes it loses certain control over widgets and less flexible.) jMaki at time is not providing wideges from jQuery but it is wraping many others. So if we find our required widget jMaki should be OK. I will take a detailed look into jMaki.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic