Archives by date

You are browsing the site archives by date.

Background threads in JavaScript

One of the prominent features in HTML 5 is WebWorkers. WebWorkers provide the facility to run your JavaScript code in a background thread. All the code that we write in JS are executed in the UI thread. Hence performing a […]

Plain vanilla drag n drop in Ext JS4

Plain vanilla drag n drop in Ext JS4

The drag and drop examples in Ext JS4 look overly complicated that one keeps wondering if drag and drop implementation is very difficult. It’s actually pretty simple. Let’s drag a simple label into a panel as shown below. Before DnD […]

Local storage with Ext JS 4

Local storage with Ext JS 4

Local storage in HTML 5 lets you store data in the browser’s memory. Unlike cookies they don’t travel with the client request. Mobile applications make use of this facility extensively. Playing with local storage in the raw format using JavaScript […]

A DSL query in Groovy

DSL, Domain Specific Languages is a fascinating subject. Reams of articles have been written on this topic. Groovy provides a fluent syntax to create DSLs. Let’s use the meta-programming and closure concepts and build a simple DSL. Say you have […]

XTemplate in Ext JS 4

Ext JS 4 makes you construct the UI by writing JavaScript code. You have to write few lines of JavaScript code to construct even a simple textbox or a button. So developers always try to look for a way to […]