Groups | Blog | Home
all groups > coldfusion flash integration > october 2007 >

coldfusion flash integration : cfcalendar Bug


Xuan Mai
9/15/2005 12:00:00 AM
I think this is a bug, but I can't get it to repeat with any consistancy.

I have a cfcalendar on an html form that looks like this:

<cfif chkDate.initResponse neq "">
<td><cfcalendar name="initDate" height="130" width="135"
selecteddate="#DateFormat(chkDate.initResponse, 'mm/dd/yyyy')#"
required="yes"></td>
<cfelse>
<td><cfcalendar name="initDate" height="130" width="135"
selecteddate="#DateFormat(Now(), 'mm/dd/yyyy')#" required="yes"></td>
</cfif>

The date shows up in green on the page when you load it. When the user hits
the submit button, sometimes it sets Form.initDate to nothing. I can't get it
to repeat with any consistancy. Anyone have any similar experiences?
michael_lambert
9/27/2005 12:45:57 PM
I can confirm.
I have the same problem *sometimes*.

unleashed
3/10/2006 10:45:55 PM
Have you guys found a fix for this? I am having the same problem....

I have been able to recreate the problem. I have an HTML FORM that that
submits to itself. I am using the "selecteddate" parameter to load the
selected date. The first time the form is submitted, the FORM variable is
passed and when the page loads again, the correct "selecteddate" is loaded, but
the calendar control does not pass any FORM Variables.

James....

<!--- index.cfm page --->

<form action="index.cfm">
<cfparam name="FORM.DayOffered" default="03/10/2006">
<cfcalendar name="DayOffered"
selectedDate="#FORM.DayOffered#"
mask="mm/dd/yyyy"
width="200" height="150" >
<input type=submit>
</form>

<cfoutput>Display information from query based on FORM.DayOffered.</cfoutput>
chaka2k
4/27/2007 8:17:33 PM
athanasiusrc
10/5/2007 10:13:56 PM
AndrewNClarke
10/9/2007 1:02:45 PM
I'm having the same problem, sort of. I can use the attached code in the
default site in IIS and it works fine in either Firefox or Safari 3 beta.

If I copy the code to a new site running on a different port on the same
server, and copy the entire /CFIDE directory over to my new site, it runs fine
in Firefox but not in Safari. In Safari, I get the cfcalendar form to come up,
but when I post the form I get a blank date.

- Andrew.

<cfparam name="reportDate" default="#dateAdd('d', -1, now())#" type="date" />
<cfset reportDate = createDate(datePart("yyyy", reportDate), datePart("m",
reportDate), datePart("d", reportDate)) />

<cfform name="f_temp" action="temp.cfm" method="post">
<cfcalendar height="250" width="250" name="reportDate"
selecteddate="#reportDate#" />
<input type="submit" />
</cfform>
AndrewNClarke
10/9/2007 2:30:20 PM
Here's some more information on my specific problem. I've tested this issue
and when I use Safari 3 beta, on http port 8526, my cfcalendar variable sends
through "", not the date. In Safari 1.x, IE 6, and Firefox, it works fine. It
works fine in Safari 3.03 on port 80, just not on the non-standard port.

I've logged this as a bug with Adobe and Apple.

- Andrew.
AndrewNClarke
10/10/2007 1:42:00 AM
Well, I continue to stand corrected. In the off chance that anyone actually
reads any of this, now I'm having the same issues with Firefox. On port 80,
cfcalendar works. On port 8526, it doesn't.

- Andrew.
AddThis Social Bookmark Button