Partial Borders with CSS

On July 28, 2014, in Web Development, by Anuj Gakhar

There is no such thing as border-length in CSS, which would have made this really easy to do. But anyway, if you want to have partial borders (a border that spans only half the length of the div e.g.), you can use the before/after pseudo selectors for this. You shouldn’t have to change any markup […]

Tagged with:  

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:  

Packt Publishing celebrates 10 years with a special $10 offer

On July 3, 2014, in Books, Miscellaneous, by Anuj Gakhar

It has been 10 years since Packt Publishing embarked on its mission to deliver effective learning and information services to IT professionals. In that time, it has published over 2000 titles and helped projects become household names, awarding over $400,000 through its Open Source Project Royalty Scheme. To celebrate this huge milestone, Packt is offering […]

 

Selenium webdriver “Element cannot be scrolled into view”

On June 19, 2014, in Javascript, Testing, by Anuj Gakhar

If you are trying to write a functional test with the Selenium webdriver, you might occasionally run into this error :- This is happening because the webdriver is trying to scroll the element into view before it clicks it and the browser window size may not be big enough for it to view the element. […]

Tagged with:  

Using RequireJS with Jasmine 2.0

On June 12, 2014, in Javascript, Testing, by Anuj Gakhar

I’ve been trying to get some Jasmine tests running with RequireJS and although my tests work with Jasmine 1.3.x, I’ve been getting an error if I use Jasmine 2.0 for the tests. Apparently, Jasmine 2.0 has changed how it loads and executes the tests. If you look at the source here, you’ll see all the […]

Tagged with:  

Win Free Copies of the new book – Extending Bootstrap

On June 12, 2014, in Books, Javascript, by Anuj Gakhar

Readers would be pleased to know that I have teamed up with Packt Publishing to organize a Giveaway of their new book – Extending Bootstrap Three lucky winners stand a chance to win 3 digital copies of this book. Keep reading to find out how you can be one of the Lucky Winners. Book Overview […]

 

Dojo and IE8 Compatibility

On April 18, 2014, in Browsers, Javascript, 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:  

Win Free Copies of the new book – Getting Started with Grunt

On April 15, 2014, in Books, Javascript, by Anuj Gakhar

Readers would be pleased to know that I have teamed up with Packt Publishing to organize a Giveaway of the new book – Getting Started with Grunt: The JavaScript Task Runner Three lucky winners stand a chance to win 3 digital copies of this book. Keep reading to find out how you can be one […]

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 :- When […]

Tagged with:  

Binary Search in Javascript

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

Binary Search is one of the fundamental algorithms in computer science. It is used to quickly find a value is a sorted set of data. It is also referred to as half-interval search, sometimes, purely because on each successive iteration, it halves the number of items to check. Binary search works by comparing an input […]

 
© 2011 Anuj Gakhar