cfcalendar onChange
I would like to use the cfcalendar tag to allow users to select the date without adding a submit button in the form. So I'm attempting the onChange event. The calendar displays correctly on the page but when I select a date I get an error "undefined is an invalid date or time string" . The returned URL is this mysite/POWR.cfm?selectdate=undefined
Here's the code:
<cfparam name="selectdate" default="#dateformat(now(), 'mm/dd/yyyy')#">
<cfform action="POWR.cfm" name="calendar" method="POST">
<cfcalendar name="POWR" format="Flash"
height="200" width="200"
firstdayofWeek="0"
selectedDate="#selectdate#"
onChange="getURL('POWR.cfm?selectdate='+calendar.selectedDate)">
</cfform>
Thanks for the help
