Tag Archives: js

Classes in Javascript

Source : >http://www.phpied.com/3-ways-to-define-a-javascript-class/ 3 ways to define a JavaScript class Introduction JavaScript is a very flexible object-oriented language when it comes to syntax. In this article you can find three ways of defining and instantiating an object. Even if you … Continue reading

Posted in Client Side Programming, JavaScript | Tagged , , | Leave a comment

More about regular expressions in Javascript

Aah !! Regular expressions I have got confused most of the times, I need to escape special characters when specifying a regular expression. Let us take an example of simple date formatdd/mm/yyyy There are two ways, you can specify your … Continue reading

Posted in Client Side Programming, JavaScript | Tagged , , | 3 Comments

How to expand collapse (toggle) div layer using jQuery

Thanks to http://designgala.com/how-to-expand-collapse-toggle-div-layer-using-jquery In almost all of my projects, I have been using jQuery to toggle the layer. So, I thought of sharing how easy it is to expand div layer and collapse panel using jQuery. When user clicks on … Continue reading

Posted in Client Side Programming, JavaScript, jQuery | Tagged , , | 5 Comments

How to replace in Javascript, when replacement string is a variable

How to replace in Javascript, when replacement string is a variable Very often we use replace method in javascript while replacing a string literal by another string literal.But what if we need to replace a string whose value is held … Continue reading

Posted in Client Side Programming, JavaScript, jQuery | Tagged , , , , | Leave a comment