JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
8e163fe57935df22b9cb04897e1d5dbbc5e169a8
[ckeditor.git] / plugins / wsc / dialogs / ciframe.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
2 <!--\r
3 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
4 For licensing, see LICENSE.html or http://ckeditor.com/license\r
5 -->\r
6 <html>\r
7 <head>\r
8         <title></title>\r
9         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
10         <script type="text/javascript">\r
11 \r
12 function gup( name )\r
13 {\r
14         name = name.replace( /[\[]/, '\\\[' ).replace( /[\]]/, '\\\]' ) ;\r
15         var regexS = '[\\?&]' + name + '=([^&#]*)' ;\r
16         var regex = new RegExp( regexS ) ;\r
17         var results = regex.exec( window.location.href ) ;\r
18 \r
19         if( results )\r
20                 return results[ 1 ] ;\r
21         else\r
22                 return '' ;\r
23 }\r
24 \r
25 var interval;\r
26 \r
27 function sendData2Master()\r
28 {\r
29         var destination = window.parent.parent ;\r
30         try\r
31         {\r
32                 if ( destination.XDTMaster )\r
33                 {\r
34                         var t = destination.XDTMaster.read( [ gup( 'cmd' ), gup( 'data' ) ] ) ;\r
35                         window.clearInterval( interval ) ;\r
36                 }\r
37         }\r
38         catch (e) {}\r
39 }\r
40 \r
41 function onLoad()\r
42 {\r
43         interval = window.setInterval( sendData2Master, 100 );\r
44 }\r
45 \r
46 </script>\r
47 </head>\r
48 <body onload="onLoad()"><p></p></body>\r
49 </html>\r