- From: <bugzilla@jessica.w3.org>
- Date: Thu, 11 Nov 2010 10:30:54 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11297 Summary: @͌ Logo Google ь ь ь Cross Frame: cͬW Frame ƪrg2010-10-07 11:52:56 Ŀǰ1ƪ P˻` * flash iframe ͬ html * ͬW * Cross Document Messaging * flash Cross Frame * fr Product: HTML WG Version: unspecified Platform: Other URL: http://www.whatwg.org/specs/web-apps/current-work/#top OS/Version: other Status: NEW Severity: normal Priority: P3 Component: other Hixie drafts (editor: Ian Hickson) AssignedTo: ian@hixie.ch ReportedBy: contributor@whatwg.org QAContact: public-html-bugzilla@w3.org CC: mike@w3.org Specification: http://dev.w3.org/html5/postmsg/ Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#top Comment: @͌ Logo Google ь ь ь Cross Frame: cͬW Frame ƪrg2010-10-07 11:52:56 Ŀǰ1ƪ P˻` * flash iframe ͬ html * ͬW * Cross Document Messaging * flash Cross Frame * frame һW * iframe ie8oȫҕ * javascript iframe ͬҕ ȡ | Powered By SiteTag JosephJ Ƭ P - JosephJ D-Link ӍƼ̎ϲÑ\ӡ2008 5 ɡܲhu¼gʽaҵƫ̿ ҪòͬW Iframe ͨ^ҎģľWվ]@ӵİȫԆ}Ҫʹõṩ JavaScript r÷cȫͬW Iframe С Yahoo! r+ c UrMap ĵ؈DǷһW Iframe еġ@UrMap Wվ JavaScript SrZ Yahoo! W퓵ăݡΣʹߡ òͬW Iframe õʽaΣfǣҲijʽҪijʽ ҾWеһֹܡ Iframe߀ ADSafeCajaFlash ȷʽ߶һT Same Origin Policy W퓻ʽaòͬW Iframe ŵľWһdzε (<iframe src="xxx"></iframe> ˶)}춮߾WͬrJavaScript Ǜ]k^ parent, window.frames, top, opener ȷʽȡġ@^ Same Origin Policy ơ ܻӣȱˏcõęC焂ᵽ Yahoo! + c UrMap ĺ+ @߅ϣcxˡ͏dBYr AJAX ȡŷIJ͏dYӍfõ؈DͬW Iframe СIframe ӵӍϢ UrMap API ӑB¾W퓵؈Dϵc@ӵОҲ Same Origin Policy oֱ_ɡ Cross Document Messaging WHATWG Cross Document MessagingҲ HTML 5 Web MessagingQһ}fԁGκ String κWϵ Window ԓ Window ҪҪ̎ StringԼДࣨһṩԴ Window domainʽa£ A W (http://yahoo.com/a.html) һ name=urmap iframe <iframe name="urmap" src="http://yahoomashup.com/urmap.html"></iframe> A WҪf Hello World ӍϢo Iframe <script> /* yahoo.com */ window.frames['urmap'].postMessage("Hello World!", "*"); </script> Iframe e B W (http://yahoomashup.com/urmap.html) @ӽӵYϣ /* yahoomashup.com */ window.onmessage = function (e) { if (e.origin == "yahoo.com") { // yahoo.com r... alert(e.data); // @ʾ "Hello World!" } } ϢĿǰg[֧Ԯ˷ʽ Firefox 3, Google Chrome, Opera, IE8, IE9 ԿɡϢt IE6 c IE7 ]д˹ܡ Iframe In Iframe Hack }κ A-Grade g[oʹãҲ]@ƪµıҪֻṩdˣ@ҲҌ HTML 5 ¼gееԭIE[6-8] must die Ҳֻ_l߸οºˬĮaFDzܲ IE ʹߵģ䌍 2007 һЩҎ Cross Frame Ľⷨ@ƪĿǰfԔCross-Domain Communication with IFrames 䌍ԭஔΣǮ A WҪfӍϢo B W퓵ģ Iframe УrȄӑBaһc B WͬW Iframe˄ӑB Iframe ȵ JavaScript window.frames ȡ B W퓼κġ߀^ Iframe е URL hash (#) JavaScript ղͬ@ȱcǣڽն˵ľWһ֧ Proxy HTML nӑB Iframe ľWַ YAHOO.util.CrossFrame ʽ mȻԭܺΣҪ܉ϵyĜͨʽһˡgС䌍 ǺܶġҺ Yahoo! ǰ˹̎ Julien Lecomte YUI 2 һ CrossFrame Utility YAHOO.util.CrossFrame.send( "http://www.y.com/proxy.html", "frames['mashup']", "message" ); YAHOO.util.CrossFrame.onMessageEvent.subscribe( function (type, args, obj) { var message = args[0]; var domain = args[1]; // Do something with the incoming message... } ); ˆ@߅䌍 YAHOO.util.CrossFrame.send() ȡ HTML5 window.postMessage() YAHOO.util.CrossFrame.onMessageEvent ȡ window.onmessage ¼һ API 桢Оg[ã YUI 3 Č Y.CrossFrame 鹫˾õ YUI 3ЕrgԒȻϣČ Julien rƪµĕrgc 2007 ꣬postMessage ֻ Opera Ќ Julien Opera g[ Iframe in Iframe ЧܲSࡣҲҸĞ postMessage Iframe in Iframe o^Чʡ Y.CrossFrame.postMessage( "Hello World!", // ҪfӍϢ "frames['urmap']", // ҪfҕՈ String {proxy:"http://yahoomashup.com/b.html"} // ֧Ԯ postMessage Ğg[õ proxy Wַ ); Y.Global.on("crossframe:message", function (message, domain, url) { alert(message); }); Ŀǰyԇ IE6, IE7, IE8, FF3, Chrome, Opera ]І}ģM IE Tester oʹãϣ :) PBY * GitHub: yui3-crossframe * ʽ 1 * ʽ 2 ǰһƪ 2010 COSCUP vǰ_lFꠡ һƪHTML <dl/>, <dt/> c <dd/> ` Comments 1. ԣ 2010-10-08 16:54:51 ѧϰˣһ Leave a Reply Q Email DZ鲻_λHվLM ݣ 255 Ԫԃȡ ͳ Facebook Comment j RSS Feed © 2007 Ting-yu Chiang All rights reserved. hemidemi_49fec64cc31b2b2c0dbfbcc5ce316dbf5e21fa24 MyBlogLog ClickTagging 29th Most Popular Outgoing Link Posted from: 61.152.124.234 -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Thursday, 11 November 2010 10:30:56 UTC