<cfoutput>
  <cfloop from="-8" to="8" index="thisOne">
    #year(dateAdd("yyyy", thisOne, now()))#
  </cfloop>
</cfoutput>

-----Original Message-----
From: Nisher [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2008 9:11 AM
To: CF-Talk
Subject: attempting to create a dropdown to select a 4 digit year value

hello,

I am attempting to create a coldfusion function that will populate a
range of years in a dropdown select box.  i would need it to select the
8 years before the current year as well as the 8 years following the
current year.

I was able to do it with javascript to populate from current to 8 years
in future but it is preferred if the javascript is avoided since some of
the users are on pc's from the stone age and have issues with javascript
compatability.

If anyone could give me a code snippet of some sort that may help me in
gaining this functionality that would be greatly appreciated.

Thanks in advance. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:313062
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to