Posts Tagged ‘JavaScript’

JavaScript Singleton Design Pattern

JavaScript Singleton Design Pattern
JavaScript Singleton pattern ensure that only a single instance of the class may exits in application. Details of singleton design pattern can be found in the an existing post named Java Singleton Design Pattern Tutorial. This pattern comes in handy when you want to create a class whose functionality doesn't change for its multiple instances ...

JavaScript 101: Objects and Functions

JavaScript 101: Objects and Functions
Let us go through the basics of Javascript objects. How objects are maintained. What is inheritance in JS. Also lets check Javascript Functions.

JavaScript Module Design Pattern

JavaScript Module Design Pattern
JavaScript Module pattern provides a way to wrap public, private methods (and variable) into a single entity and exposing only the public members to the world outside of module. This allows faster namespace resolution, avoid collision of the methods/variables with other global APIs since the namespace isn't populated with all many functions, and obviously provides cleaner code.Implementing ...

AngularJS Routing and Views Tutorial with Example

AngularJS Routing and Views Tutorial with Example
Welcome to the next tutorial of the ongoing series of tutorials on AngularJS. In previous tutorial we saw AngularJS Controllers and also created a Hello World example using Angular.In this article we will go through the next useful feature of AngularJS called Routing. Also we will see how we can divide a single page application ...

AngularJS Controller Tutorial with Example

AngularJS Controller Tutorial with Example
Let us talk about one of the AngularJS's most useful feature which helps in making awesome single page applications in JavaScript - The Controller.This tutorial is part of series of tutorials on AngularJS where we shall touch different aspects of Angular and its features. In our last tutorial we saw Introduction of AngularJS and also ...

AngularJS: Introduction and Hello World example

AngularJS: Introduction and Hello World example
AngularJS, a JavaScript framework developed by a Googler and supported by Google has become quite a buzz word in past few months. More and more developers are using it and thus the community has grown significantly. Not only they love it, but they can't stop praising it :)The reason is very simple. AngularJS rocks \m/ !! ...

Lazy Load Image & WordPress Gravatar using JavaScript / JQuery

Lazy Load Image & Wordpress Gravatar using JavaScript / JQuery
A webpage load time plays a very crucial role in SEO and impacts your website ranking significantly. Google has already incorporated site speed as one of the several signals that it uses to determine search ranking. The faster your website loads the better it will perform in google ranking.There are several things one can do ...

21 JavaScript Tips and Tricks for JavaScript Developers

21 JavaScript Tips and Tricks for JavaScript Developers
If you are doing lot of JavaScript programming, you might find below list of code snippets very useful. Keep it handy (bookmark it) and save it for future reference.Here are 20 very useful JavaScript tips and tricks for you.Disclaimer: Not all these snippet are written by me. Some of them are collected from other sources ...

How to convert Javascript Arrays to CSV (Comma separated values)

Let's see a small code snippet in Javascript that converts JS arrays in Comma separated values. It is also possible to convert an array to delimited text where one can choose the separator.var fruits = ;var str = fruits.toString();//print str: apple, peaches, oranges, mangoesThe toString() method converts an array into a String and returns the result. The returned string will separate the elements in ...

Deleting Multiple Values From Listbox in JavaScript

Deleting Multiple Values From Listbox in JavaScript
There was a requirement of deleting multiple options from a listbox using JavaScript. User can select multiple items from a Listbox. Once the delete button is pressed, remove all the values that are selected from the combobox.Now the most intuitive solution for this problem would be to iterate through each option from the listbox and ...
Page 1 of 512345