AngularJS, Node.js

How to Internationalize your website in 10 minutes

Okay so let me come straight to the point that all of us need to provide multi-language support with our websites at some point of time. In such a competitive time, if we can find a short and effective way to do it without getting into much complexity then we are definitely one step ahead of others. So less of talking now and I will...

by Sakshi Tyagi
Tag: js
18-Mar-2016

Grails

Generate PDF for Google Charts through Javascript

In a previous blog, we learned, how to draw a google chart. Let's say, I have 5 graphs on my page and I want to generate a PDF which contains these graphs using a JavaScript. For that, we will use jsPDF plugin. Step 1. Create a hidden empty DIV, to store graph-images: [java] <div id='graph-images'...

by Mansi Arora
Tag: js
03-Mar-2015

Node.js

Singleton Pattern with JavaScript

Many a times, we face a requirement where we need only one object of a class to communicate across the application. Singleton Pattern comes into role in this scenario. Singleton is one of my favorite Design Patterns. Singleton pattern restricts us to initialize more than one object. We implement Singleton by creating a class, having a...

by Amit Kumar
Tag: js
14-Feb-2014

Node.js

Equality(==) vs Identity(===)

In JavaScript, we have Equality (==) and Identity(===) operators for equality comparison between two values/operands. When first time we see Equality (==) and Identity (===) operators, then following questions arise in our mind. 1. What is difference between Equality (==) and Identity (===) ? 2. Is there a performance benefit with...

by Amit Kumar
Tag: js
05-Feb-2014