javascript framework for JSON communication and DOM manipulation?

I am java developer, (using Spring-MVC) never worked much on javascript, But I would love to have ajax features like auto-complete, ajax-form-validation, 'server-backed-pagination for catalog (or grid)' in my applications.. And there are lot of frameworks like Dojo, prototype, YUI, jquery, etc. etc. so My question is.. which framework is best suited for my requirements?


  1. lightweight
  2. minimal learning curve
  3. application will return JSON
  4. need to do auto-complete, ajax-form-validation, rating

Cheers, :)


The JS Framework that's the most popular nowadays (which means it's easier to get support) is probably jQuery -- and it should be OK for what you need, I'd say.

There's documentation available on the official website :

And, of course, there are lots of people that will probably be able to help you here, on StackOverflow, if you're having difficulties -- jQuery being the 8th most used tag on SO.

And you might also want to take a look at :

For some of this you may want to check out DWR. It automagically exposes Java objects as Javascript objects and looks after the client/server communication. For some of your requirements other libraries may be suitable, but DWR is useful if you have a Java backend.

Take a look at the examples here.

I would suggest you spend a little time checking out JQuery - and JQueryUI

Why? Not only does it satisfy 90% of your requirements, but also has a thriving community of plug-ins.

Now. Is JQuery the "only" solution? No. The Microsoft AJAX client (not server) library is decent too.

ExtJS is a little heavier than jQuery, but the UI widgets it offers are very nice. It supports AJAX, JSON, auto-completion, and form validation, and the demos will quickstart your app. I like ExtJS in part because of the very attractive UIs I can create with little or no help from a graphic artist. Finally, see this discussion to see how we marry ExtJS with Spring MVC.

You should also check Dojo which is a framework for client side scripting. The difference between JQuery and Dojo is that JQuery uses plugins but Dojo already comes with everything you need. Also benchmarking shows that Dojo is usually faster then JQuery on most browsers (I can't find it right now but you can ask around at the #dojo channel on freenone).

If you are still interested in JQuery I suggest you to read this.

Need Your Help

How to create UITextField with placeholder to the left and edited text to the right?

ios objective-c uitextfield

How to create UITextField with placeholder to the left and edited text to the right?

Authorizing Requests to the Google Calendar API only once time in Java

java api google-calendar-api

I was looking in google calendar in Java API and got confused.