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?
I can confirm. I have the same problem *sometimes*.
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>
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>
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.
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.
Don't see what you're looking for? Try a search.
|