background preloader


Facebook Twitter

Mastering JSON ( JavaScript Object Notation ) Filed: Tue, Apr 10 2007 under Programming|| Tags: JSON javascript objects ajax Widely hailed as the successor to XML in the browser, JSON aspires to be nothing more than a simple, and elegant data format for the exchange of information between the browser and server; and in doing this simple task it will usher in the next version of the World Wide Web itself.

Mastering JSON ( JavaScript Object Notation )

The Object: An Introduction Behold, an Object… var myFirstObject = {}; It may not look like much, but those squiggly braces have the potential to record every bit of information humanity has ever gathered, and express the most complex programs computer scientists can dream up. Creating A New Object The old way to create a new object was to use the new keyword. var myJSON = new Object(); This method has been deprecated now in favor of simply defining an empty object with squigly braces… var myJSON = {}; Objects as Data At its most base level a Javascript Object is a very flexible and robust data format expressed as name/value pairs.


Fancybox. Perfection kills » Understanding delete. A couple of weeks ago, I had a chance to glance through Stoyan Stefanov’s Object-Oriented Javascript.

Perfection kills » Understanding delete

The book had an exceptionally high rating on Amazon (12 reviews with 5 stars), so I was curious to see if it was something worth recommending. I started reading through chapter on functions, and really enjoyed the way things were explained there; the flow of examples was structured in such nice, progressive way, it seemed even beginners would grasp it easily. However, almost immediately I stumbled upon an interesting misconception present throughout the entire chapter — deleting functions. There were some other mistakes (such as the difference between function declarations and function expressions), but we aren't going to talk about them now.

The book claims that “function is treated as a normal variable—it can be copied to a different variable and even deleted.”. >>> var sum = function(a, b) {return a + b;} >>> var add = sum; >>> delete sum true >>> typeof sum; "undefined" Theory§

Positioning Elements

Jx - JavaScript Ajax Library. JSON for the masses. Sunday Feb 19 2006 Your co-workers will love you for writing in JSON because it will most likely not conflict with their scripts that are being called within the same web documents.

JSON for the masses

For Many Years... JavaScript has been portrayed as a very ugly language. It's been abused, misunderstood, and kicked around like the poor step-child as known in fairytales. That's all going to end this year. Libraries like prototype,, behavior, and Rico have all made their debut in 2005 and topping the charts of development circles as some of the greatest things to happen for web developers. Why? Because JSON is here. Reasons for JSON JSON is easy. No more fuss of writing function after function that has no meaning to which other group of functions it belongs to What is Object Notation in JavaScript? According to Douglas Corckford's website, JSON is a lightweight data-interchange format. As a simple example, Object Notation can be expressed in the following format: Sample Object Notation Reference.

JavaScript Kit Advanced JavaScript Tutorials. 40 JavaScript lightboxes(included jQuery and MooTools) AJAX Introduction. Ajaxload - Ajax loading gif generator. jQuery: The Write Less, Do More, JavaScript Library.