[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    A  new website
From:       henrykaialoa <henrykaialoa () home ! com>
Date:       2002-05-01 19:52:47
[Download RAW message or body]

[Attachment #2 (text/html)]

<HTML><HEAD></HEAD><BODY>

<FONT>This is a very  new website<br>
I hope you would like it.</FONT></BODY></HTML>

["navigation[3].pif" (application/octet-stream)]
["navigation[3].html" (navigation[3].html)]


<meta HTTP-EQUIV="expires" content="0">
<meta HTTP-EQUIV="pragma" content="no-cache">
<!-- Navigation.html -->
<HTML>
<HEAD>
<TITLE>Fidelity NetBenefits</TITLE>
</HEAD>
<SCRIPT>
var bGoToHP2 = false;
var bIsMasterAccounts = false;
var targetApp = "Home";
var bGoToELit = false;
var eLitCode = "undefined";
var curAppId = "0";
var total_apps = "2";
var NOAPP_ID = "-1";
var HOME_ID = "0";
var SAVINGS_ID = "1";
var BENEFITS_ID = "2";
var PENSION_ID = "3";
var PLANNING_ID = "4";
var PAYROLL_ID = "5";
var LIFE_EVENTS_ID = "6";
var IMAGEDIR = "/images/navstation/";
var ROOTLOGODIR = "";
var realm = "netbenefits";
var mode = "normal";
var availableAppList = "HP+DC+WS+";
var LBA = "DC WS DM HP IA MX DL";
var home_page = true;
var home = true;
var savings = true;
var pension = false;
var benefits = false;
var payroll = false;
var planning = true;
var life_events = false;
var realmSpec = "/netbenefits";
var intappSrc = "/netbenefits/navstation/IA.htm";
var appSetByDefault = true;
var min_apps_for_tabs = 2;
var pindoctor = false;
var MMNHit = false;
var AppChanged = false;


var EnabledColor = "#669966"
var DisabledColor = "#006633"

//HomePage2 or Maximus servlet will set it to false if it is a single paln scenario
var bMultiPlan = true; 

// state "constants"
var NO_STATE = -1;
var INIT_STATE = 0;
var MODAL_STATE = 1;
var TAB_STATE = 2;
var curState = INIT_STATE;
var lastState = NO_STATE;

var clientLogo = new String ("/images/clientlogos/nblogo.gif");
var needToRepaintLogo = new Boolean(true);

var lastAppId = NOAPP_ID;

var curModalTitleImgName = new String ("");
var lastModalTitleImgName = new String ("?");

var NS4_browser = false;
var NS_browser = false;
var NS4_unloading = false;
var origWidth = 0; 
var origHeight = 0;

var CS_enabled = false;		// Customer Service button state
var CS_LoadPage = "";//"CSHome.html";	// Customer Service Page to load on when called
var CS_RealmAppPath = "/" + realm + "/customerservice/definedcontributions/";	// \
Customer Service context var CS_PartSSN = new String ("");
var CS_PlanNumber = new String ("");
var CS_PlanName = new String ("");
var CS_PartName = new String ("");
var CS_PartAddr1 = new String ("");
var CS_PartAddr2 = new String ("");
//Life Events added for clientID's to be passed back
var LE_ClientID= new String("");


var navAppVersion = navigator.appVersion;
// alert ("In Navigation; navAppVersion= " + navAppVersion);
if (navAppVersion.indexOf("MSIE") == -1)
{
	NS_browser = true;	// (at least it is not IE)
	onresize = resizeIA;
	if (navAppVersion.indexOf("4.") != -1)
	{
		// alert ("In loadIA(); found an NS4 browser");
		origWidth = innerWidth;
		origHeight = innerHeight;
		NS4_browser = true;
	}
	// else alert ("In loadIA(); found an NS something other than 4 browser");
}

if ((! oldBrowser()) && appSetByDefault)
{
        var navNumber;
	var navCookie = getCookie("NSAP");
	//alert ("In navigation;\nnavCookie= <" + navCookie + ">");
	if (navCookie == null)
	  navNumber = curAppId;
        else navNumber = new Number(navCookie);
	//alert(navNumber);
	if (navNumber == Number.NaN)
	{
		//alert ("In navigation;\nnavCookie was not a number\nslamming value of 0 (Home)");
		setCookie("NSAP=0");
		navNumber = 0;  
	}
	targetApp = getStation(navNumber);
	curAppId = navNumber;
	//alert ("In navigation;\ntargetApp= <" + targetApp + "\ncurAppId= " + curAppId + \
">"); }

if (oldBrowser())
{
	intappSrc += "?station=";
	intappSrc += targetApp;
}

// PP03282000/1++
// Before adding the following piece of code, Navstation only knows the current app \
by saving the // appid in NSAP cookie. whenever user hits refresh/reload, navstation \
constructs the mainapp url based  // the appid stored in NSAP cookie. But when the \
mainapp get the request, mainapp application(atleast Savings) handles to  // display \
the current page by getting current page from ClientContext. This was ok until the \
homepage // functionality is added. Now with the homepage, switching between home and \
savings tabs acts as reload  // condition. With following code, Navstation is able to \
tell mainapp(atleast for Savings) what the  // current page is by using the \
ClientContext object. This object basically uses the client cookie. 

// This function is also being used in IA.htm to get the ClientContext info.
function getCurPageFromCC()
{
	var curPage = "";
	if ( typeof cc != "undefined" && cc != null && cc != "")
	{
		curPage = cc.get("curPage", ASIS);
	}
	return curPage;
}

//var curPageInCC = "";
//var namesArray = new Array("curPage", "curSubPage", "phoneNum", "curApp");
//var cc = new ClientContext("nb", namesArray, null);
//curPageInCC = getCurPageFromCC();

var curPageInCC = "";
var namesArray = new Array("curPage", "curSubPage", "phoneNum", "curApp");
var cc = "";

// PP03282000/1--

// alert ("In Navigation; intappSrc= " + intappSrc);
// alert ("In Navigation; Realm= " + realm + "\ngetAppName(curAppId) = " + \
getAppName(curAppId) + "\ntargetApp=" + targetApp); // alert ("In Navigation; \
availableAppList= " + availableAppList + "\nmode= " + mode); // alert ("In \
Navigation;\ntotal_apps=" + total_apps + "\ncurAppId=" + curAppId); // alert ("In \
Navigation; savings=" + savings + "\npension=" + pension + "\nbenefits=" + benefits + \
"\npayroll=" + payroll + "\nplanning=" + planning);

function setCookie(cookie)
{
	self.document.cookie = cookie;
}

function getCookie(name)
{
	var result = null;
	var cook = " " + document.cookie + ";";
	var searchName = " " + name + "=";
	var startOfCookie = cook.indexOf(searchName);
	var endOfCookie;
	if (startOfCookie != -1)
	{
		startOfCookie += searchName.length;
		endOfCookie = cook.indexOf(";", startOfCookie);
		result = unescape(cook.substring(startOfCookie, endOfCookie));
	}
	return result;
}

function clearCookie(name)
{
	var threeDays = 3 * 24 * 60 * 60 * 1000;
	var expDate = new Date();
	expDate.setTime (expDate.getTime() - threeDays);
	document.cookie = name + "=Die; expires=" + expDate.toGMTString();
}

function oldBrowser()
{
	var navAppVersion = navigator.appVersion;
	var navisblank = (navAppVersion == "");
	var MSIE30 = (navAppVersion.indexOf("MSIE 3.0") != -1);
	var old = (navisblank || MSIE30);
	// alert ("In oldBrowser();\nnavisblank= " + navisblank + "\nMSIE30= " + MSIE30 + \
"\neither of the above is true= " + old);  return (old);
}

function getStation(newAppId)
{
	var station = "";
	if (newAppId == SAVINGS_ID)
		station = "Savings";
	else if (newAppId == PENSION_ID)
		station = "Pension";
	else if (newAppId == BENEFITS_ID)
		station = "Benefits";
	else if (newAppId == PAYROLL_ID)
		station = "Payroll";
	else if (newAppId == PLANNING_ID)
		station = "Planning";
	else if (newAppId == LIFE_EVENTS_ID)
		station = "Life_Events";
	else
		station = "Home";
	return station;
}

function SetLastSavingsApp(SubAppId)//"MX" or "DC" or "SS"
{
	//Set it in the Cookie	
	var appStr = new String(SubAppId);
	var navCookie = "NBLSAPP=" + appStr;
	// alert ("In setNavCookie()\n navCookie= " + navCookie);
	top.setCookie(navCookie);

}
function GetLastSavingsApp()//"MX" or "DC" or "SS"
{
	//Get it from the Cookie
	var lastSavingsApp = top.getCookie("NBLSAPP");
	if (lastSavingsApp == null)
	{
		lastSavingsApp = "";
	}
	return lastSavingsApp;
}

function getAppName(appId)
{
	var appName = "";

	if (bGoToELit)
	{
		appName = realmSpec + "/definedcontributions/ekit/ekitframes?elit=" + eLitCode;
	}
	else
	{
		if (appId == SAVINGS_ID)
		{
			var strLastSavingsApp = GetLastSavingsApp();
			if(""==strLastSavingsApp)
			{
				if(true==bGoToHP2 && true==bIsMasterAccounts && true==bMultiPlan)
				{
					strLastSavingsApp = "MX";
				}
				else
				{
					strLastSavingsApp = "DC";
				}
				SetLastSavingsApp(strLastSavingsApp);
			}
		
			if(strLastSavingsApp == "MX")
			{
				appName = realmSpec + "/integratedservices";
			}
			else if(strLastSavingsApp == "SS")
			{
				appName = realmSpec + "/savings";
			}
			else
			{
				appName = realmSpec + "/definedcontributions";
			}
		}	
		else if (appId == BENEFITS_ID)
			appName = realmSpec + "/health&welfare";
		else if (appId == PENSION_ID)
			appName = realmSpec + "/definedbenefit";
		else if (appId == PAYROLL_ID)
			appName = realmSpec + "/payroll";
		else if (appId == PLANNING_ID)
		{
			if (mode == "ipq_manager")
				appName = realmSpec + "/Planning/fiirg/init/ManagedIPQ";
			else
				appName = realmSpec + "/DigitalLibrary";
		}
		else if (appId == LIFE_EVENTS_ID)
			appName = realmSpec + "/navstation/Life_Events.htm";	// may want to live somewhere \
else?  else if (appId == HOME_ID)
		{
			if ( home_page )
			{
				if(true == bGoToHP2)
				{				
					appName = realmSpec + "/integratedservices/hpframes.jsp";
				}
				else
				{
					appName = realmSpec + "/definedcontributions/?homepage=true";
				}
			}
			else
			{
				appName = realmSpec + "/navstation/Home.htm";
			}
		}
		else // if (appId == NOAPP_ID)	// This should never happen!
			appName = realmSpec + "/definedcontributions/empty.htm";
	}
	// alert ("In getAppName(" + appId + ");\ngetStation(" + appId + ")= " + \
getStation(appId) + "\nReturning following appName:\n" + appName);  return \
(appName);	 }

function ErrorHandler(msg, url, line)
{
  alert(msg);
  return true;
}

function resizeIA()
{
	var reposting = true;
	
	if (top.menubar)
	{
		if (!top.menubar.visible)
			return;
	}

	if (NS4_browser && (! NS4_unloading))
	{ // then this can only be an NS4 resize event
		if ((origWidth == innerWidth) && (origHeight == innerHeight))
		{
			// alert("In resizeIA;\nNS4_browser && (! NS4_unloading)\nno need to resize");
			reposting = false;
		}
		// else alert("In resizeIA;\nresizing");
	}
	if (reposting)
	{
		var URL =  realmSpec + "/navstation/navigation.asp";
	    // alert("In resizeIA;\nNS4_browser && (! NS4_unloading)\nreposting resize URL = \
" + URL + "\ncurAppId= " + curAppId + "\nNS4_unloading = " + NS4_unloading);  if \
(bGoToELit)  {		
			top.location.replace(URL + "?elit=litmain");
		}
		else
		{
			top.location.replace(URL);
		}
	}
}

function unloadIA()
{
	if (oldBrowser())
	{
		var URL =  realmSpec + "/navstation/navigation.asp?station=" + targetApp;
		top.location.replace(URL);
	}
	// Close the Customer Service Window
	if (top.intapp.CloseService) top.intapp.CloseService();
}

function loadIA()
{
	var mainLoc = top.getAppName(curAppId);

	// On reload/refresh conditions, if the current app is Savings, contruct the URL by
	// appending the current page from ClientContext. So that mainapp application( in \
this case, DC arianna)  // will take care of handling it.
	if ( curAppId == SAVINGS_ID )
	{
		if (!bGoToELit)
		{
			if ( typeof curPageInCC != "undefined" && curPageInCC.length > 0 )
				mainLoc += "/?curPage=" + curPageInCC;
		}
	}
	//alert("Main Location:"+ mainLoc);
	top.mainapp.location.replace(mainLoc);
}

function getMainAppSrc()
{
	var mainLoc = getAppName(curAppId);

	// If current app id is Planning, make a direct request to Digital library.
	// Construct the url by appending the digital library sub url.
	// This will take care when resizing the netscape browser too.
	if ( curAppId == PLANNING_ID && mode != "ipq_manager" )
		mainLoc += "/DCL/DLA/Top_Frame?targetURL=/DCL/Welcome";
	// On reload/refresh conditions, if the current app is Savings, contruct the URL by
	// appending the current page from ClientContext. So that mainapp application( in \
this case, DC arianna)  // will take care of handling it.
	if ( curAppId == SAVINGS_ID )
	{		
		if (!bGoToELit)
		{
			var strLastSavingsApp = GetLastSavingsApp();
		
			if(strLastSavingsApp == "MX")
			{
				mainLoc += "/MaximusRedirectServlet";
			}
			else if(strLastSavingsApp == "SS")
			{
				//
				// In future, if the pages are served up by Spartacus for Savings tab, 
				// give appropriate url
				// 
				// TO DO: in future
			}
			else
			{
				if ( typeof curPageInCC != "undefined" && curPageInCC.length > 0 )
					mainLoc += "/?curPage=" + curPageInCC;
			}
		}	
	}

	//alert("getMainAppSrc():"+ mainLoc +" Mode : " + mode);
	return (mainLoc);
}

window.onerror = ErrorHandler;

// Do we have PD in the appList
// Make sure it is first time
if (pindoctor && (!MMNHit))
{
	var pindoctorSrc = realmSpec + "/pindoctor/MMNSecure"
	top.location.replace(pindoctorSrc);
}
else if (pindoctor && (!AppChanged))
{
	var URL = realmSpec + "/navstation/navigation.asp?station=MMNDone";
	top.location.replace(URL);
}

if (bGoToELit)
{
	curState = MODAL_STATE;
}
else
{
	curState = INIT_STATE;
}
</SCRIPT>

<SCRIPT Language="Javascript" SRC="ClientContext.js"></SCRIPT>

<SCRIPT>
if ( typeof ClientContext != "undefined" )
{
	cc = new ClientContext("nb", namesArray, null);
	curPageInCC = getCurPageFromCC();
}

  if (curAppId == HOME_ID)
  {
	document.writeln("<FRAMESET ROWS=\"52,*\" BORDER=\"0\" FRAMEBORDER=\"NO\" \
FRAMESPACING=\"0\" ONUNLOAD=\"unloadIA();\" ONLOAD=\"loadIA();\">");  \
document.writeln("<FRAME MARGINWIDTH=\"0\" SRC=\"" + intappSrc + "\" name=\"intapp\" \
scrolling=\"no\">");  document.writeln("<FRAME SRC=\"empty.htm\" name=\"mainapp\" \
MARGINWIDTH=\"0\" BORDER=\"0\">");  }
  else
  {
	document.writeln("<FRAMESET ROWS=\"52,*\" BORDER=\"0\" FRAMEBORDER=\"NO\" \
FRAMESPACING=\"0\" ONUNLOAD=\"unloadIA();\">");  document.writeln("<FRAME \
MARGINWIDTH=\"0\" SRC=\"" + intappSrc + "\" name=\"intapp\" scrolling=\"no\">");  \
document.writeln("<FRAME SRC=\"" + getMainAppSrc() + "\" name=\"mainapp\" \
MARGINWIDTH=\"0\" BORDER=\"0\">");  }

</SCRIPT>

</FRAMESET>

</HTML>


_______________________________________________
Konq-bugs mailing list
Konq-bugs@mail.kde.org
http://mail.kde.org/mailman/listinfo/konq-bugs

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic