We help IT Professionals succeed at work.
Get Started

Coldfusion 10 - the end-comment string of "--->" is showing on my page.

lanterv
lanterv asked
on
120 Views
Last Modified: 2015-04-07
I was making changes to a page.  I noticed a line like;
---> ---> ---> --->
on my page.  I looked and looked and the only instance of ---> is at the end of comments.  I added a few more <!---   ---> to the code but only the original 4 still show.

A sample output of the page is;

Services Used
---> ---> ---> --->
Bridge Staffing Placed  197489
---> --->
BS Candidate,


The code is;
<div class="PanelTab" tabindex="0">Services Used</div>
	<div class="PanelContent">
		<cfdiv bind="url:dspStatusScreen.cfm?indivNum=#indivnum#">



And the div;

<!--- dspStatusScreen.cfm --->
<cfset attributes.suppresslayout2 = "yes">
<cfparam name="IndivNum" default="">
<cfif indivNum neq "" and indivNum NEQ "0">
	<!---<cfinvoke component="control.calllist.cfc.basic" method="checkEmails" indivNum="#indivNum#" returnvariable="qEmailCheck" />
	<cfoutput>
		<cfif qEmailCheck.email_home eq "">
				<div style="color:ff0000">NO HOME EMAIL ADDRESS</div>
		</cfif>
		<cfif qEmailCheck.email_work eq "">
			<div style="color:ff0000">NO WORK EMAIL ADDRESS</div>
		</cfif>
	</cfoutput>--->
	<!--- Executive Search --->
	<cfinvoke component="cfc.basic" method="getExecSearchCandStatus" indivNum="#indivNum#" returnvariable="execSrchCandInfo" />

	<cfif execSrchCandInfo.recordcount NEQ "0">
		<table>
			<tr style="font-size:14;">
				<td>Active Executive Search Status:</td>

				<cfoutput>

				<cfif trim(execSrchCandInfo.date_of_placement) NEQ "">
					<td><strong style="color:red;">Placed on Search #execSrchCandInfo.id# on #execSrchCandInfo.date_of_placement#</strong></td>
				<cfelseif trim(execSrchCandInfo.date_of_face_to_face) NEQ "">
					<td><strong style="color:red;">FTF on Search #execSrchCandInfo.id# on #execSrchCandInfo.date_of_face_to_face#</strong></td>
				<cfelseif trim(execSrchCandInfo.date_interviewed) NEQ "">
					<td><strong style="color:red;">Intv on Search #execSrchCandInfo.id# on #execSrchCandInfo.date_interviewed#</strong></td>
				<cfelseif trim(execSrchCandInfo.date_telephoned) NEQ "">
					<td><strong style="color:red;">Tel on Search #execSrchCandInfo.id# on #execSrchCandInfo.date_telephoned#</strong></td>
				<cfelseif trim(execSrchCandInfo.date_of_resume) NEQ "">
					<td><strong style="color:red;">Res on Search #execSrchCandInfo.id# on #execSrchCandInfo.date_of_resume#</strong></td>
				<cfelse>
					<td><strong style="color:red;">on Search #execSrchCandInfo.id#</strong></td>
				</cfif>
				<td>
					<input type="button" name="checklistCandidatesES" value="Checklist ES" onclick="javascript:ColdFusion.Window.show('ChecklistCandidatesES')" style="color:yellow;background:purple">
				</td>
				</cfoutput>

			</tr>
		</table>
	</cfif>

	<cfinvoke component="cfc.basic" method="getExecSearchCandStatusOffLimit" indivNum="#indivNum#" returnvariable="execSrchCandInfoOL" />
	<cfset shownStatus = "">
	<cfloop query="execSrchCandInfoOL">
		<cfif execSrchCandInfoOL.date_of_placement neq "">
			<cfif shownStatus NEQ "Gone">
				<cfset shownStatus = "Placed">
			</cfif>
		<cfelse>
		<cfif execSrchCandInfoOL.date_of_face_to_face neq "" OR execSrchCandInfoOL.date_interviewed neq "" OR execSrchCandInfoOL.date_telephoned neq "" OR execSrchCandInfoOL.date_of_resume neq "">
			<cfif shownStatus NEQ "Gone" AND shownStatus NEQ "Placed">
				<cfset shownStatus = "Presented">
			</cfif>
		</cfif>
		</cfif>
	</cfloop>
	<cfif shownStatus NEQ "">
		<table>
			<cfoutput>
				<tr>
					<td>
						<strong style="color:Green; font-weight:bold;">Executive Search #shownStatus#</strong>
					</td>
				</tr>
			</cfoutput>
		</table>
	</cfif>

	<!--- Bridge Staffing --->
	<!---  --->
	<!---  --->
	<!---  --->
	<cfinvoke component="cfc.basic" method="getContractStaffingCandStatus" indivNum="#indivNum#" returnvariable="conStaffCandInfo" />
	<!--- There are candidates on active search  vjl  2015/03/11 ticket 2500 --->
	<!--- If there is a date in DP it means SOMEONE on the search was placed. If there is a date in date_of_placement it means this candidate was placed  vjl 2015/03/11 ticket 2500 --->
	<cfif conStaffCandInfo.recordcount NEQ "0">
		<table>
			<cfif conStaffCandInfo.dp gt "">  <!--- somebody has been placed on an active search --->

					<cfif conStaffCandInfo.date_of_placement NEQ "">

				<tr align="left" style="font-size:14;">
					<td>Active Bridge Staffing Status:</td>
					<cfset attributes.csid = #conStaffCandInfo.id#>
					<cfoutput>
						<td>
							<strong style="color:red;">
							Placed
							<cfif conStaffCandInfo.status eq 'F' and conStaffCandInfo.end_Date gt "#dateformat(now(),'yyyy/mm/dd')#">
								on current active Search
							<cfelseif conStaffCandInfo.searchCloseDate NEQ "">
								on past assignment on Search
							<cfelse>
								on Search
							</cfif>
							<a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a>  (#conStaffCandInfo.date_of_placement#)
							</strong>
						</td>
					<!--- <cfelseif conStaffCandInfo.date_of_face_to_face NEQ "">
						<td>
							<strong style="color:red;">FTF on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a> on #conStaffCandInfo.date_of_face_to_face#
							</strong>
						</td>
					<cfelseif conStaffCandInfo.date_interviewed NEQ "">
						<td>
							<strong style="color:red;">Intv on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a> on #conStaffCandInfo.date_interviewed#
							</strong>
						</td>
					<cfelseif conStaffCandInfo.date_telephoned NEQ "">
						<td>
							<strong style="color:red;">Tel on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a> on #conStaffCandInfo.date_telephoned#
							</strong>
						</td>
					<cfelseif conStaffCandInfo.date_of_resume NEQ "">
						<td>
							<strong style="color:red;">Res on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a> on #conStaffCandInfo.date_of_resume#
							</strong>
						</td>
					<cfelseif conStaffCandInfo.DP eq "">
						<td>
							<strong style="color:red;">on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a>
							</strong>
						</td> --->
					<td>
						<input type="button" name="checklistCandidatesCS" value="Checklist CS" onclick="javascript:ColdFusion.Window.show('ChecklistCandidatesCS')" style="color:yellow;background:purple">
					</td>
					</cfoutput>

					</cfif>
				</tr>
			<cfelse>  <!--- nobody has been placed on an active search --->
				<tr align="left" style="font-size:14;">
					<td>Active Bridge Staffing Status:</td>
					<cfset attributes.csid = #conStaffCandInfo.id#>
					<cfoutput>
					<cfif conStaffCandInfo.date_of_face_to_face NEQ "">
						<td>
							<strong style="color:red;">FTF on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a> on #conStaffCandInfo.date_of_face_to_face#
							</strong>
						</td>
					<cfelseif conStaffCandInfo.date_interviewed NEQ "">
						<td>
							<strong style="color:red;">Intv on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a> on #conStaffCandInfo.date_interviewed#
							</strong>
						</td>
					<cfelseif conStaffCandInfo.date_telephoned NEQ "">
						<td>
							<strong style="color:red;">Tel on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a> on #conStaffCandInfo.date_telephoned#
							</strong>
						</td>
					<cfelseif conStaffCandInfo.date_of_resume NEQ "">
						<td>
							<strong style="color:red;">Res on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a> on #conStaffCandInfo.date_of_resume#
							</strong>
						</td>
					<cfelseif conStaffCandInfo.DP eq "">
						<td>
							<strong style="color:red;">on Search <a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfo.id#</a>
							</strong>
						</td>
					</cfif>
					<td>
						<input type="button" name="checklistCandidatesCS" value="Checklist CS" onclick="javascript:ColdFusion.Window.show('ChecklistCandidatesCS')" style="color:yellow;background:purple">
					</td>
					</cfoutput>
				</tr>

			</cfif>
		</table>
	</cfif>

	<cfinvoke component="cfc.basic" method="getConStaffingCandStatusOffLimit" indivNum="#indivNum#" returnvariable="conStaffCandInfoOL" />
	<cfset shownStatus = "">
	<cfif conStaffCandInfoOL.recordCount GT 0>
		<cfoutput>
		<cfloop query="conStaffCandInfoOL">
			<cfif conStaffCandInfoOL.date_of_placement neq "">

				<cfset shownStatus = "Placed ">

			<cfelse>
			<cfif conStaffCandInfoOL.date_of_face_to_face neq "" OR conStaffCandInfoOL.date_interviewed neq "" OR conStaffCandInfoOL.date_telephoned neq "" OR conStaffCandInfoOL.date_of_resume neq "">
				<cfif shownStatus NEQ "Placed">
					<cfset shownStatus = "Presented ">
				</cfif>
			</cfif>
			</cfif>
		</cfloop>
		<cfif shownStatus NEQ "">
			<table>
				<cfoutput>
					<tr>
						<td>
							<strong style="color:Green; font-weight:bold;">Bridge Staffing #shownStatus#&nbsp;<a href="#request.controlURL#contractstaffing/index.cfm?fa=viewCC&cfgridkey=#conStaffCandInfo.id#" target="_blank">#conStaffCandInfoOL.id#</a></strong>
						</td>
					</tr>
				</cfoutput>
			</table>
		</cfif>
		</cfoutput>
	</cfif>

Open in new window

Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE