GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes Jquery or Prototype Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Jquery or Prototype" Watch "Jquery or Prototype" New topic
Author

Jquery or Prototype

Aneesh Vijendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 125
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

Cheers
Aneesh
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It is really your choice, most of us here moved away from Prototype.js and went to jQuery.

Eric
Aneesh Vijendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 125
Thanks. Thats a good reply indeed.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42032
    
  64
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.


Ping & DNS - my free Android networking tools app
Aneesh Vijendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 125
Good Stuff. Thanks Ulf.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jan 10, 2002
Posts: 61310
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
anyz mick
Greenhorn

Joined: Aug 09, 2004
Posts: 15
What do you recommend between jQuery and DoJo?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Jan 10, 2002
Posts: 61310
    
  66

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

Joined: Aug 09, 2004
Posts: 15
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jquery or Prototype