Coldfusion Calendar?

I'm developing an appointment form where I want the User to select the date from the cfcalendar function.

Where can I get a sample code of how to implement this?
sandshakimiAsked:
Who is Participating?
 
silvera21Connect With a Mentor Commented:
<cfinput name="myDate" type="datefield" />

Must be in a <cfform>.
0
 
silvera21Commented:
<cfcalendar> is for flash forms...use the above for non flash
0
 
silvera21Commented:
But if you are, this is the general format: <cfcalendar name="startDate" selecteddate="#Form.startDate#" >
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
_agx_Commented:
Do you want a calendar or datefield? A calendar is expanded and a datefield displays in a popup window. Here's an example of both

<!--- force calendars to display the current month/year --->
<cfset initialDate = now()>
<cfform>
      This is a calendar (expanded)<br>
    <cfcalendar name="myCalendar"
        selectedDate="#initialDate#"
        width="200" height="150">
      <hr>
      This is a date field (popup)
      <cfinput type="datefield" name="myDateField" value="#initialDate#">
</cfform>

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_c_02.html
0
 
erikTsomikSystem Architect, CF programmer Commented:
you must use <cfform

And as previously stated the syntax will be <cfinput type="datefield" also the tag with the variety of flavors.
I personally like Jquery calendar . More info about <cfinput can be obtain on the Adobe site
0
 
_agx_Commented:
> <cfcalendar> is for flash forms...use the above for non flash

   No. Only for really old versions.  It's supported for html forms in CF8+
0
 
silvera21Commented:
Hmm, I have CF8, and I used it in it for a while - in HTML forms, but some things didn't work like I expected...I wish I could remember what...I just chalked it up to not being a flash form. Then again, it may have been right before I upgraded - but the calendar did work in it!
0
 
_agx_Commented:
Nope, it works fine.  Most people just get confused because it's a flash _control_, in an html form. So you need to use actionscript for certain things.  Maybe that's what you're thinking of.  There are issues with datefield's too. So Erik's suggestion of jquery is good option too.


@sandshakimi - So which one are you looking for ... expanded calendar or popup datefield?

0
 
_agx_Commented:
Here's a nice example of a jQuery calendar.  It's flashier than either the cfcalendar or datefield. But it's not built in.  

http://jqueryui.com/demos/datepicker/ (demo)
http://marcgrabanski.com/pages/code/jquery-ui-datepicker
0
 
sandshakimiAuthor Commented:
Just needed a popup date field. Thank you all. Learned a lot.
0
 
_agx_Commented:
You're welcome ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.