Dojo DateTextBox and disabled dates

On July 23, 2014, in Javascript, by Anuj Gakhar

Dojo’s DateTextBox widget is a widget that allows typing in or chosing a date from a calendar widget. By default, it uses the Dojo Calendar as it’s popUpClass although you can give it any popUpClass you need to. Normally, the Calendar class has a “isDisabledDate” function which can be overriden to provide your own implementation […]

Tagged with:  

Dojo and IE8 Compatibility

On April 18, 2014, in Javascript, Browsers, by Anuj Gakhar

As a web developer, we all have to write cross-browser code on a day to day basis and most of the time, cross-browser really means making sure the code works in different versions of IE. IE10 and IE11 are a lot better than IE9 in terms of compatibility and the biggest challenge is usually IE8 […]

Tagged with:  

Destroying Custom Dojo Widgets

On March 13, 2014, in Javascript, by Anuj Gakhar

One of the things I learned today is that custom Dojo widgets do not completely get cleaned up if they have child widgets that have been programatically created. _WidgetBase’s internal call to destroy() or destroyRecursive() won’t completely destroy the programatically instantiated widgets and might leave some memory leaks. Consider this piece of code :- [js […]

Tagged with:  

Counter Textarea Dojo widget

On February 22, 2014, in Javascript, by Anuj Gakhar

There are probably hundreds of examples of textarea counter plugins out there (most of them jQuery though, but I wanted to write one in Dojo. The idea is quite simple, you want a textarea that takes a maxlength parameter and displays a counter of what’s available and does not let you enter more characters than […]

Tagged with:  

Disabling multi-selection in a Dijit Tree

On October 28, 2013, in Javascript, by Anuj Gakhar

The Dijit Tree component lets you select multiple options by default and there is no easy way to turn that off, or atleast none that I could find. Ideally, this should be a configurable property, byt sadly, that’s not the case. However, there is a “singular” property on the _dndSelector that would let us disable […]

Tagged with:  

Case insensitive sorting in a Dojo Store

On October 24, 2013, in Javascript, by Anuj Gakhar

Dojo has this concept of Store’s which is a uniform way of accessing and manipulating stored data. The Store API is a standard API implemented by all the different kinds of Stores (Memory, JsonRest etc). The Store’s query() function returns filtered data from the store based on passed in criteria and optionally also sorts the […]

Tagged with:  

Singletons in Dojo

On August 29, 2013, in Javascript, by Anuj Gakhar

I’ve been working with Dojo Toolkit for the past few months and I have started to like it actually. It is a full featured stack that includes core DOM manipulation, selectors, widgets, unit testing framework, build scripts, charting etc all combined into one big library. I just think it is not as widely as it […]

Tagged with:  

Book Review : Learning Dojo by Packt Publishing

On January 31, 2009, in Javascript, Books, by Anuj Gakhar

I just finished reading the Learning Dojo book, authored by Peter Svensson and published by Packt Publishing . They sent me a free review copy of the book and this is a personal and independent review of the book.

Tagged with:  

Learning Dojo

On January 18, 2009, in Javascript, by Anuj Gakhar

I have used several Javascript libraries in the past (including ExtJS, jQuery etc) and they are all pretty good in what they do. Recently, I got a chance to look into the Dojo AJAX JavaScript Toolkit and from the looks of it, it appears to be a promising and impressive toolkit. Here is a little […]

Tagged with:  
© 2011 Anuj Gakhar