Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
5 lars 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
<!--
3
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
4
For licensing, see LICENSE.html or http://ckeditor.com/license
5
-->
6
<html>
7
 
8
    <head>
9
        <title></title>
10
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
11
        <script type="text/javascript">
12
            function gup(name)
13
            {
14
                name = name.replace(/[\[]/, '\\\[').replace(/[\]]/, '\\\]');
15
                var regexS = '[\\?&]' + name + '=([^&#]*)';
16
                var regex = new RegExp(regexS);
17
                var results = regex.exec(window.location.href);
18
                if (results) return results[1];
19
                else return '';
20
            }
21
            var interval;
22
 
23
            function sendData2Master()
24
            {
25
                var destination = window.parent.parent;
26
                try
27
                {
28
                    if (destination.XDTMaster)
29
                    {
30
                        var t = destination.XDTMaster.read([gup('cmd'), gup('data')]);
31
                        window.clearInterval(interval);
32
                    }
33
                }
34
                catch (e)
35
                {}
36
            }
37
 
38
            function OnMessage(event)
39
            {
40
                var message = event.data;
41
                var destination = window.parent.parent;
42
                destination.XDTMaster.read(['end', message, 'fpm']);
43
            }
44
 
45
            function listenPostMessage()
46
            {
47
                if (window.addEventListener)
48
                { // all browsers except IE before version 9
49
                    window.addEventListener("message", OnMessage, false);
50
                }
51
                else
52
                {
53
                    if (window.attachEvent)
54
                    { // IE before version 9
55
                        window.attachEvent("onmessage", OnMessage);
56
                    }
57
                }
58
            }
59
 
60
            function onLoad()
61
            {
62
                interval = window.setInterval(sendData2Master, 100);
63
                listenPostMessage();
64
            }
65
        </script>
66
    </head>
67
 
68
    <body onload="onLoad()">
69
        <p></p>
70
    </body>
71
 
72
</html>