Subversion Repositories Applications.papyrus

Rev

Rev 1925 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1925 Rev 2048
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
<!--
2
<!--
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
3
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
4
 * Copyright (C) 2003-2008 Frederico Caldeira Knabben
4
 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
5
 *
5
 *
6
 * == BEGIN LICENSE ==
6
 * == BEGIN LICENSE ==
7
 *
7
 *
8
 * Licensed under the terms of any of the following licenses at your
8
 * Licensed under the terms of any of the following licenses at your
9
 * choice:
9
 * choice:
10
 *
10
 *
11
 *  - GNU General Public License Version 2 or later (the "GPL")
11
 *  - GNU General Public License Version 2 or later (the "GPL")
12
 *    http://www.gnu.org/licenses/gpl.html
12
 *    http://www.gnu.org/licenses/gpl.html
13
 *
13
 *
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
15
 *    http://www.gnu.org/licenses/lgpl.html
15
 *    http://www.gnu.org/licenses/lgpl.html
16
 *
16
 *
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
17
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
18
 *    http://www.mozilla.org/MPL/MPL-1.1.html
19
 *
19
 *
20
 * == END LICENSE ==
20
 * == END LICENSE ==
21
 *
21
 *
22
 * This is the Debug window.
22
 * This is the Debug window.
23
 * It automatically popups if the Debug = true in the configuration file.
23
 * It automatically popups if the Debug = true in the configuration file.
24
-->
24
-->
25
<html xmlns="http://www.w3.org/1999/xhtml">
25
<html xmlns="http://www.w3.org/1999/xhtml">
26
<head>
26
<head>
27
	<title>FCKeditor Debug Window</title>
27
	<title>FCKeditor Debug Window</title>
28
	<meta name="robots" content="noindex, nofollow" />
28
	<meta name="robots" content="noindex, nofollow" />
29
	<script type="text/javascript">
29
	<script type="text/javascript">
30
 
30
 
31
var oWindow ;
31
var oWindow ;
32
var oDiv ;
32
var oDiv ;
33
 
33
 
34
if ( !window.FCKMessages )
34
if ( !window.FCKMessages )
35
	window.FCKMessages = new Array() ;
35
	window.FCKMessages = new Array() ;
36
 
36
 
37
window.onload = function()
37
window.onload = function()
38
{
38
{
39
	oWindow = document.getElementById('xOutput').contentWindow ;
39
	oWindow = document.getElementById('xOutput').contentWindow ;
40
	oWindow.document.open() ;
40
	oWindow.document.open() ;
41
	oWindow.document.write( '<div id="divMsg"><\/div>' ) ;
41
	oWindow.document.write( '<div id="divMsg"><\/div>' ) ;
42
	oWindow.document.close() ;
42
	oWindow.document.close() ;
43
	oDiv	= oWindow.document.getElementById('divMsg') ;
43
	oDiv	= oWindow.document.getElementById('divMsg') ;
44
}
44
}
45
 
45
 
46
function Output( message, color, noParse )
46
function Output( message, color, noParse )
47
{
47
{
48
	if ( !noParse && message != null && isNaN( message ) )
48
	if ( !noParse && message != null && isNaN( message ) )
49
		message = message.replace(/</g, "&lt;") ;
49
		message = message.replace(/</g, "&lt;") ;
50
 
50
 
51
	if ( color )
51
	if ( color )
52
		message = '<font color="' + color + '">' + message + '<\/font>' ;
52
		message = '<font color="' + color + '">' + message + '<\/font>' ;
53
 
53
 
54
	window.FCKMessages[ window.FCKMessages.length ] = message ;
54
	window.FCKMessages[ window.FCKMessages.length ] = message ;
55
	StartTimer() ;
55
	StartTimer() ;
56
}
56
}
57
 
57
 
58
function OutputObject( anyObject, color )
58
function OutputObject( anyObject, color )
59
{
59
{
60
	var message ;
60
	var message ;
61
 
61
 
62
	if ( anyObject != null )
62
	if ( anyObject != null )
63
	{
63
	{
64
		message = 'Properties of: ' + anyObject + '</b><blockquote>' ;
64
		message = 'Properties of: ' + anyObject + '</b><blockquote>' ;
65
 
65
 
66
		for (var prop in anyObject)
66
		for (var prop in anyObject)
67
		{
67
		{
68
			try
68
			try
69
			{
69
			{
70
				var sVal = anyObject[ prop ] != null ? anyObject[ prop ] + '' : '[null]' ;
70
				var sVal = anyObject[ prop ] != null ? anyObject[ prop ] + '' : '[null]' ;
71
				message += '<b>' + prop + '</b> : ' + sVal.replace(/</g, '&lt;') + '<br>' ;
71
				message += '<b>' + prop + '</b> : ' + sVal.replace(/</g, '&lt;') + '<br>' ;
72
			}
72
			}
73
			catch (e)
73
			catch (e)
74
			{
74
			{
75
				try
75
				try
76
				{
76
				{
77
					message += '<b>' + prop + '</b> : [' + typeof( anyObject[ prop ] ) + ']<br>' ;
77
					message += '<b>' + prop + '</b> : [' + typeof( anyObject[ prop ] ) + ']<br>' ;
78
				}
78
				}
79
				catch (e)
79
				catch (e)
80
				{
80
				{
81
					message += '<b>' + prop + '</b> : [-error-]<br>' ;
81
					message += '<b>' + prop + '</b> : [-error-]<br>' ;
82
				}
82
				}
83
			}
83
			}
84
		}
84
		}
85
 
85
 
86
		message += '</blockquote><b>' ;
86
		message += '</blockquote><b>' ;
87
	} else
87
	} else
88
		message = 'OutputObject : Object is "null".' ;
88
		message = 'OutputObject : Object is "null".' ;
89
 
89
 
90
	Output( message, color, true ) ;
90
	Output( message, color, true ) ;
91
}
91
}
92
 
92
 
93
function StartTimer()
93
function StartTimer()
94
{
94
{
95
	window.setTimeout( 'CheckMessages()', 100 ) ;
95
	window.setTimeout( 'CheckMessages()', 100 ) ;
96
}
96
}
97
 
97
 
98
function CheckMessages()
98
function CheckMessages()
99
{
99
{
100
	if ( window.FCKMessages.length > 0 )
100
	if ( window.FCKMessages.length > 0 )
101
	{
101
	{
102
		// Get the first item in the queue
102
		// Get the first item in the queue
103
		var sMessage = window.FCKMessages[0] ;
103
		var sMessage = window.FCKMessages[0] ;
104
 
104
 
105
		// Removes the first item from the queue
105
		// Removes the first item from the queue
106
		var oTempArray = new Array() ;
106
		var oTempArray = new Array() ;
107
		for ( i = 1 ; i < window.FCKMessages.length ; i++ )
107
		for ( i = 1 ; i < window.FCKMessages.length ; i++ )
108
			oTempArray[ i - 1 ] = window.FCKMessages[ i ] ;
108
			oTempArray[ i - 1 ] = window.FCKMessages[ i ] ;
109
		window.FCKMessages = oTempArray ;
109
		window.FCKMessages = oTempArray ;
110
 
110
 
111
		var d = new Date() ;
111
		var d = new Date() ;
112
		var sTime =
112
		var sTime =
113
			( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' +
113
			( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' +
114
			( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' +
114
			( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' +
115
			( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' +
115
			( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' +
116
			( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ;
116
			( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ;
117
 
117
 
118
		var oMsgDiv = oWindow.document.createElement( 'div' ) ;
118
		var oMsgDiv = oWindow.document.createElement( 'div' ) ;
119
		oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '<\/b>' ;
119
		oMsgDiv.innerHTML = sTime + ': <b>' + sMessage + '<\/b>' ;
120
		oDiv.appendChild( oMsgDiv ) ;
120
		oDiv.appendChild( oMsgDiv ) ;
121
		oMsgDiv.scrollIntoView() ;
121
		oMsgDiv.scrollIntoView() ;
122
	}
122
	}
123
}
123
}
124
 
124
 
125
function Clear()
125
function Clear()
126
{
126
{
127
	oDiv.innerHTML = '' ;
127
	oDiv.innerHTML = '' ;
128
}
128
}
129
	</script>
129
	</script>
130
</head>
130
</head>
131
<body style="margin: 10px">
131
<body style="margin: 10px">
132
	<table style="height: 100%" cellspacing="5" cellpadding="0" width="100%" border="0">
132
	<table style="height: 100%" cellspacing="5" cellpadding="0" width="100%" border="0">
133
		<tr>
133
		<tr>
134
			<td>
134
			<td>
135
				<table cellspacing="0" cellpadding="0" width="100%" border="0">
135
				<table cellspacing="0" cellpadding="0" width="100%" border="0">
136
					<tr>
136
					<tr>
137
						<td style="font-weight: bold; font-size: 1.2em;">
137
						<td style="font-weight: bold; font-size: 1.2em;">
138
							FCKeditor Debug Window</td>
138
							FCKeditor Debug Window</td>
139
						<td align="right">
139
						<td align="right">
140
							<input type="button" value="Clear" onclick="Clear();" /></td>
140
							<input type="button" value="Clear" onclick="Clear();" /></td>
141
					</tr>
141
					</tr>
142
				</table>
142
				</table>
143
			</td>
143
			</td>
144
		</tr>
144
		</tr>
145
		<tr style="height: 100%">
145
		<tr style="height: 100%">
146
			<td style="border: #696969 1px solid">
146
			<td style="border: #696969 1px solid">
147
				<iframe id="xOutput" width="100%" height="100%" scrolling="auto" src="javascript:void(0)"
147
				<iframe id="xOutput" width="100%" height="100%" scrolling="auto" src="javascript:void(0)"
148
					frameborder="0"></iframe>
148
					frameborder="0"></iframe>
149
			</td>
149
			</td>
150
		</tr>
150
		</tr>
151
	</table>
151
	</table>
152
</body>
152
</body>
153
</html>
153
</html>