FCKeditor 2.6.6
[freeside.git] / httemplate / elements / fckeditor / editor / wsc / ciframe.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
2 <!--\r
3  * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
4  * Copyright (C) 2003-2010 Frederico Caldeira Knabben\r
5  *\r
6  * == BEGIN LICENSE ==\r
7  *\r
8  * Licensed under the terms of any of the following licenses at your\r
9  * choice:\r
10  *\r
11  *  - GNU General Public License Version 2 or later (the "GPL")\r
12  *    http://www.gnu.org/licenses/gpl.html\r
13  *\r
14  *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
15  *    http://www.gnu.org/licenses/lgpl.html\r
16  *\r
17  *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
18  *    http://www.mozilla.org/MPL/MPL-1.1.html\r
19  *\r
20  * == END LICENSE ==\r
21 -->\r
22 <html>\r
23 <head>\r
24         <title></title>\r
25         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
26         <script type="text/javascript">\r
27 \r
28 function gup( name )\r
29 {\r
30         name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ;\r
31         var regexS = '[\\?&]' + name + '=([^&#]*)' ;\r
32         var regex = new RegExp( regexS ) ;\r
33         var results = regex.exec( window.location.href ) ;\r
34 \r
35         if( results == null )\r
36                 return '' ;\r
37         else\r
38                 return results[ 1 ] ;\r
39 }\r
40 \r
41 function sendData2Master()\r
42 {\r
43         var destination = parent.parent ;\r
44         try\r
45         {\r
46                 if ( destination.XDTMaster )\r
47                 {\r
48                         var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ;\r
49                         window.clearInterval( interval ) ;\r
50                 }\r
51         }\r
52         catch (e) {}\r
53 }\r
54 \r
55 function onLoad()\r
56 {\r
57         interval = window.setInterval( sendData2Master, 100 );\r
58 }\r
59 \r
60         </script>\r
61 </head>\r
62 <body onload="onLoad()">\r
63         <p></p>\r
64 </body>\r
65 </html>\r