Ask a Question related to Macromedia ColdFusion, Design and Development.
-
lingo_user #1
unable to nest cfif tags
I keep getting this error message:
"Context validation error for tag cfif.
The start tag must have a matching end tag. ...."
when I try to do this
Code Sample
<cfif getProjectHours.recordCount GTE rowIndex>
<cfset startTijd = #TimeFormat(getProjectHours.startTijd[rowIndex],
"HH:mm:ss")#>
<cfif URL.rowId EQ getProjectHours.startTijd[rowIndex]>
<cfif URL.action EQ "timing">
#startTijd#
<cfelse>
<cfif URL.action EQ "edit">
<input type="text" name="startTijd" value="#startTijd#" class="inputField">
</cfif>
</cfif>
<cfelse>
<a
href="#CGI.SCRIPT_NAME#?projectId=#URL.projectId#& action=edit&#&rowId=#getProjec
tHours.id[rowIndex]#" class="link">#startTijd#</a>
</cfif>
<cfelse>
</cfif>
afaics there are no cfif tags left without an /cfif tag.... Or am I wrong?
Or is this a setting in the cf administrator that prohibits these constructs?
Or is this not possible in coldfusion?
Marc
lingo_user Guest
-
How to treat template tags as comment tags?
Hi all, I am using DW MX to edit templates for a FreeMarker application. The template tag fromat is like so: <ul> <#list birds as bird>... -
CFIF help
I have an HTML that has a list of names pulled from a Database. In my HTML table my headers are Read, Write, Release, View For each employee that... -
cfif being ignored
I wanted this to only execute if FORM.rp_image does not = defaultImg.gif but it seems to always run. I thought the syntax was okay but maybe not. ... -
Nest DataList in DataGrid
I need to nest a datalist in a column of a datagrid. There are a hundred articles on doing this, but not one shows how to fire an ItemDataBound... -
Using ParseChildren attribute to load child tags - VS removes tags
I am building a poll control, nested in the tag I have child tags to setup the poll options. Everything works fine, but when I edit a property in... -
jdeline #2
Re: unable to nest cfif tags
The code fragment you posted is syntatically correct and should work. Are you sure you don't have an extraneous <CFIF> or </CFIF> before or after this fragment?
jdeline Guest
-
lingo_user #3
Re: unable to nest cfif tags
well I checked and re-checked and changed a lot. Now it's working so I can't
exactly point to what it was that caused the problem but probably it was some
tag - mismatch somewhere else...
thanks for the help anyway!
lingo_user Guest



Reply With Quote

