| By Julien Lecomte | Article Rating: |
|
| December 11, 2007 09:45 AM EST | Reads: |
10,163 |
Julien Lecomte, who currently works on Yahoo!'s DHTML Evangelist team, is a member of the distinguished Speaker Faculty at the upcoming AJAXWorld Conference & Expo 2008 East, to be held in New York City (March 18-20, 2008), where his session will be entitled "High Performance AJAX Applications."
According to my Yahoo! co-worker Douglas Crockford, Mashups are the most interesting advancement in software development in decades. They are also unsafe in the current generation of browsers
. Lately, Douglas has been spending some time convincing the main browser vendors that mashups need to be made safe, wrote a proposal, and even mentioned Google Gears as a potential solution to the problem.
While fixing the browser is the right thing to do, web developers are confronted with this problem today, and cannot afford to wait 5 years for a definitive solution.
Existing solutions to the mashup problem
One way mashups (or widgets, badges and gadgets, take your pick…) can be made safe is by sandboxing them in an IFrame pointing to another domain (Note: another way would be to run the untrusted code through ADsafe, and provide some safe API to do useful things on the page) The problem is that the Same Origin Policy isolates them so completely that they are then unable to cooperate with the page containing them or with each other. Several hacks have been exploited to achieve reasonably secure client-side cross-domain communication. The most popular ones use the URL fragment identifier or the Flash LocalConnection object.
Why the need for another technique?
CrossFrame is a variant of the URL fragment identifier mechanism. In the original technique, the containing page sets the URL fragment identifier of an embedded IFrame (usually via its src attribute), and the IFrame must poll to detect changes in the value of its location.hash property. This technique can be further built upon to allow for 2-way communications between an IFrame and its containing page, or between two distinct IFrames.
The original URL fragment identifier technique has many limitations, many of which can be worked around except maybe for the following:
- It unnecessarily consumes CPU cycles by requiring the receiver to poll.
- It creates “fake” history entries on Safari and Opera.
Published December 11, 2007 Reads 10,163
Copyright © 2007 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Julien Lecomte
Julien Lecomte currently works on Yahoo!'s DHTML Evangelist team, a group that provides architectural assistance to Yahoo! web developers. He has worked extensively on Yahoo! Mail and Yahoo! Search, and is the author of the YUI Browser History Manager and the YUI Compressor.
- Cloud Expo New York Speaker Profile: Mark Hinkle – Citrix Systems
- Big Data Expo New York Speaker Profile: Eric Baldeschwieler – Hortonworks
- IBM Rips Out Its Siebel Seats
- IBM & Red Hat Will Reportedly Join OpenStack
- Cloud Expo New York: Industry-Leading CxOs to Present June 11-14
- System Center Virtual Machine Manager 2012 as Private Cloud Enabler
- Big Data: The ‘Perfect Storm’ Syndrome
- Virtual Private Cloud Computing vs. Public Cloud Computing
- Eighteen Open Source Content Management Systems (Part 3)
- Big Data: Information Spawns Innovation
- MapR Adds Hadoop Connectors
- OpenNebula: Open Source Cloud Management
- Red Hat Executive Appointed to Technology Services Industry Association (TSIA) Support Services Advisory Board
- Cloud Expo New York Speaker Profile: Mark Hinkle – Citrix Systems
- Big Data Expo New York Speaker Profile: Eric Baldeschwieler – Hortonworks
- IBM Rips Out Its Siebel Seats
- Hadoop Quickstart: Create and Better Manage Hadoop Clusters on Rackspace
- IBM & Red Hat Will Reportedly Join OpenStack
- Cloud Expo New York: Industry-Leading CxOs to Present June 11-14
- Apache Hadoop: Now, Next, and Beyond at Cloud Expo New York
- System Center Virtual Machine Manager 2012 as Private Cloud Enabler
- Big Data: The ‘Perfect Storm’ Syndrome
- Virtual Private Cloud Computing vs. Public Cloud Computing
- Eighteen Open Source Content Management Systems (Part 3)
- After Ubuntu, Windows Looks Increasingly Bad, Increasingly Archaic, Increasingly Unfriendly
- SCO CEO Posts Open Letter to the Open Source Community
- Simula Labs Launches Hosted Delivery Platform To Enable Enterprise Open Source Adoption
- Where Are RIA Technologies Headed in 2008?
- Source Claims SCO Will Sue Google
- How Open Is "Open"? – Industry Luminaries Join the Debate
- Latest SCO News is Plain Weird
- SCO Claims Linux Lifted ELF
- IBM Tells SCO Court It Can't Find AIX-on-Power Code
- Flashback: Investing in 'Professional Open Source' - Exclusive 2004 Interview with David Skok, Matrix Partners
- Developing an Application Using the Eclipse BIRT Report Engine API
- HP Starts Pushing Desktop Linux

















