home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Reverse Code Engineering RCE CD +sandman 2000
/
ReverseCodeEngineeringRceCdsandman2000.iso
/
RCE
/
Seeker
/
seekers_spy.txt
< prev
next >
Wrap
Text File
|
2000-05-25
|
5KB
|
163 lines
// seekers_spy.js
// Seeker's javascript 'debugger' ;)
// Version 1.2
// 31.05.1999
// part ONE of my javascript-debugging-tools-library
//****************************************+
// feel free to use it (but leave my name, s'il vous plait
// should you have some intersting additions :
// please mail them to : The_Seeker@gmx.net - Thanx in advance
//*********
// HISTORY
// V.1.2 - 30.05.99
// added function Show_Win_Part_HTML (label, message)
// just because I needed it for Fravia's 3rd javascript-entrance
// sorry for the spaces, but got no other solution til now
// V.1.1 - 25.05.99
// I disliked showing the debug in a form
// so I cut the next 3 functions out in version 1.1
//function Form_Show (message)
//function Form_Show_LF (message)
//function Form_Show_Clear ()
//**********
//function Show_Win (label, message) use it like an alert-box
// label == your text-explanation
// message == the value you like to watch
//function Show_Win_LF (label, message) same as above,
// with linefeed
//function Show_Win_Part_HTML (label, message) useful if you have to print some PART
// of a HTML-Code
// for example :
<!-- <center><Table border=1><TR><td><Font size=+3>D -->
//function Show_Win_LF_Func (label, message) same as Show_Win_LF
// + shows the actual function-name
//function Show_Win_Skip () just a linefeed
//function Show_Win_Dummy () just some empty space
// to continue with your output in the same line
// function teatime () ;)
//function Show_Win_Close() guess :)
// use The Spy with this code at the beginning of your program :
// <SCRIPT LANGUAGE="JavaScript" SRC="seekers_spy.js"></SCRIPT>
// YES, correct, the following code could be shortened - but in THIS way it should be easier to understand
// hope so ;)
var Win_Show;
function Show_Win (label, message)
{
Win_Show = window.open('', 'Spy','toolbar=no,scrollbars=yes,width=600,height=400,resizable=yes');
if (Win_Show != null)
{
if (Win_Show.opener == null)
Win_Show.opener = self;
}
if (Win_Show == null)
alert ("Problem creating window, restart your browser");
if(message != null)
{
Win_Show.document.write(label + ' = ' + message);
}
}
function Show_Win_LF (label, message)
{
Win_Show = window.open('', 'Spy','toolbar=no,scrollbars=yes,width=600,height=400,resizable=yes');
if (Win_Show != null)
{
if (Win_Show.opener == null)
Win_Show.opener = self;
}
if (Win_Show == null)
alert("Problem creating window, restart your browser");
if(message != null)
{
Win_Show.document.write(label + " = " + message+"<DT>");
}
}
function Show_Win_Part_HTML (label, message)
{
Win_Show = window.open('', 'Spy','toolbar=no,scrollbars=yes,width=600,height=400,resizable=yes');
if (Win_Show != null)
{
if (Win_Show.opener == null)
Win_Show.opener = self;
}
if (Win_Show == null)
alert("Problem creating window, restart your browser");
if(message != null)
{
var len=message.length
Win_Show.document.write (label + " = ")
for (i=0; i<len; i++)
Win_Show.document.writeln(message.charAt(i));
}
}
function Show_Win_LF_Func (label, message)
{
Win_Show = window.open('', 'Spy','toolbar=no,scrollbars=yes,width=600,height=400,resizable=yes');
if (Win_Show != null)
{
if (Win_Show.opener == null)
Win_Show.opener = self;
}
if (Win_Show == null)
alert("Problem creating window, restart your browser");
if(message != null)
{
var funcName = Show_Win_LF_Func.caller.toString();
funcName = funcName.substring(10, funcName.indexOf(")") +1)
Win_Show.document.write("function " + funcName + " : " + label + " = " + message+"<DT>");
}
}
function Show_Win_Skip ()
{
Win_Show = window.open('', 'Spy','toolbar=no,scrollbars=yes,width=600,height=400,resizable=yes');
if (Win_Show != null)
{
if (Win_Show.opener == null)
Win_Show.opener = self;
}
if (Win_Show == null)
alert("Problem creating window, restart your browser");
Win_Show.document.write("<BR>");
}
function Show_Win_Dummy ()
{
Win_Show = window.open('', 'Spy','toolbar=no,scrollbars=yes,width=600,height=400,resizable=yes');
if (Win_Show != null)
{
if (Win_Show.opener == null)
Win_Show.opener = self;
}
if (Win_Show == null)
alert("Problem creating window, restart your browser");
Win_Show.document.write("_____");
}
function teatime()
{
alert ("let's have a break");
}
function Show_Win_Close()
{
Win_Show.focus();
Win_Show.document.close();
}