Select to view content in your preferred language

JQuery

914
4
04-26-2010 06:20 AM
ErikNyberg
Deactivated User
Hi,
Microsoft seems to push JQuery quite hard now as a JS library with neat integration in Visual Studio and a lot of good work involved with the JQuery community.
Will we see a ESRI JavaScript API version for JQuery at some point (since ESRI seems to usually follow MS) or will Dojo be the way forward?

What are the benefits using Dojo over JQuery?

Thanks,
Erik
0 Kudos
4 Replies
JoelMartinez
Emerging Contributor
I second the motion for jQuery to be the driving force behind the JavaScript API.  The Dojo library itself is quite large... while the jQuery library is much more supported and concise.  Syntactically jQuery is much cleaner.  I will say I like the Dojo dependency management (e.g., dojo.require('esri.map');), this is not a built in feature of jQuery yet.  Although, I was just at the jQuery conference last weekend and they said it's something they plan on integrating in the future.
0 Kudos
nicogis
MVP Alum
I think that it was chosen mainly for gfx and dijits. However the choice must be contextualized when it was done now can open new scenarios.
0 Kudos
AlessioDi_Lorenzo
Emerging Contributor
I think that it was chosen mainly for gfx and dijits. However the choice must be contextualized when it was done now can open new scenarios.


I love jQuery and I work with it when using Google Maps extensions or other mapping libraries (OpenLayers),  but I think a real alternative to Dojo would be ExtJS more than jQuery.

Both ExtJS and Dojo include all components (layout, grid, trees, etc.) in one project, developed and mantained by the same people.
This is not true for jQuery: you can build great user iterface but you have to put together widget and plugins from different source, with different behaviour and not always compatible with each other.

This was, for example, one of the reasons at the base of the Mapfish preference for ExtJS.
0 Kudos
deleted-user-Jie3eyjOl9XM
Deactivated User
Any more comments on any problems with JQuery? I much prefer it to Dojo, but I'm glad that we have choices. Since we already use JQuery in our .Net development, I don't want to mix in yet another framework, let alone adding Ext JS.

Looking at this article,
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/framework_jquery.html
there seems to be some Dojo/Jquery mixing involved, which seems a little inefficient, and makes me a little nervous.
0 Kudos