Recently, I had come across a situation where I had to make 2 ajax calls sequentially, i.e. fetch address from GeoLocation API and send it to Fedex API for fetching the transit time. For this, I needed to convert the address from GeoLocation in particular format using loop to send it to Fedex Initially, I used '$.each()' method of jquery on an address array to convert it in desired format. This is common approach that we follow and it took 1.12ms for the processing. I wanted to reduce this…

Read complete blog post


  • Image Cache is JS library used to provide a nice interface for locally storing images for offline apps using PhoneGap/Cordova.
  • This library is especially useful for mobile web applications using Phonegap/Cordova where image becomes stale (invalid) after normal offline navigation therefore in this case we can not relied upon Normal Cache.
  • So by using image cache we can store images in the cache and replace the stale version of normal cache with fresh version of image cache.
  • This…

Read complete blog post

Active Admin is a great plugin that helps us to get administration functions with elegant and simple interface up and live quickly without much of a hassle or efforts. One can also make use of various customisations as per their need with very little effort.

In this article, I will be explaining how we can add custom search bar in Active Admin. Adding custom search bar is not as easy and straight forward as other Active Admin customisations. I will be making use of jQuery to do this.

Here, I…

Read complete blog post

Few days back, we were facing problem establishing communication between a Webview control and a Titanium UI or vice versa.

We were integrating Facebook authentication in our Titanium mobile app using Titanium Facebook mobule where we stumbled upon this issue. We wanted to trigger FB Auth Titanium module specific code on click of an HTML Login button tied with a jQuery click event. The FB auth module checks if Facebook mobile app is installed on the device and opens this mobile app for…

Read complete blog post

In our current app we are using kalendae datepicker plugin. Lately, we wanted to add a 'today' button that is visible to the user in all the datepicker popovers(used for numerous date fields throughout the app). As the name suggests on clicking this button, the current date gets selected and is displayed in the corresponding field.

Github link of kalendae -

We can do this by writing function to add button in popup and then we can use it wherever we need.

Read complete blog post

Recently we have used WebUI-Popover plugin in Active Admin. It is a lightWeight popover plugin with jquery.

  • It can be use with bootstrap, but bootstrap is not necessary!
  • Browser compatibility for this plugin is ie8+,Chrome,Safari,Firefox,Opera.
  • We need jquery1.7.1+ for this.

Steps For adding WebUI-Popover are:

1) Download from

2) Extract zip folder go into src folder copy jquery.webui-popover.css this file and paste in…

Read complete blog post

Yesterday I was working on one of our portal (It's in Ruby on Rails and we have used quite alot jquery as well). Was integrating a nice Photo Gallery plugin on one of the page. Applcation is having many pages. Every page has some different behaviour and we have different jquery calls for that as per need.

For a performant application, we always want to avoid any unwanted calls to different methdods/functions. In my case, as I mentioned earlier I wanted to show Photo Gallery on a page and photo…

Read complete blog post

Easy way to create a numeric input, which accepts only numbers (i.e. 0-9 and no other characters).


import Ember from 'ember';

export default Ember.TextField.extend({
  tagName: "input",
  type: "number",
  attributeBindings: [ "name", "type", "value", "maxlength", "id" ],
  keyDown: function(e) {
    var key = e.charCode || e.keyCode || 0;
    // allow enter, backspace, tab, delete, numbers, keypad numbers, home, end only.
    return (
      key === 13 ||

Read complete blog post

Timeago is a widely used jQuery plugin which makes it easy to support automatically updating timestamps. (ex: 2 minutes ago)

plugin documentation:

Now we will see how to integrate timeago jquery plugin in ember application.
(Here we will give example using ember-cli)

install jquery-timeago plugin using bower

bower install jquery-timeago

In Brocfile.js


Create Ember Component to

Read complete blog post


A jquery plugin to organize the Grids and shuffle the grids automatically based on the height and width of the container.


1) It has different layouts that we can use to organize the grids in the way we want. Also enables us to extend the existing layouts extensively to suite our needs.

2) It allows us to filter the grids based on the properties of grid. eg: "All employees, Male Employees, Female Employees"

3) We can also order the grids based on priorities…

Read complete blog post