123973 go to a different error page for 1st and 2nd dial errors

This commit is contained in:
timm 1998-06-23 01:51:11 +00:00
parent 0d6134c989
commit 0ec1e3d3bf
4 changed files with 219 additions and 39 deletions

View File

@ -75,22 +75,22 @@ function checkEditMode()
pages=new Array();
pages = new Array();
pages[0]=new Array();
pages[0][0]=new page("main.htm",null,null);
pages[0][1]=new method("ipreview/inpvw1.htm","parent.content.go('Internet Preview')",true);
pages[0][2]=new method("preview/duepvw1.htm","parent.content.go('Preview')",true);
pages[0][3]=new method("intro/intro1.htm","parent.controls.checkShowIntroFlag('')",true);
pages[ 0 ] = new Array();
pages[ 0 ][ 0 ] = new page( "main.htm",null,null);
pages[ 0 ][ 1 ] = new method( "ipreview/inpvw1.htm", "parent.content.go( 'Internet Preview' )", true );
pages[ 0 ][ 2 ] = new method( "preview/duepvw1.htm", "parent.content.go( 'Preview' )", true );
pages[ 0 ][ 3 ] = new method( "intro/intro1.htm", "parent.controls.checkShowIntroFlag( '' )", true );
//pages[0][4]=new condition("intro/intro1.htm","Mode Selection","Show_Intro_Screens","yes");
//pages[0][5]=new condition("needs1.htm","Mode Selection","ForceNew","yes");
//pages[0][6]=new condition("useAcct.htm","Mode Selection","ForceExisting","yes");
//pages[0][7]=new action("accounts.htm");
pages[1]=new Array();
pages[1][0]=new page("accounts.htm",null,null);
pages[1][1]=new method("needs1.htm","parent.content.go('New Path')",true);
pages[1][2]=new method("useAcct.htm","parent.content.go('Existing Path')",true);
pages[ 1 ] = new Array();
pages[ 1 ][ 0 ] = new page( "accounts.htm", null, null);
pages[ 1 ][ 1 ] = new method( "needs1.htm", "parent.content.go( 'New Path' )", true );
pages[ 1 ][ 2 ] = new method( "useAcct.htm", "parent.content.go( 'Existing Path' )", true );
// New Account Path
@ -102,25 +102,25 @@ pages[ 2 ][ 2 ] = new method( "newAcct.htm", "parent.content.go('')", true );
pages[ 3 ] = new Array();
pages[ 3 ][ 0 ] = new page( "newAcct.htm", "New Acct Mode", "AskPersonalInfo" );
pages[ 3 ][ 1 ] = new condition( "billing.htm", "New Acct Mode", "AskPersonalInfo", "no" );
pages[ 3 ][ 2 ] = new method( "billing.htm", "parent.content.go('')", true );
pages[ 3 ][ 2 ] = new method( "billing.htm", "parent.content.go( '' )", true );
pages[ 4 ] = new Array();
pages[ 4 ][ 0 ] = new page( "billing.htm", "New Acct Mode", "AskBillingInfo" );
pages[ 4 ][ 1 ] = new condition( "modem1.htm", "New Acct Mode", "AskBillingInfo", "no" );
pages[ 4 ][ 2 ] = new method( "modem1.htm", "parent.content.go('')", true );
pages[ 4 ][ 2 ] = new method( "modem1.htm", "parent.content.go( '' )", true );
pages[ 5 ] = new Array();
pages[ 5 ][ 0 ] = new page( "modem1.htm", null, null );
pages[ 5 ][ 1 ] = new method( "dialinf1.htm", "parent.content.go('')", true );
pages[ 5 ][ 1 ] = new method( "dialinf1.htm", "parent.content.go( '' )", true );
pages[ 6 ] = new Array();
pages[ 6 ][ 0 ] = new page( "dialinf1.htm", null, null );
pages[ 6 ][ 1 ] = new method( "dialinf2.htm", "parent.content.go('')", true );
pages[ 6 ][ 1 ] = new method( "dialinf2.htm", "parent.content.go( '' )", true );
pages[ 7 ] = new Array();
pages[ 7 ][ 0 ] = new page( "dialinf2.htm", null, null );
pages[ 7 ][ 1 ] = new method( "download.htm", "parent.content.go('New Path')", true );
pages[ 7 ][ 2 ] = new method( "connect2.htm", "parent.content.go('Existing Path')", true );
pages[ 7 ][ 1 ] = new method( "download.htm", "parent.content.go( 'New Path' )", true );
pages[ 7 ][ 2 ] = new method( "connect2.htm", "parent.content.go( 'Existing Path' )", true );
pages[ 53 ] = new Array();
pages[ 53 ][ 0 ] = new page( "download.htm", null, null );
@ -203,21 +203,24 @@ pages[19][2]=new method("error.htm","parent.content.go('error.htm')",true);
// Final Screens
pages[20]=new Array();
pages[20][0]=new page("ok.htm",null,null);
pages[ 20 ] = new Array();
pages[ 20 ][ 0 ] = new page( "ok.htm", null, null );
pages[21]=new Array();
pages[21][0]=new page("okreboot.htm",null,null);
pages[ 21 ] = new Array();
pages[ 21 ][ 0 ] = new page( "okreboot.htm", null, null );
pages[ 22 ] = new Array();
pages[ 22 ][ 0 ] = new page( "error.htm", null, null );
pages[ 22 ][ 1 ] = new method( "1step.htm", "parent.content.go( 'firstDial' )", true );
pages[ 22 ][ 2 ] = new method( "register.htm", "parent.content.go( 'New Path' )", true );
pages[ 22 ][ 3 ] = new method( "connect2.htm", "parent.content.go( 'Existing Path' )", true );
pages[ 22 ][ 1 ] = new method( "register.htm", "parent.content.go( 'New Path' )", true );
pages[ 22 ][ 2 ] = new method( "connect2.htm", "parent.content.go( 'Existing Path' )", true );
pages[23]=new Array();
pages[23][0]=new page("later.htm",null,null);
pages[23][1]=new method("later.htm","parent.content.go('Done')",true);
pages[ 23 ] = new Array();
pages[ 23 ][ 0 ] = new page( "later.htm", null, null );
pages[ 23 ][ 1 ] = new method( "later.htm", "parent.content.go( 'Done' )", true );
pages[ 59 ] = new Array();
pages[ 59 ][ 0 ] = new page( "error2.htm", null, null );
pages[ 59 ][ 1 ] = new method( "1step.htm", "parent.content.go( '' )", true );
// Settings
@ -663,7 +666,8 @@ function go( msg )
{
pageName = pageHistory.substring( x + 1, pageHistory.length );
globals.document.vars.pageHistory.value = pageHistory.substring( 0, x + 1 );
if ( ( pageName == "register.htm" ) || ( pageName == "error.htm" ) )
if ( ( pageName == "register.htm" ) || ( pageName == "error.htm" )
( pageName == "error2.htm" ) )
historyCleanup = true;
}
else
@ -766,13 +770,15 @@ function go( msg )
longMsgFlag = false;
else if ( formName.indexOf( "aboutbox.htm" ) >= 0 )
longMsgFlag = false;
else if (formName.indexOf( "error.htm" ) >= 0 )
else if ( formName.indexOf( "error.htm" ) >= 0 )
longMsgFlag = false;
else if (formName.indexOf( "intro/" ) >= 0 )
else if ( formName.indexOf( "error2.htm" ) >= 0 )
longMsgFlag = false;
else if (formName.indexOf( "ipreview/" ) >= 0 )
else if ( formName.indexOf( "intro/" ) >= 0 )
longMsgFlag = false;
else if (formName.indexOf( "preview/" ) >= 0 )
else if ( formName.indexOf( "ipreview/" ) >= 0 )
longMsgFlag = false;
else if ( formName.indexOf( "preview/" ) >= 0 )
longMsgFlag = false;
if ( longMsgFlag == true )

View File

@ -21,14 +21,6 @@ function go( msg )
{
if ( parent.parent.globals.document.vars.editMode.value != "yes" )
{
if ( msg == "firstDial" )
{
if ( parent.parent.globals.document.vars.oneStepMode.value != "yes" )
{
parent.parent.globals.document.vars.tryAgain.value = "yes";
return checkData();
}
}
if ( msg == parent.parent.globals.document.vars.path.value )
{
parent.parent.globals.document.vars.tryAgain.value = "yes";

View File

@ -0,0 +1,106 @@
<!-- -*- Mode: HTML; tab-width: 8; indent-tabs-mode: nil -*-
The contents of this file are subject to the Netscape Public License
Version 1.0 (the "NPL"); you may not use this file except in
compliance with the NPL. You may obtain a copy of the NPL at
http://www.mozilla.org/NPL/
Software distributed under the NPL is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
for the specific language governing rights and limitations under the
NPL.
The Initial Developer of this code under the NPL is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998 Netscape Communications Corporation. All Rights
Reserved.
-->
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
<HTML>
<HEAD>
<TITLE>Account Setup</TITLE>
<SCRIPT LANGUAGE = "JavaScript" ARCHIVE="asw.jar" SRC="error2.js">
</SCRIPT>
<LINK REL=STYLESHEET TYPE="text/JavaScript" ARCHIVE="asw.jar" HREF="sheet.js">
</LINK>
</HEAD>
<BODY BACKGROUND="images/bg.gif" BGCOLOR="cccccc" onLoad="loadData()" ID="error2100">
<!-- The layer below contains the Account Setup identifier. -->
<LAYER NAME = "tagtext" LEFT = 420 TOP = 0 VISIBILITY = SHOW>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=200 ID="nospace">
<TR><TD HEIGHT=20 VALIGN=MIDDLE BACKGROUND="images/tag.gif">
<B CLASS="previewtag">ACCOUNT SETUP</B>
</TD></TR>
</TABLE>
</LAYER>
<!-- The layer below contains the headline of this screen -->
<P CLASS="title"><B>Connection Error...</B></P>
<!-- The layer below contains the text displayed for errors encountered while the user
is in IAS mode -->
<LAYER NAME="IAS Mode" VISIBILITY=HIDE>
<SPACER TYPE=HORIZONTAL SIZE=72>
<TABLE BORDER="0" CELLPADDING="6" CELLSPACING="0" WIDTH=470>
<TR>
<TD ALIGN=LEFT VALIGN=TOP BGCOLOR="FFFFFF">
<P ID="nomargins">Your connection to the Internet account server closed before you finished creating an account.</P>
<P ID="nomargins">If you exited the Internet account server before you were finished creating an account, you can reconnect to the server later by launching Account Setup from the Netscape Communicator folder.</P>
<P ID="nomargins">If Account Setup wasn't able to establish a connection with the Internet account server, make sure that your modem is installed properly, connected, and turned on. Also make sure that the telephone line you are using has an ordinary dial tone. When you're ready to try connecting again, click Connect Again.</P>
<P ID="nomargins">For more troubleshooting tips, click Help.</P>
</TD>
</TR>
</TABLE>
</LAYER>
<!-- The layer below contains the text displayed for errors encountered while the user
is in NCI mode -->
<LAYER NAME="NCI Mode" VISIBILITY=HIDE>
<SPACER TYPE=HORIZONTAL SIZE=72>
<TABLE BORDER="0" CELLPADDING="6" CELLSPACING="0" WIDTH=500>
<TR>
<TD ALIGN=LEFT VALIGN=TOP BGCOLOR="FFFFFF">
<P ID="nomargins">Account Setup wasn't able to establish a connection to your account. Make sure that your modem is installed properly, connected, and turned on. Also make sure that the telephone line you are using has an ordinary dial tone. When you're ready to try connecting again, click Connect Again.</P>
<P ID="nomargins">For more troubleshooting tips, click Help.</P>
</TD>
</TR>
</TABLE>
</LAYER>
</BODY>
</HTML>

View File

@ -0,0 +1,76 @@
/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
<!-- to hide script contents from old browsers
function go( msg )
{
if ( parent.parent.globals.document.vars.editMode.value != "yes" )
{
if ( msg == parent.parent.globals.document.vars.path.value )
{
parent.parent.globals.document.vars.tryAgain.value = "yes";
return checkData();
}
return false;
}
else
{
if ( msg == parent.parent.globals.document.vars.path.value )
alert( "Sorry, you cannot connect while in using the Account Setup Editor." );
return false;
}
}
function checkData()
{
return true;
}
function showErrorLayer()
{
if ( document.layers[ "IAS Mode" ] && document.layers[ "NCI Mode" ] )
{
if ( parent.parent.globals.document.vars.path.value == "Existing Path" )
{
document.layers[ "IAS Mode" ].visibility = "hide";
document.layers[ "NCI Mode" ].visibility = "show";
}
else
{
document.layers[ "IAS Mode" ].visibility = "show";
document.layers[ "NCI Mode" ].visibility = "hide";
}
}
else
setTimeout( "showErrorLayer()", 1000 );
}
function loadData()
{
setTimeout( "showErrorLayer()", 1000 );
if ( parent.controls.generateControls )
parent.controls.generateControls();
}
function saveData()
{
}
// end hiding contents from old browsers -->