1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
3 Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
4 For licensing, see LICENSE.html or http://ckeditor.com/license
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
10 <script type=
"text/javascript">
14 name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ;
15 var regexS = '[\\?&]' + name + '=([^&#]*)' ;
16 var regex = new RegExp( regexS ) ;
17 var results = regex.exec( window.location.href ) ;
27 function sendData2Master()
29 var destination = window.parent.parent ;
32 if ( destination.XDTMaster )
34 var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ;
35 window.clearInterval( interval ) ;
41 function OnMessage (event) {
42 var message = event.data;
43 var destination = window.parent.parent;
44 destination.XDTMaster.read( [ 'end', message, 'fpm' ] ) ;
47 function listenPostMessage() {
48 if (window.addEventListener) { // all browsers except IE before version
9
49 window.addEventListener (
"message", OnMessage, false);
51 if (window.attachEvent) { // IE before version
9
52 window.attachEvent(
"onmessage", OnMessage);
59 interval = window.setInterval( sendData2Master,
100 );
65 <body onload=
"onLoad()"><p></p></body>