Difference between window.onload and $(document).ready()

Do you think $(document).ready() and window.onload are the same thing? Do you use one for the other? Do you use them interchangeably? If you do so, you are wrong. $(document).ready() and window.onload are not the same thing. What did you

Read More Difference between window.onload and $(document).ready()

Cannot read property ‘toLowerCase’ of undefined

javascript error undefined

I am finally back with another post after a while. I had this time period where I got busy with other things in life and felt a little tired for coding and blogging. That seems to be over now. Thank

Read More Cannot read property ‘toLowerCase’ of undefined

What is TypeScript, ECMAScript and JavaScript?

what is typescript

After a long break, I am back with another productive and informative post. Have you heard about the language TypeScript? What is the relation between JavaScript, ECMAScript and TypeScript? Here is a brief answer to this question. What is TypeScript?

Read More What is TypeScript, ECMAScript and JavaScript?

Lambda Expressions and Javascript

Have you ever heard of the term “lambda”? Does it sound like a complicated thing to you? Don’t be scared! After reading this short post, it won’t be that scary. Lambda Expressions in Various Programming Languages So, how do they

Read More Lambda Expressions and Javascript

Passing Javascript Functions to Other Javascript Functions as Arguments

In my last post, I briefly talked about variables, functions and how you can put functions into variables to be later called using the variable name. In this mini post, I will talk about passing Javascript functions to other Javascript

Read More Passing Javascript Functions to Other Javascript Functions as Arguments

Functions as Variables in Javascript

A JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when “something” invokes it (calls it). A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses

Read More Functions as Variables in Javascript

Javascript Inheritance – Prototype and Prototype Chain

I am a big fan of javascript and I love scripting. In this post I will be talking about one of the most important concepts in javascript. Inheritance, protoyping and prototype chain.   If you are familiar with oop (object-oriented

Read More Javascript Inheritance – Prototype and Prototype Chain

Invalid object passed in, u0027:u0027 or u0027}u0027 expected

Assume you have created a beautiful dynamic web app, with some cool webservices to get the results from and dynamically process + place them on the client-side. In this dynamic app of yours you must be careful while sending (POSTing)

Read More Invalid object passed in, u0027:u0027 or u0027}u0027 expected

How to – Display Multiple Spaces Using innerHTML

Have you ever tried to display multiple spaces in a page element using innerHTML property with javascript? If so then you probably encountered this problem of collapsing multiple spaces. Apparently this is how HTML works. It collapses multiple spaces into

Read More How to – Display Multiple Spaces Using innerHTML

How to Detect Browser Using Javascript

When it is about client-side programming you have to make everything cross-browser compatible and sometimes this requires detecting the browser your visitor is using and then run the related piece of code. Actually it is quite easy. What you need

Read More How to Detect Browser Using Javascript