PDA

View Full Version : Moving a site to a host with older version of Cold Fusion



galgoz
30 Jun 2006, 03:41 PM
I am moving a website and I haven't messed with cold fusion and the code was written in CFMX and the host only has CF5.

I get this error.
Just in time compilation error

An unknown attribute 'label' has been encountered at document position (217:36) to (217:40) while processing tag CFSELECT. This tag can only take the following attributes:

* CLASS
* DISPLAY
* ID
* MESSAGE
* MULTIPLE
* NAME
* ONBLUR
* ONCHANGE
* ONCLICK
* ONDBLCLICK
* ONERROR
* ONFOCUS
* PASSTHROUGH
* QUERY
* REQUIRED
* SELECTED
* SIZE
* STYLE
* TABINDEX
* VALUE

How do I have a label on this? Plain text is fine but I don't know how to do it in this form.
This is the secion of code.


Attach Code

<cfselect name="Start" label="Start Time:" size="1">
<cfset dTime = createTime("8", "00", "00")>
<cfset ampm = "AM">
<cfloop index="i" from="1" to="48" step="1">
<cfset vdHour = hour(dTime)>
<cfset vdMinute = minute(dTime)>
<cfif vdHour IS "12">
<cfset ampm = "PM">
</cfif>
<cfif vdHour GT "12">
<cfset vdHour = vdHour - 12>
</cfif>
<cfset vdTime = vdHour & ":" & numberFormat(vdMinute, "00") & " " & ampm>
<option <cfoutput>#vdTime#>#vdTime#</cfoutput>
</option>
<cfset dTime = dateAdd("n", 15, vdTime)>
</cfloop>

</cfselect>