0

I have to build a simple app, and I'm not sure if it worth to use the jQuery framework. Besides the complex or fancy applications, When is it recommended to use the jQuery and not the pure javascript.

St.Woland
  • 5,357
  • 30
  • 30
dole
  • 343
  • 2
  • 6
  • 23

4 Answers4

4

In addition to complex or fancy applications you could use jquery in applications performing cross browser DOM manipulations and AJAX and which could benefit from the hundreds of available plugins.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
3

using jquery will increase the development speed and you get the benefit of browser compatible code too.

Adeel
  • 19,075
  • 4
  • 46
  • 60
1

Besides all the facilities for writing code, I think that you should think at what you will put inside your application (i.e. plug-ins): jQuery offers a lot of useful plug-ins, both internal (calendar, tabs...) and external (e.g. jqGrid for displaying grid data). It is very helpful to have all this things in one single and standard framework (e.g. jQuery): otherwise you'll have to look each time to a different javascript plugin.

Don
  • 16,928
  • 12
  • 63
  • 101
1

It's more or less an issue of personal preference: jQuery, MooTools, Prototype and other JavaScript frameworks bridge many browser incompatibilities and simplify many of the common tasks for which JS is used, and thus shorten development time.

IMHO, if you are using JS for the usual "effects, AJAX, input widgets, pre-submit validation" tasks, a framework like jQuery is much faster and easier to use than rolling your own implementation. The drawback of loading one more script file and minding its license is negligible when compared to the flexibility and efficiency that it brings.

(also, most frameworks have plugins for various advanced tasks, but that's a bit beyond the scope of the question)

Piskvor left the building
  • 91,498
  • 46
  • 177
  • 222
  • 1
    My experience with browser incompatibilities: for the usual tasks, the switch from plain JS to jQ was "2 hours trying to make it kind-of work in IE6" to "oh wow, it works there too". Amazing support for ooold browsers. – Piskvor left the building Dec 27 '10 at 10:40