From internal collaboration to supplier and customer interactions, enterprises are discovering new ways of increasing productivity, process accountability, and connecting those challenging "white spaces" that exist betwe...| By Kurt Cagle | Article Rating: |
|
| March 22, 2007 03:00 PM EDT | Reads: |
4,239 |
This content is reprinted from Real-World AJAX: Secrets of the Masters published by SYS-CON Books. To order the entire book now along with companion DVDs for the special pre-order price, click here for more information. Aimed at everyone from enterprise developers to self-taught scripters, Real-World AJAX: Secrets of the Masters is the perfect book for anyone who wants to start developing AJAX applications.
A Brief Note on JSON
The object notation used by JavaScript has made its way into a way to transmit structure better in a number of different languages. JSON (JavaScript Object Notation) has gained a fair amount of interest as a somewhat lighter-weight alternative to XML, especially when used across pipes for AJAX transmission.
In essence, the idea is that you can serialize any object's state as a hash of other objects, each of which can also be broken down as a hash of either other objects or primitives. For instance, you could create a JSON object of a person's record, including his address:
var rec = {identity:{ firstName:"Aleria", surName:"Delamare", gender:"female"},
address:{ street: "1234 Fairmont Drive", city:"Arkham", state:"MA"}, display:
function(){alert(this.identity.firstName +" " + this.identity.surName);} }
The advantage of JSON is that when transmitted, such objects can be reconstructed easily (especially if going from a JavaScript environment to a JavaScript environment) without specialized parsers. The disadvantage of JSON is that it doesn't necessarily transmit state as effectively as XML does in heterogeneous environments. However, a significant number of AJAX applications now routinely make use of JSON as their primary serialization method, especially for client-to-client communications.
Summary
I've tried the near impossible in this (loooong) chapter - covering the highlights of JavaScript in a single chapter of a book. It was, at best, only a partially successful endeavor, as there are obviously many, many elements that could have been covered in greater detail (date manipulation, for instance) that weren't for lack of space. However, if all that had been covered, this would have been a book on JavaScript basics, not the power and beauty of AJAX.
This chapter has focused on the client application, but AJAX also has a fairly formal server-side requirement. In Chapter 3, the server-side components of AJAX will be explored in greater detail, showcasing how AJAX is not only a rich client application but actually a design methodology for changing the role of both client and server.
This content is reprinted from Real-World AJAX: Secrets of the Masters published by SYS-CON Books. To order the entire book now along with companion DVDs, click here to order.
Published March 22, 2007 Reads 4,239
Copyright © 2007 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Kurt Cagle
Kurt Cagle is a developer and author, with nearly 20 books to his name and several dozen articles. He writes about Web technologies, open source, Java, and .NET programming issues. He has also worked with Microsoft and others to develop white papers on these technologies. He is the owner of Cagle Communications and a co-author of Real-World AJAX: Secrets of the Masters (SYS-CON books, 2006).
- Whatever the Apple iPad Is, It Apparently Leaks Like a Sieve
- Reflections on Java Command Line Options
- Six Enterprise Megatrends to Watch in 2010
- Microsoft WebsiteSpark: Get New Business Leads to Grow Your Business
- Jobs Has a Few Words for Google & Adobe & They Ain’t Pretty: Reports
- Stealth Cloud Computing Startup To Launch at Cloud Expo
- Apple iPad Reminds Us How Brands Succeed by Transforming Experiences
- Apple iPad in 3rd Place Behind iPhone and Android For Application Developers
- PivotLink Named Cool Cloud Computing Vendor
- iPad on Ulitzer - I’ll Buy iPad. But What For?
- Adobe Flash on the Road to Nowhere
- SAP Wants CA To Give It More Toys
- Whatever the Apple iPad Is, It Apparently Leaks Like a Sieve
- Reflections on Java Command Line Options
- Six Enterprise Megatrends to Watch in 2010
- Microsoft’s First Step Toward Cloud Computing
- Microsoft WebsiteSpark: Get New Business Leads to Grow Your Business
- Jobs Has a Few Words for Google & Adobe & They Ain’t Pretty: Reports
- Stealth Cloud Computing Startup To Launch at Cloud Expo
- Apple iPad Reminds Us How Brands Succeed by Transforming Experiences
- Apple iPad in 3rd Place Behind iPhone and Android For Application Developers
- PivotLink Named Cool Cloud Computing Vendor
- How to Secure REST and JSON
- iPad on Ulitzer - I’ll Buy iPad. But What For?
- Building a Drag-and-Drop Shopping Cart with AJAX
- What Is AJAX?
- Google Maps! AJAX-Style Web Development Using ASP.NET
- Flashback to January 2006: Exclusive SYS-CON.TV Interviews on "OpenAjax Alliance" Announcement
- AJAXWorld Conference & Expo to Take Place October 2-4, 2006, at the Santa Clara Convention Center, California
- AJAX Sponsor Webcasts Are Now Available at AJAXWorld Website
- How and Why AJAX, Not Java, Became the Favored Technology for Rich Internet Applications
- "Real-World AJAX" One-Day Seminar Arrives in Silicon Valley
- AJAXWorld University Announces AJAX Developer Bootcamp
- AJAX Support In JadeLiquid WebRenderer v3.1
- Where Are RIA Technologies Headed in 2008?
- Struts Validations Framework Using AJAX
From internal collaboration to supplier and customer interactions, enterprises are discovering new ways of increasing productivity, process accountability, and connecting those challenging "white spaces" that exist betwe...Mar. 21, 2010 08:23 AM EDT Reads: 112 |
By Roger Strukhoff 3rd Generation outsourcing is here! 1st Generation was “your mess for less”; 2nd Generation is strategic or selective sourcing, including hosting. 3rd Generation Outsourcing, as a result of the emergence of Cloud Computi...Mar. 21, 2010 05:53 AM EDT |
By Pat Romanski NaviCloud is a next-generation platform that combines the economic efficiencies of cloud computing with true enterprise-class reliability and security. With built-in high-availability, a state of the art operations cente...Mar. 20, 2010 08:45 AM EDT Reads: 547 |
By Pat Romanski SYS-CON Events announced today that VirtuDataCenter, a cloud computing network infrastructure company, will offer a complete turnkey alternative to today’s cloud computing solutions. They will exhibit at SYS-CON's 5th In...Mar. 20, 2010 07:00 AM EDT Reads: 343 |
By Liz McMillan You are interested in cloud computing, but where do you start? How are vendors defining Cloud Computing? What do you need to know to figure out which applications make sense in the cloud? And is any of this real today?
...Mar. 20, 2010 05:45 AM EDT Reads: 392 |








3rd Generation outsourcing is here! 1st Generation was “your mess for less”; 2nd Generation is strategic or selective sourcing, including hosting. 3rd Generation Outsourcing, as a result of the emergence of Cloud Computi...
NaviCloud is a next-generation platform that combines the economic efficiencies of cloud computing with true enterprise-class reliability and security. With built-in high-availability, a state of the art operations cente...
SYS-CON Events announced today that VirtuDataCenter, a cloud computing network infrastructure company, will offer a complete turnkey alternative to today’s cloud computing solutions. They will exhibit at SYS-CON's 5th In...
You are interested in cloud computing, but where do you start? How are vendors defining Cloud Computing? What do you need to know to figure out which applications make sense in the cloud? And is any of this real today?
...
Cloud Computing Journal caught up with the CEO of a major new player in the fast-emerging Cloud ecosystem - a CEO who has taken an interesting and unusual decision. While signing up as the Platinum Plus Sponsor of the 5th International Cloud Expo, he and his company have decided to remain completely...
Enterprises continue to expand the use of cloud computing, and particularly software-as-a-service applications (SaaS), to achieve operational performance enhancements and efficiencies. Implementation of these technologies introduces several challenges related to identity management, such as administ...
But, as much as I like developing nations and the potential of cloud for them, the Big Kahuna is still found in the Big Apple, with Cloud Expo, opening April 19 at the Javits Center in New York. This is not an event with a single track, or a few tracks. There are, in fact, eight of them, as follows:...
Is your website available to end users 99.8% or more of the time? If not, then count yourself in the “laggard” category, according to standards set by The Aberdeen Group, in its 2008 report “The Performance of Web Applications: Customers are Won or Lost in One Second.” In that study, laggards had we...






















