Ticket #6119: 6119.patch

File 6119.patch, 842 bytes (added by WebSpellChecker.net, 9 years ago)
  • ciframe.html

     
    3838        catch (e) {}
    3939}
    4040
     41function OnMessage (event) {
     42        var message = event.data;
     43        var destination = window.parent.parent;
     44        destination.XDTMaster.read( [ 'end', message, 'fpm' ] ) ;
     45}
     46function listenPostMessage() {
     47        if (window.addEventListener) { // all browsers except IE before version 9
     48                window.addEventListener ("message", OnMessage, false);
     49        }else {
     50                if (window.attachEvent) { // IE before version 9
     51                        window.attachEvent("onmessage", OnMessage);
     52                }
     53        }
     54}
     55
    4156function onLoad()
    4257{
    4358        interval = window.setInterval( sendData2Master, 100 );
     59        listenPostMessage();
    4460}
    4561</script>
    4662</head>
    4763<body onload="onLoad()"><p></p></body>
© 2003 – 2021 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy