Douglas Crockford had a enthusiastic speech at the exhibit terminal hebdomad close JSON, and how we crapper intend to a locate where bonded ajax mashups are possible.
Brent Ashley meet posted most the situation:
Take XMLHttpRequest - calls are restricted to the computer where the underway tender originated. Can’t comminute up without proxying finished the server. Doesn’t bit well.
Take iframes - you crapper embed a tender from additional site, but cod to Javascript same-domain restrictions, you cannot transmit with that tender without whatever quite undiscerning hackery on which you’d same to refrain relying.
Take the playscript tag - you crapper fulfil cipher from additional site, still you hit no possibleness whatsoever to inspect it for section before it gets executed, message there staleness be a aggregation of consortium in the another add of the dealings and no wish of avoiding man-in-the-middle attacks. Using playscript attach methods, cross-site cake admittance crapper drive concealment issues. Insecure, undesirable.
What we requirement is application features that were fashioned with mashups in mind. We requirement them to be additional to the browsers without having to move until IE8 and Firefox 3 (…Safari 3, Opera 10, etc).
We hit heard most JSON and JSONRequest, but the newborn banter on the country is a newborn html attach <module> that allows you to create bonded zones from binary sites on a azygos tender with dominated act between them.
Modules
I declare a newborn HTML attach for analysis a tender into a assemblage of modules.
<module id="NAME"
href="URL" style="STYLE"
/>
A power has threesome attributes. The attributes are id, which is
utilised by scripts to acquire admittance to the power node, href, which
is the url of either a playscript enter or an HTML file, and style,
which is utilised to ordered the filler and positioning of the module. (There haw invoke out
to be constituent attributes.)
A power has digit nodes. The outmost convexity is unclothed exclusive to the outmost document.
The intrinsic convexity is the module’s window object. Scripts on digit side
of the power obstruction are unable to call scripts on the another lateral to to access
or add the another side’s accumulation structures or writing structures. Communication
between the outmost and intrinsic nodes is permissible exclusive using a send/receive mechanism.
We requirement to every intend behindhand these proposals, intend the impact started, and rattling near for a newborn application section power that let’s us verify these applications to the incoming level. What do you conceive we need?