Posts Tagged ‘dojo’

http://dojotoolkit.org/documentation/tutorials/1.9/validation/

Similar to dojox/validate, custom helper module can be written to group all custom utility functions in one place and can be used across the widgets.

http://dojotoolkit.org/documentation/tutorials/1.6/validation/demo/dijitcheck.html

https://dojotoolkit.org/reference-guide/1.9/dijit/form/ValidationTextBox-tricks.html#id1

IsValid on custom widget can be overridden to do custom validation in case of custom widgets.

Advertisements

Jquery Vs Dojo

Posted: September 25, 2013 in dojo
Tags: ,

Jquery Vs Dojo analysis w.r.t microsoft based web sites/pages …

1. http://w3techs.com/technologies/details/js-dojo/all/all – Usage statistics and market share of Dojo for websites. As per this jquery is used by many sites though it is behind the dojo w.r.t the usage by high traffic sites.
2. http://jsperf.com/mojo-of-dojo-and-jquery/61 – performance test – performance wise jquery is little better (performance test is with Jquery 1.9.1 vs dojo 1.9. Right now jquery has 1.10.2 in the market and dojo has 1.9). JQuery also got 2.0.3 which does not support IE 6/7/8 any more. In terms of releases jquery is doing better than dojo.
3. http://forum.jquery.com/topic/jquery-and-dojo-conflict – Using Jquery and dojo together is possible. This is the post by IBM websphere portal team. Only overhead is 100 kb extra page load when we use the dojo libraries along with jquery.
http://api.jquery.com/jQuery.noConflict/
http://dojo-toolkit.33424.n3.nabble.com/Using-jQuery-and-Dojo-together-td2266683.html
4. http://tech.yes-co.nl/2009/08/25/jquery-versus-dojo-versus-yui/ – dojo is a framework and jquery is a library. Framework is better than library as it has better and reusable behaviors like built-in design patterns out of the box + all the functionality is proven and well accepted by everyone. Jquery has plug-ins but all plug-ins are not verified.
5. JQuery has built-in support in visual studio (Intellisense … etc) and people from microsoft world generally do not use frameworks like dojo as microsoft itself provides built-in support for many client side requirements like minification, bundling, async loading of sripts, controls … etc
6. http://www.collabera.com/blog/default/2013/03/25/1364193119605.html – dojo vs Jquery mobile which one to use – dojo shines for small to complex apps and good for mobile.

To summarize, both jquery and dojo are good. To simply say JQuery is like .net and dojo is like java. So JQuery is simple to use, less code, better speed and seemlessly integrates with asp.net web / mvc pages where as dojo needs some learning / tweaking / experimenting to achieve easy scalable web pages using built-in solutions. Dojo is ideal for large scale / high traffic web sites.

It may be good idea to start using/experimenting dojo with any new web page or mobile app as jquery mobile is still in beta (though lot of apps built using jquery).

Other dojo based links …

http://dojotoolkit.org/features/
http://net.tutsplus.com/tutorials/javascript-ajax/10-reasons-why-your-projects-should-use-the-dojo-toolkit/ – 10 reason why to use dojo
http://www.sitepen.com/blog/2010/11/15/from-jquery-to-large-applications/
http://www.overclock.net/t/1419234/convert-dojo-api-xml-to-stub-api-js-for-vs2012-intellisense – to get intellisence for dojo in visual studio