Rushi's | Home on the web

TAG | js

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 [...]

, , , , , ,

Apr/10

14

Encode,Decode URI in Javascript

Try running this piece of javascript, it would throw a “URI malformed” exception. 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 = [...]

, , , , , , , , , , , , , , , ,

Find it!

Theme Design by devolux.org
Tweaked by Rushi