Javascript being a dynamically typed language, sometimes it helps to know the properties and functions of a given object. Anyone who has worked with javascript in an Object Oriented way would testify this. Here is a snippet of javascript code that would give the Type, member functions and properties of a given object. 1 2 […]

Read More →

Favelets, also called Bookmarklets, are links which contain special functionality. Instead of being directed to a URL when you click them, they perform an action using JavaScript. Favelets can be added to Internet Explorer as a favorite or Firefox,Chrome,Safari as a bookmark. There are browser extensions like GreaseMonkey, GreaseMetal which hand great power to the […]

Read More →

Try running this piece of javascript, it would throw a “URI malformed” exception. javascript:alert(decodeURIComponent(escape(’http://rushis.com/®’)));javascript:alert(decodeURIComponent(escape(‘http://rushis.com/®’))); The ® character is transformed to %AE, which is not a valid input to decodeURIComponent function. This issue is clearly evident in the latest prototype js 1.6 framework. _getHeaderJSON: function() { var json = this.getHeader(’X-JSON’); if (!json) return null; json = […]

Read More →