Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1920 → Rev 1921

/branches/livraison_aha/api/fckeditor/editor/fckdebug.html
1,22 → 1,26
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2006 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* "Support Open Source software. What about a donation today?"
*
* File Name: fckdebug.html
* This is the Debug window.
* It automatically popups if the Debug = true in the configuration file.
*
* File Authors:
* Frederico Caldeira Knabben (fredck@fckeditor.net)
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2008 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is the Debug window.
* It automatically popups if the Debug = true in the configuration file.
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
39,15 → 43,53
oDiv = oWindow.document.getElementById('divMsg') ;
}
 
function Output( message, color )
function Output( message, color, noParse )
{
if ( !noParse && message != null && isNaN( message ) )
message = message.replace(/</g, "&lt;") ;
 
if ( color )
message = '<font color="' + color + '">' + message + '<\/font>' ;
 
window.FCKMessages[ window.FCKMessages.length ] = message ;
StartTimer() ;
}
 
function OutputObject( anyObject, color )
{
var message ;
 
if ( anyObject != null )
{
message = 'Properties of: ' + anyObject + '</b><blockquote>' ;
 
for (var prop in anyObject)
{
try
{
var sVal = anyObject[ prop ] != null ? anyObject[ prop ] + '' : '[null]' ;
message += '<b>' + prop + '</b> : ' + sVal.replace(/</g, '&lt;') + '<br>' ;
}
catch (e)
{
try
{
message += '<b>' + prop + '</b> : [' + typeof( anyObject[ prop ] ) + ']<br>' ;
}
catch (e)
{
message += '<b>' + prop + '</b> : [-error-]<br>' ;
}
}
}
 
message += '</blockquote><b>' ;
} else
message = 'OutputObject : Object is "null".' ;
 
Output( message, color, true ) ;
}
 
function StartTimer()
{
window.setTimeout( 'CheckMessages()', 100 ) ;
59,18 → 101,18
{
// Get the first item in the queue
var sMessage = window.FCKMessages[0] ;
 
// Removes the first item from the queue
var oTempArray = new Array() ;
for ( i = 1 ; i < window.FCKMessages.length ; i++ )
oTempArray[ i - 1 ] = window.FCKMessages[ i ] ;
window.FCKMessages = oTempArray ;
 
var d = new Date() ;
var sTime =
( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' +
( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' +
( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' +
var sTime =
( d.getHours() + 100 + '' ).substr( 1,2 ) + ':' +
( d.getMinutes() + 100 + '' ).substr( 1,2 ) + ':' +
( d.getSeconds() + 100 + '' ).substr( 1,2 ) + ':' +
( d.getMilliseconds() + 1000 + '' ).substr( 1,3 ) ;
 
var oMsgDiv = oWindow.document.createElement( 'div' ) ;
102,7 → 144,7
</tr>
<tr style="height: 100%">
<td style="border: #696969 1px solid">
<iframe id="xOutput" width="100%" height="100%" scrolling="auto" src="fckblank.html"
<iframe id="xOutput" width="100%" height="100%" scrolling="auto" src="javascript:void(0)"
frameborder="0"></iframe>
</td>
</tr>