Link to home
Start Free TrialLog in
Avatar of mudbuggle
mudbuggleFlag for United States of America

asked on

Multiple Instances of a CFFunction/CFComponent

I am having an issue calling multiple instances of a cffunction. The problem is I intermittenly get null is null errors and some of the data is jumbled. The strange part is the issue is occurring with seperate functions as well.  Any assistance would be greatly appreciated.
I have posted a simplified example of how I am calling the functions below.
I can post the actual code if needed.
example:
<cfcomponent>
<cffunction name="getMenu" returntype="query" access="remote">
<cfaurgument name="menu" required="true">
<cfquery name="getmenu" datasource="someDB">
     SELECT Title, id
     FROM someTable
     WHERE id = #menu#
</cfquery>
<cfreturn getmenu>
</cffunction>
</cfcomponent>
 
<html>
<head>
<script language="javascript" type="text/javascript">
function setMenu(obj)
{
     var params = new Object();
     params.Item = obj;
     http('POST','url.cfc?method=getMenu',makeMenu,params);
}
 
function makeMenu(obj)
{
     for(i=0;i<obj.id.length;i++)
     {
          var alter = document.getElementById(obj.id[i]);
          alter.innerHTML = ob.title[i];
     }
}
</script>
</head>
<body onload="setMenu(1);setMenu(2);setMenu(3);setMenu(4)">
     <div id="1"></div>
     <div id="2"></div>
     <div id="3"></div>
     <div id="4"></div>
</body>
</html>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of azadisaryev
azadisaryev
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mudbuggle

ASKER

I tried what you suggested however that didn't make any difference. I have attached the majority of the code however I have removed some of the url and link information for security reasons. These are all the sections of code that have the problems.

For instance when I load the page sometimes all the menus on the left side load and other times one or two will not. The marqee doesn't have any issues at all, however the calendar application isn't loading the hidden input values correctly.

The strange part is any one of the applications/functions will run completely fine by themselves. For example when you change the month on the calendar all of the hidden input values load fine. I have also used the calendar for several other applications without any issues. Yet when I initially load the page and call all of the different applications/functions then I run into the null is null errors and the hidden input values comming up incorrectly.
<!--- component.cfc --->
<cfcomponent>
<cffunction name="linkheaders" returntype="query" access="remote">
<cfquery name="getLinkHeaders" datasource="">
	SELECT *
	FROM newmenusecheaders
	WHERE secitemnum = '1' or secitemnum = '2' or secitemnum = '3' or secitemnum = '4';
</cfquery>
<cfreturn getLinkHeaders>
</cffunction>
 
<cffunction name="collapse" returntype="query" access="remote">
<cfargument name="head" required="true">
<cfset var getLinks = "">
<cfquery name="getLinks" datasource="">
	SELECT *
	FROM 
	WHERE headnum = #head#
	ORDER BY title ASC
</cfquery>
<cfreturn getLinks>
</cffunction>
 
<cffunction name="links" returntype="query" access="remote">
<cfargument name="head" required="true">
<cfquery name="getLinks" datasource="">
	SELECT *
	FROM newmenulinks
	WHERE collapsable = #head#
</cfquery>
<cfreturn getLinks>
</cffunction>
 
<cffunction name="mgmt" returntype="query" access="remote">
<cfquery name="getMgmt" datasource="">
	SELECT OPCO, Store, Type, TicketNo, Status, CAST(LastUpdateDate AS CHAR) "date", escalation	
	FROM mgmtnotifications
	WHERE status = 'Open'
</cfquery>
<cfreturn getMgmt>
</cffunction>
 
 
<cffunction name="calendar" returntype="array" output="true" access="remote">
	<cfargument name="Today" required="true" type="any">
	<cfset Day = #Day(Today)#>
	<cfset Month = #Month(Today)#>
	<cfset Year = #Year(Today)#>
	<cfset Days = #DaysInMonth(Today)# + 1>
	<cfset FirstDay = #createDate(Year, Month, 1)#>
	<cfset FirstDOM = #DayOfWeek(FirstDay)#>
	<cfset PreviousMonth = #DateFormat(DateAdd('m',-1,FirstDay),'mm-dd-yyyy')#>
	<cfset NextMonth = #DateFormat(DateAdd('m',1,FirstDay),'mm-dd-yyyy')#>
	<cfset PreviousYear = #DateFormat(DateAdd('yyyy',-1,FirstDay),'mm-dd-yyyy')#>
	<cfset NextYear = #DateFormat(DateAdd('yyyy',1,FirstDay),'mm-dd-yyyy')#>
	<cfset Mine = ArrayNew(2)>
	<cfset Mine[1][1] = #Days# - 1>
	<cfset Mine[1][2] = #Month# - 1>
	<cfset Mine[1][3] = #PreviousMonth#>
	<cfset Mine[1][4] = #NextMonth#>
	<cfset Mine[1][5] = #Year#>
	<cfset Mine[1][6] = #PreviousYear#>
	<cfset Mine[1][7] = #NextYear#>
	<cfset Mine[1][8] = #DateFormat(CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 1), "yyyy-mm-dd")#>
	<cfset Mine[1][9] = #DateFormat(DateAdd('d',-6,CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 1)), "yyyy-mm-dd")#>
	<cfset Mine[1][10] = #DateFormat(CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 8), "yyyy-mm-dd")#>
	<cfset Mine[1][11] = #DateFormat(DateAdd('d',-6,CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 8)), "yyyy-mm-dd")#>
	<cfset Mine[1][12] = #DateFormat(CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 15), "yyyy-mm-dd")#>
	<cfset Mine[1][13] = #DateFormat(DateAdd('d',-6,CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 15)), "yyyy-mm-dd")#>
	<cfset Mine[1][14] = #DateFormat(CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 22), "yyyy-mm-dd")#>
	<cfset Mine[1][15] = #DateFormat(DateAdd('d',-6,CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 22)), "yyyy-mm-dd")#>
	<cfif (7 - #DayOfWeek(CreateDate(Year, Month, 1))#) + 23 LTE #DaysInMonth(CreateDate(Year, Month, 1))#>
		<cfset Mine[1][16] = #DateFormat(CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 23), "yyyy-mm-dd")#>
		<cfset Mine[1][17] = #DateFormat(DateAdd('d',6,CreateDate(Year, Month, (7 - DayOfWeek(CreateDate(Year, Month, 1))) + 23)), "yyyy-mm-dd")#>
	</cfif>
	<cfloop from="2" to="#Days#" index="i">
		<cfset Mine[i][1] = #FirstDOM#>
		<cfset Mine[i][2] = #i# - 1>
		<cfset FirstDOM = #FirstDOM# + 1>
	</cfloop>
<cfreturn Mine>
</cffunction>
</cfcomponent>
 
<!--- Main.cfm --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> 
<cfoutput>
<cfsilent>
<cfset StartDate = "#fix(now())#">
<cfset ThisMonth = DateFormat(StartDate, "MMMM")>
<cfset ThisYear = DateFormat(StartDate, "YYYY")>
<cfset FutureYearsArray = ArrayNew(1)>
 
<cfset PastYearsArray = ArrayNew(1)>
<cfloop from="1" to="10" index="i">
	<cfset FutureYearsArray[i] = (#ThisYear# + i)>
	<cfset PastYearsArray[i] = (#ThisYear# - i)>
</cfloop>
<cfset TotalDays = DaysInMonth(StartDate)>
<cfset DATE = #DateFormat(now(),"yyyy-mm-dd")#>
	<cfset now = #DateFormat(now(),'mm-dd-yyyy')#>
	<cfset day = 1>
</cfsilent>
</cfoutput>
 
<html>
<head>
<!---Sets the color scheme for the tabs on the site also defines the tabbed items--->
<link rel="stylesheet" type="text/css" href="format.css">
 
<!---Form validation application for searching the forum--->
<script language="JavaScript" src="Javascript\CheckForm.js"></script>
 
<!--- Ajax Engine --->
<script language="javascript" src="Javascript\engine.js"></script>
 
<!--- Secondary Header Javascript --->
<script language="javascript" src="Javascript\secheader.js"></script>
 
<!--- Collapsable Header Javascript --->
<script language="javascript" src="Javascript\collapse.js"></script>
 
<!--- Links Javascript --->
<script language="javascript" src="Javascript\links.js"></script>
 
<!--- Calendar Selector Javascript --->
<script language="javascript" src="Javascript\java.js"></script>
 
<!--- Calendar Selector Javascript --->
<script language="javascript" src="Javascript\content.js"></script>
 
</head>
<cfoutput>
<body class="main" onload="getlinkheaders();gethead(1);gethead(2);gethead(3);gethead(4);GetDates('#now#');getmarquee();setInterval('getmarquee()',300000)">
</cfoutput>
<center>
<div class="maintbl">
	<div class="linkstbl" id="yay"></div>
	<div class="contenttbl">
		<marquee id="banner" scrollamount="4"onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=4">
		</marquee>
		<div class="thecontainer">
			<div class="week">S</div>
			<div class="week">M</div>
			<div class="week">T</div>
			<div class="week">W</div>
			<div class="week">T</div>
			<div class="week">F</div>
			<div class="week">S</div>	
		</div>
		<div class="thecontainer">
			<div class="week">date</div>
			<div class="week">date</div>
			<div class="week">date</div>
			<div class="week">date</div>
			<div class="week">date</div>
			<div class="week">date</div>
			<div class="week">date</div>
		</div>
		<div class="thecontainer">
		<cfoutput>
		<cfloop from="1" to="7" index="i">
			<div class="weekday" id="d#i#">!</div>
		</cfloop>
		</cfoutput>
		</div>
	</div>
	<div class="appstbl">
	<!--- Search Bars on the Right Side of the Site --->
		<div class="contain">
			<form action="search.asp?mode=DoIt" target="main_wnd" method="post" name="SearchForm" ONSUBMIT="return CheckForm();">
			<div class="search">
			<img src="icon_smile_question.gif" alt="Help" border="0">
			Ask the KB:
			</div>
			<div class="search2">
			<input type="text" name="Search" id="Search" value="" maxlength="64" class="textin">
			</div>
			<input type="hidden" name="NavCheck" value="NavCheck">
			<input type="hidden" name="andor" value="and">
			<input type="hidden" name="Forum" value="0">
			<input type="hidden" name="SearchDate" value="0">
			<input type="hidden" name="SearchMember" value="0">
			<input type="hidden" name="reclimit" value="0">
			<div class="search2"><input type="image" src="Pictures\BlueRight2.png" alt="Search"></div>
			<div class="search3"><input type="radio" name="SearchMessage" value="1" checked>Search Subject</div>
			<div class="search3"><input type="radio" name="SearchMessage" value="0">Search Message</div>
			</form>
		</div>
		<br>
		<div class="contain">
		<form action="Contacts.cfm" target="main_wnd" method="post" name="SearchContacts">
			<div class="search" colspan="2">Search Contacts:</div>
			<div class="search2"><input type="text" name="SContacts" value="" class="textin"></div>
			<div class="search2"><input type="image" src="Pictures\BlueRight2.png" alt="Search"></div>
		</form>
		</div>
		<br>
		<div class="contain">
			<div class="search">Search Support Matrix:</div>
			<form action="SupportMatrix.cfm" target="main_wnd" method="post" name="SearchSupportMatrix">
			<div class="search2"><input type="text" name="SMatrix" value="" class="textin"></div>
			<div class="search2"><input type="image" src="Pictures\BlueRight2.png" alt="Search"></div>
			</form>
			<form action="SupportMatrix.cfm" target="main_wnd" method="post" name="SearchSupportMatrix1">
			<div class="search4">OR</div>
			<div class="search2">
			<select name="SMC" class="textin">
				<option>- Select Category -</option>
			</select>
			</div>
			<div class="search2"><input type="image" src="Pictures\BlueRight2.png" alt="Search"></div>
			</form>
		</div>
		<br>
		<div class="contain">
			<div class="search">Calendar Selector</div>
			<div class="calendar" onclick="">
			<div class="headerContainer">
				<div id="Left" class="selectLeft" onmouseover="change(this.id);" onmouseout="change(this.id)"><a id="Previous" class="int"><<</a></div>
				<div id="Center" class="selectCenter"></div>
				<div id="Right" class="selectRight" onmouseover="change(this.id);" onmouseout="change(this.id)"><a id="Next">>></a></div>
			</div>
			<div class="headerContainer">
				<div id="yleft" class="selectLeft" onmouseover="change(this.id);" onmouseout="change(this.id)"><a id="Prev"><<</a></div>
				<div id="Cent" class="selectCenter"></div>
				<div id="yright" class="selectRight" onmouseover="change(this.id);" onmouseout="change(this.id)"><a id="Nxt">>></a></div>
			</div>
			<div class="weekContainer">
				<div class="days">S</div>
				<div class="days">M</div>
				<div class="days">T</div>
				<div class="days">W</div>
				<div class="days">T</div>
				<div class="days">F</div>
				<div class="days">S</div>	
			</div>
			<cfoutput>
			<cfloop from="1" to="6" index="i">
			<div id="week#i#" class="weekContainer" onclick="SelectWeek(this.childNodes[0].value">
			<input type="hidden" id="weeka#i#">
				<cfloop from="1" to="7" index="x">
				<div id="w#day#" class="perDiem" onmouseover="weekselect(this.id)" onmouseout="weekselect(this.id)"><a id="#day#"></a></div>
				<cfset day = #day# + 1>
				</cfloop>
			</div>
			</cfloop>
			<cfset day = 1>
			</cfoutput>
		</div>
	</div>	
</div>
</center>
</body>
</html>
 
<!--- java.js --->
function GetDates(obj)
{
	params = new Object();
	params.Today = obj;
	http('POST','component.cfc?method=calendar',Construct,params);
}
 
function Construct(obj)
{
	var previous = document.getElementById('Previous');
	var label = document.getElementById('Center');
	var next = document.getElementById('Next');
	var prev = document.getElementById('Prev');
	var lab = document.getElementById('Cent');
	var nxt = document.getElementById('Nxt');
	var month = new Array(12);
	month[0]="January";
	month[1]="February";
	month[2]="March";
	month[3]="April";
	month[4]="May";
	month[5]="June";
	month[6]="July";
	month[7]="August";
	month[8]="September";
	month[9]="October";
	month[10]="November";
	month[11]="December";
	previous.setAttribute('href','javascript: GetDates(\'' + obj[0][2] + '\')');
	next.setAttribute('href','javascript: GetDates(\'' + obj[0][3] + '\')')
	label.innerHTML = month[obj[0][1]];
	
	prev.setAttribute('href','javascript: GetDates(\'' + obj[0][5] + '\')');
	nxt.setAttribute('href','javascript: GetDates(\'' + obj[0][6] + '\')')
	lab.innerHTML = obj[0][4];
	for(i=1;i<=42;i++)
	{
		var day = document.getElementById(i);
		day.innerHTML = '';
	}
	for(i=1;i<obj.length;i++)
	{
		var day = document.getElementById(obj[i][0]);
		day.innerHTML = obj[i][1];
	}
	
	for(i=1;i<=6;i++)
	{
		var week = document.getElementById('weeka' + i);
		week.value = 'none';
	}
	
	var x = 1;
	for(i=7;i<14;i+=2)
	{
		var week = document.getElementById('weeka' + x);
		var a = i + 1;
		week.value = obj[0][a] + '|' + obj[0][i];
		x = x + 1;
		alert(week.value);
	}
	if(obj[0][15] != undefined)
	{
		var week1 = document.getElementById('weeka5');
		week1.value = obj[0][15] + '|' + obj[0][16];
	}
}
 
function change(obj)
{
	var node = document.getElementById(obj);
	node.style.backgroundColor = (node.style.backgroundColor != '#bcd2ee') ? '#BCD2EE' : '#EDEDED';
}
 
function weekselect(obj) 
{
	obj = obj.replace('w','');
	obj = obj * 1;
	if(obj > 1 && obj <= 7){obj = 1}
	else if(obj > 8 && obj <= 14){obj = 8}
	else if(obj > 15 && obj <= 21){obj = 15}
	else if(obj > 22 && obj <= 28)(obj = 22)
	else if(obj > 29 && obj <= 35)(obj = 29)
	else if(obj > 36 && obj <= 42){obj = 36}
	for(i=0;i<7;i++)
	{
		var node = document.getElementById('w' + obj);
		node.style.backgroundColor = (node.style.backgroundColor != '#bcd2ee') ? '#BCD2EE' : '#EDEDED';
		obj = obj + 1;
	}
}
 
function SelectWeek(obj)
{
	if(obj == 'all')
	{
	http('GET','component.cfc?method=inc',List);
	}
	else if(obj == 'none')
	{
	}
	else
	{
	params = new Object();
	var seperate = obj.split('|');
	params.Blank = obj;
	params.Start = seperate[0];
	params.Finish = seperate[1];
	http('POST','component.cfc?method=Incidents',List,params);
	}
}
 
function List(obj)
{
}
 
<!--- secheader.js --->
function getlinkheaders()
{
	http('GET','component.cfc?method=linkheaders',construct);
}
 
function construct(obj)
{
	var attach = document.getElementById('yay');
 
	for(i=0;i<obj.secitemnum.length;i++)
	{
		var contain = document.createElement('div');
		var text = document.createTextNode(obj.secheadertitle[i]);
		var div = document.createElement('div');
		var br = document.createElement('br');
		div.appendChild(text);
		div.className = 'header';
		contain.className = 'contain';
		contain.setAttribute('id','m' + obj.secitemnum[i]);
		contain.appendChild(div);
		attach.appendChild(contain);
		attach.appendChild(br);
	}
}
 
<!--- links.js --->
function getlinks(obj)
{
	var params = new Object();
	obj = obj.replace('t','');
	params.head = obj;
	http('POST','component.cfc?method=links',makelinks,params);
}
 
function makelinks(obj)
{
	var attach = document.getElementById('header' + obj.collapsable[0]);
	var pic = document.getElementById('pic' + obj.collapsable[0]);
	if(attach.childNodes.length == 1)
	{
		pic.setAttribute('src','Pictures\\Minus.gif');
		for(i=0;i<obj.itemnumber.length;i++)
		{
			var text = document.createTextNode(obj.linktitle[i]);
			var div = document.createElement('div');
			var spaced = document.createElement('div');
			var a = document.createElement('a');
			spaced.className = 'spaced';
			div.className = 'links';
			if(obj.newwnd[i] == 'yes')
			{
				a.setAttribute('href','Javascript:OpenInNew(\'' + obj.linkurl[i] + '\'\,\'' + obj.linktitle[i] + '\'\,\'' + obj.toolbars[i] + '\'\,\'' + obj.resize[i] + '\'\,\'' + obj.fullscreen[i] + '\')');
			}
			else
			{
				a.setAttribute('href',obj.linkurl[i]);
			}
			a.appendChild(text);
			div.appendChild(a);
			attach.appendChild(spaced);
			attach.appendChild(div);
		}
	}
	else
	{
		pic.setAttribute('src','Pictures\\Plus.gif');
		while(attach.childNodes.length != 1)
		{
			attach.removeChild(attach.lastChild);
		}
	}
}
 
//determines if the link is to be opened in a new window if it will be resizable
//fullscreen, have toolbars, or any combination of the three.
var newwindow;
function OpenInNew(url,name,tool,change,full)
{
	if(newwindow)
	{
		newwindow.close();
	}
	if(tool == 'yes' && change == 'yes' && full == 'yes')
	{
		newwindow=window.open(url,'NewWnd','toolbar=yes resizable=yes fullscreen=yes width=800 height=500');
	}
	else
	if(tool != 'yes' && change == 'yes' && full == 'yes')
	{
		newwindow=window.open(url,'NewWnd','toolbar=no resizable=yes fullscreen=yes width=800 height=500');
	}
	else
	if(tool == 'yes' && change != 'yes' && full == 'yes')
	{
		newwindow=window.open(url,'NewWnd','toolbar=yes resizable=no fullscreen=yes width=800 height=500');
	}
	else
	if(tool == 'yes' && change == 'yes' && full != 'yes')
	{
		newwindow=window.open(url,'NewWnd','toolbar=yes resizable=yes fullscreen=no width=800 height=500');
	}
	else
	if(tool != 'yes' && change != 'yes' && full == 'yes')
	{
		newwindow=window.open(url,'NewWnd','toolbar=no resizable=no fullscreen=yes width=800 height=500');
	}
	else
	if(tool != 'yes' && change == 'yes' && full != 'yes')
	{
		newwindow=window.open(url,'NewWnd','toolbar=no resizable=yes fullscreen=no width=800 height=500');
	}
	else
	if(tool == 'yes' && change != 'yes' && full != 'yes')
	{
		newwindow=window.open(url,'NewWnd','toolbar=yes resizable=no fullscreen=no width=800 height=500');
	}
	else
	if(tool != 'yes' && change != 'yes' && full != 'yes')
	{
		newwindow=window.open(url,'NewWnd','toolbar=no resizable=no fullscreen=no width=800 height=500');
	}
	
	if(window.focus)
	{
		newwindow.focus()
	}
	newwindow.moveTo(200,200);
}
 
<!--- collapse.js --->
function gethead(obj)
{
	var params = new Object();
	params.head = obj;
	http('POST','component.cfc?method=collapse',collapsable,params);
}
 
function collapsable(obj)
{
	var attach = document.getElementById('m' + obj.headnum[0]);
	for(i=0;i<obj.item.length;i++)
	{
		var text = document.createTextNode(obj.title[i]);
		var div = document.createElement('div');
		var pdiv = document.createElement('div');
		var tdiv = document.createElement('div');
		var pic = document.createElement('img');
		pic.setAttribute('src','Pictures\\Plus.gif');
		pic.setAttribute('id','pic' + obj.item[i]);
		div.className = 'collapsable';
		tdiv.className = 'tdiv';
		div.setAttribute('id','header' + obj.item[i]);
		tdiv.setAttribute('id','t' + obj.item[i]);
		tdiv.onclick = function(){getlinks(this.id);};
		pdiv.className = 'pdiv';
		pdiv.appendChild(pic);
		tdiv.appendChild(pdiv);
		tdiv.appendChild(text);
		div.appendChild(tdiv);
		attach.appendChild(div);
	}
}
 
<!--- format.css --->
body {
}
 
pre {
	word-wrap: break-word;
}
 
.construction {
	background-image : url(Pictures/Construct.bmp);
	background-position : center center;
	background-attachment : fixed;
	background-repeat : no-repeat;
	z-index : 100;
}
 
.head {
	height : 69px;
	position : absolute;
	right : 0px;
	top : 0px;
	z-index : 1;
}
 
.title {
	color : 006699;
	font-size : 35px;
	position : absolute;
	left : 275px;
	top : 13px;
	z-index : 2;
}
 
.admin {
	display : inline;
	border : 1px solid #ccc;
	background : #DDE0EE;
	float : right;
	line-height : 12px;
	margin-right : 4px;
	padding : 2px 2px 2px 2px;
	text-decoration : none;
	position : absolute;
	right : 20px;
	top : 32px;
	z-index : 3;
}
 
.admin a:active {
	color : #006699;
}
 
a:link {
	color : #888A8C; 
	font-size : 13px;
	font-weight:bold;
	text-decoration : none;
}
 
a:visited {
	color : #888A8C;
	font-size : 13px;
	font-weight : bold;
	text-decoration : none;
}
 
a:hover {
	color : #006699;
	font-size : 13px;
	font-weight : bold;
	text-decoration : none;
}
 
.menu {
	background : #DDE0EE;
	border : 1px solid #ccc;
	display : inline;
	line-height : 12px;
	margin-right : 4px;
	padding : 2px 2px 2px 2px;
	text-decoration : none;
	float : left;
}
.menu a:active {
	color : #006699;
}
 
.emergency {
	display : inline;
	color : #ff3300;
	border-top : 1px solid #ff3300;
	border-left : 1px solid #ff3300;
	border-right : 1px solid #ff3300;
	border-bottom : 1px solid #ccc;
	background : #DDE0EE;
	float : left;
	line-height : 12px;
	margin-right : 4px;
	padding : 2px 2px 2px 2px;
	text-decoration : none;
}
 
.emergency a:link {
	color : #ff3300;
}
 
.emergency a:visited {
	color : #ff3300;
}
 
.emergency a:active {
	color : #006699;
}
 
.header {
	border : 1px solid #006699;
	background : #006699;
	color : #FFFFFF;
	font-size : 16;
	font-weight : bold;
	text-decoration : none;
}
 
.spacer {
	border-top : 1px solid #006699;
}
 
.spaced {
	float : left;
	background : #DDE0EE;
	height : 100%;
	width : 12%;
}
 
.links {
	background : #DDE0EE;
	font-size : 15px;
	color : #0088CA:
}
 
.links a:link {
	font-size : 15px;
	color : #0088CA;
}
 
.links a:visited {
	font-size : 15px;
	color : #0088CA;
}
 
.links a:hover {
	color : #006699;
	text-decoration : none;
}
 
.searchcontacts{
	color : 006699;
	font-size : 16px;
	font-weight : bold;
	text-align : center;
	position : absolute;
	left : 1047px;
	top : 170px;
	white-space : nowrap;
}
 
.searchcontacts2{
	position : absolute;
	left : 1021px;
	top : 185px;
	white-space : nowrap;
}
 
 
.scrb{
	border : 1px solid #006699;
	padding : 0px 10px 0px 10px;
	background : #DDE0EE;
	font-weight : bold;
	color : #0088CA;
	position : relative;
	z-index : 100;
}
 
.scrb1{
 
	padding : 0px 10px 0px 10px;
	background : #006699;
	color : #FFFFFF;
	font-weight : bold;
	font-size : 18px;
	position : relative;
	z-index : 100;
	border-left : 1px solid #FFFFFF;
	border-right : 1px solid #FFFFFF;
	text-decoration : none;
}
 
.scrbblank{
	background : #dde0ee;
}
 
.adminlinks {
	border: 1px solid #006699;
	background : #DDE0EE;
	font-size : 15px;
	color : #0088CA;
	position:relative;
	z-index:100
}
 
 
.shadow_inner {
	overflow:hidden;
	position:absolute;
	top: -1000px;
	filter:alpha(Opacity=10); 
	z-index:10
}
 
 
.shadow_head {
	border : 1px solid #ccc;
	background : #DDE0EE;
	color : #888A8C;
	font-size : 16px;
	font-weight : bold;
	position : relative;
	z-index : 100;
}
 
.shadow_header {
	border : 1px solid #006699;
	background : #006699;
	color : #FFFFFF;
	font-size : 16px;
	font-weight : bold;
	position : relative;
	z-index : 100;
}
 
.shadow_link {
	border : 1px solid #006699;
	background : #DDE0EE;
	font-size : 16px;
	font-weight: bold;
	color : #0088CA;
	position : relative;
	z-index : 100;
}
 
.shadow_edit {
	border : 1px solid #006699;
	background : silver;
	font-size : 16px;
	position : relative;
	z-index : 100;
}
 
.1234{
	position : relative;
	z-index : 100;
}
 
.NewsHeader {
	font : 20px;
}
 
.NewsTitle {
	font : 16px;
	color : #000000;
	font-weight : bold;
}
 
 
.NewsEffect {
	font : 12px;
	color : #006699;
	font-weight : bold;
}
 
.NewsInfo {
	color : #666666;
	font-size : 14px;
	font-weight : bold;
	text-decoration : none;
}
 
.EventsG{
	border-right : 1px solid #006699;
	width : 366px;
	text-align : center;
}
 
.EventsT{
	width : 366px;
	text-align : center;
}
 
.content{
	width : 735px;
	text-align : center;
	vertical-align : text-top;
	font-size : 25px;
}
 
.tblfx {
	table-layout : fixed;
}
 
.txtrea {
	white-space : normal;
}
 
/*LEFT NAV BAR FORMATING*/
.collapsable {
	text-align : left;
	background : #DDE0EE;
	font-size : 15px;
	font-weight : bold;
	color : #0088CA:
	width : 90%;
}
 
.pdiv {
	float : left;
	text-align : center;
	height : 100%;
	vertical-align : middle;
	width : 7%;
	cursor : pointer;
}
 
.tdiv {
	text-align : left;
	background : #DDE0EE;
	font-size : 15px;
	font-weight : bold;
	color : #0088CA:
	width : 100%;
	cursor : pointer;
}
/*END OF LEFT NAV FORMATING*/
 
/*MENU1.CFM FORMATING*/
.main {
	background-color : transparent;
	background-image : url(Pictures/GiantLHGH1.jpg);
	background-position : center center;
	background-attachment : fixed;
	background-repeat : no-repeat;
}
 
.maintbl{
	border-top : 2px solid #ccc;
	width : 100%;
}
 
.mtitle {
	float : left;
	font-size : 15px;
	color : blue;
	font-weight : bold;
}
 
.mdetail {
	float : left;
	font-weight : bold;
}
 
.contenttbl {
	float : left;
	margin-top : .5%;
	margin-left : .8%;
	border : 1px solid;
	width : 66%;
}
 
.appstbl {
	margin-top : .5%;
	margin-right : .5%;
	float : right;
	width : 15%;
}
 
.linkstbl {
	margin-top : .5%;
	margin-left : .5%;
	float : left;
	text-align : center;
	width : 15%;
	font-size : 100%;
}
 
.search {
	float : left;
	width : 100%;
	border : 1px solid #006699;
	background : #006699;
	color : #FFFFFF;
	font-size : 16px;
	font-weight : bold;
	text-decoration : none;
}
 
.search2{
	margin-left : 1%;
	float : left;
	background : #DDE0EE;
}
 
.search3{
	float : left;
	background : #DDE0EE;
	font-size: 12px;
	white-space : nowrap;
}
 
.search4 {
	float : left;
	font-weight : bold;
	width : 100%;
}
 
.contain {
	border : 1px solid;
	width : 100%;
	background : #DDE0EE;
}
 
.contain form {
   margin: 0px;
}
 
.textin {
	width : 80%;
}
.thecontainer {
	margin-left : 3%;
}
 
.week {
	float : left;
	width : 13.5%;
	height : 20px;
	border : 1px solid;
}
 
.weekday {
	float : left;
	width : 13.5%;
	height : 200px;
	border : 1px solid;
}
/*END OF MENU1.CFM FORMATING*/
 
/*CALENDER FORMATTING*/
.calendar {
	position : relative;
	width : 97%;
	margin-left : 3%;
	margin-top : 1px;
	margin-bottom : 1px;
}
 
.headerContainer {
	width : 100%;
	height : 14%;
}
 
.weekContainer {
	height : 15%;
}
 
.selectLeft {
	background : #EDEDED;
	position : relative;
	float : left;
	width : 27%;
	border : 1px solid;
	text-align : center;
	font-weight : bold;
}
 
.selectLeft a:link {
	width : 100%;
	color : #000000;
}
 
.selectLeft a:visited {
	color : #000000;
}
 
.selectLeft a:active {
	color : #000000;
}
 
.selectLeft a:hover {
	color : #000000;
}
 
.selectCenter {
	background : #DEDEDE;
	position : relative;
	float : left;
	width : 41%;
	border : 1px solid;
	text-align : center;
	font-weight : bold;
	overflow : hidden;
}
 
.selectRight {
	background : #EDEDED;
	position : relative;
	float : left;
	width : 27%;
	border : 1px solid;
	font-weight : bold;
}
 
.selectRight a:link {
	width : 100%;
	height : 100%;
	display : block;
	color : #000000;
}
 
.selectRight a:visited {
	color : #000000;
}
 
.selectRight a:active {
	color : #000000;
}
 
.selectRight a:hover {
	color : #000000;
}
 
.days {
	background : #C0C0C0;
	float : left;
	width : 13%;
	height : 15%;
	border : 1px solid;
	font-weight : bold;
	text-align : center;
}
 
.perDiem {
	background : #EDEDED;
	float : left;
	width : 13%;
	height : 19px;
	font-family : cursive;
	font-size : 12px;
	border : 1px solid;
	text-align : center;
}
 
/*END OF CALENDAR FORMATING*/
 
#EMGMT {
}
 
* html #EMGMT { 
/*\*/
	position: absolute; 
	top: expression((((document.body.clientHeight / 2) - 272) + (ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop)) + 'px');
	left: expression((((document.body.clientWidth / 2) - 278) + (ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft)) + 'px');
	
/**/ 
}

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Just an fyi... I won't be able to apply this until Sunday. From my understanding the cfqueryparam isn't needed when using arguments. The same security can be applied through the cfargument tag, or am I incorrect?

Also I scoped all of the variables for the calendar cffunction and it didn't help, the values it should have passed were still showing up incorrect. I since removed the scoping, because it didn't seem to make any difference.

This time I'll go through and scope my js as well as my cfm and see if that makes any difference. Thanks for all the help. I'll let you know Sunday.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for the fast and easy answers. I scoped all of the cfm and java that seems to have corrected the issue, apparently there where issues with the java as well. I'll have to keep that in mind from now on. Also duncan thank you for the excellent resources you posted. I have also made changes to all of my web apps to include cfqueryparam statement.