зеркало из https://github.com/mozilla/pjs.git
128 строки
4.9 KiB
HTML
128 строки
4.9 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>Netscape JavaScript Debugger Start Page</TITLE>
|
|
|
|
<SCRIPT>
|
|
var targetURL = location.search.substring(1);
|
|
</SCRIPT>
|
|
|
|
</HEAD>
|
|
|
|
<BODY BGCOLOR="#ffffff">
|
|
<CENTER><IMG src="images/jsd.gif"></CENTER>
|
|
<P>
|
|
<H2><FONT SIZE=+2>Welcome</FONT></B> to the start page for the
|
|
Netscape JavaScript Debugger. </H2>
|
|
Bookmark this page so you can easily restart the debugger.
|
|
<P>
|
|
Be sure and experiment with the <A
|
|
HREF="samples/index.html">JavaScript samples</A> included with this
|
|
release.<BR>
|
|
|
|
<BLOCKQUOTE><B>Important:</B> Please review the <A HREF="readme.txt"> README</A> file for
|
|
information about installing the debugger and getting started with
|
|
it. This is especially important for Unix users.</BLOCKQUOTE>
|
|
|
|
For information on features of this release, known problems, and
|
|
troubleshooting tips, see the
|
|
<A HREF="http://home.netscape.com/eng/Tools/JSDebugger/relnotes/relnotes11.html">Release Notes</A>.
|
|
<P>
|
|
For information on using the debugger, see <A
|
|
HREF="http://developer.netscape.com/library/documentation/jsdebug/index.htm">Getting
|
|
Started with Netscape JavaScript Debugger</A>.
|
|
|
|
<BLOCKQUOTE><B>Important:</B> When you're stopped in Netscape
|
|
JavaScript Debugger, you cannot use many features of Communicator. In
|
|
particular, you cannot use Navigator to browse web pages. For this
|
|
reason, it is recommended that you download the <A
|
|
HREF="http://developer.netscape.com/library/documentation/jsdebug/jsd.pdf">PDF
|
|
version</A> of the
|
|
getting started manual before starting the debugger. You can then
|
|
either print the PDF file or view it online with Acrobat
|
|
Reader.</BLOCKQUOTE>
|
|
|
|
|
|
<BR>
|
|
<br>
|
|
|
|
<script>
|
|
var jsdrun = window.open("", "_jsdrun","resizable,menubar=no,width=200,height=100,left=0,top=0");
|
|
|
|
|
|
// the debugger applet will set "JSDebuggerInited=1" on successful init
|
|
if( ! jsdrun.JSDebuggerInited )
|
|
{
|
|
// for some reason I thought it would be cute to animate something
|
|
// while the debugger loads.
|
|
var d = jsdrun.document;
|
|
d.writeln("<html>");
|
|
d.writeln("<head>");
|
|
d.writeln(" <title>Debugger stub</title>");
|
|
d.writeln("<script>");
|
|
d.writeln("var callcount;");
|
|
d.writeln("var visible_layer;");
|
|
d.writeln("function run(){");
|
|
d.writeln(" document.layers[visible_layer].visibility= \"hide\";");
|
|
d.writeln(" if( window.JSDebuggerInited == 1 ){");
|
|
d.writeln(" document.layers[\"exit\"].visibility= \"show\";");
|
|
d.writeln(" return;");
|
|
d.writeln(" }");
|
|
d.writeln(" if( ++callcount == 3 ) callcount = 0;");
|
|
d.writeln(" visible_layer = \"layer\" + callcount;");
|
|
d.writeln(" document.layers[visible_layer].visibility= \"show\";");
|
|
d.writeln(" setTimeout( \"run()\", 500 );");
|
|
d.writeln("}");
|
|
d.writeln("<\/script>");
|
|
d.writeln("<\/head>");
|
|
d.writeln("<body>");
|
|
d.writeln("<script>");
|
|
d.writeln(" // force an init of moja (this is necessary)");
|
|
d.writeln(" java.lang.System.out.println(\"Starting JSDebugger\");");
|
|
d.writeln("<\/script>");
|
|
d.writeln("<center>JavaScript Debugger<BR>applet stub window</center><P>");
|
|
d.writeln("<LAYER name=\"layer0\" visibility=\"hide\"><center><font color=\"red\" >Loading Debugger</font></center><BR></LAYER>");
|
|
d.writeln("<LAYER name=\"layer1\" visibility=\"hide\"><center><font color=\"green\">Loading Debugger</font></center><BR></LAYER>");
|
|
d.writeln("<LAYER name=\"layer2\" visibility=\"hide\"><center><font color=\"blue\" >Loading Debugger</font></center><BR></LAYER>");
|
|
d.writeln("<LAYER name=\"exit\" visibility=\"hide\"><center><a href='javascript:window.close()'>Exit Debugger</a></center><BR></LAYER>");
|
|
d.writeln("<script>");
|
|
d.writeln(" callcount = 0;");
|
|
d.writeln(" visible_layer = \"layer\" + callcount;");
|
|
d.writeln(" run();");
|
|
d.writeln("<\/script>");
|
|
d.writeln("<applet codebase=\".\" name=\"JSDebuggerApplet\" archive=\"jsdeb12.jar\" code=\"com.netscape.jsdebugging.ifcui.JSDebuggerApplet\" width=1 height=1 MAYSCRIPT>");
|
|
d.writeln(" <param name=\"ApplicationClass\" value=\"com.netscape.jsdebugging.ifcui.JSDebuggerApp\">");
|
|
d.writeln(" <param name=\"AppletInitProp\" value=\"JSDebuggerInited\">");
|
|
//
|
|
// Uncomment and set this to override folder choice for preferences.
|
|
// NOTE: on Mac the path needs to begin and end with slashes ('/')
|
|
//
|
|
// d.writeln(" <param name=\"PrefsDir\" value=\"/Macintosh HD/System Folder/Preferences/\">");
|
|
d.writeln("<\/applet>");
|
|
d.writeln("<\/body>");
|
|
d.writeln("<\/html>");
|
|
d.close();
|
|
}
|
|
|
|
function loadTargetURLWhenReady()
|
|
{
|
|
if( jsdrun.JSDebuggerInited )
|
|
location.href = targetURL;
|
|
else
|
|
setTimeout( "loadTargetURLWhenReady()", 500 );
|
|
}
|
|
|
|
if( targetURL && targetURL != "" )
|
|
{
|
|
document.writeln( "<HR>This window will automatically navigate to <CODE>"+targetURL+"</CODE> as soon as the debugger is finished initializing.<BR>");
|
|
loadTargetURLWhenReady();
|
|
}
|
|
else
|
|
{
|
|
document.writeln( "<HR>You can now begin to navigate in this window. The debugger starts tracking activity in all Navigator windows as soon as it finishes loading.<BR>");
|
|
}
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|