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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

silvera21Commented:
<cfinput name="myDate" type="datefield" />

Must be in a <cfform>.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

_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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.