<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
<!--\r
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
-->\r
<html>\r
catch (e) {}\r
}\r
\r
+function OnMessage (event) {\r
+ var message = event.data;\r
+ var destination = window.parent.parent;\r
+ destination.XDTMaster.read( [ 'end', message, 'fpm' ] ) ;\r
+}\r
+\r
+function listenPostMessage() {\r
+ if (window.addEventListener) { // all browsers except IE before version 9\r
+ window.addEventListener ("message", OnMessage, false);\r
+ }else {\r
+ if (window.attachEvent) { // IE before version 9\r
+ window.attachEvent("onmessage", OnMessage);\r
+ }\r
+ }\r
+}\r
+\r
function onLoad()\r
{\r
interval = window.setInterval( sendData2Master, 100 );\r
+ listenPostMessage();\r
}\r
\r
</script>\r