Agree with Daryl, no documentation so please remove.... not helpful!
function FormVal(aKey){
if(structKeyExists(form, aKey))
return Trim(form[aKey]);
else
return "";
}
</cfscript>
<cfscript>DrawCalender("txtDOB");</cfscript>
<cfscript>DrawCalender("txtDOB",Now());</cfscript>
Agree with Daryl, no documentation so please remove.... not helpful!
Please remove this from the tutorial or in the least provide some documentaton on how to implement it. As it is, it isn't teaching me much. Thanks.
i tried it many times and it worked. also setup for leapyear. how did u use it i only tried it on version 5
does this even work? I set it up with my own date in the mydate field and get error nvalid CFML construct found on line 312 at column 59. ColdFusion was looking at the following text:
;
The CFML compiler was processing:
myDate is your own date type variable it takes 2 parameters DrawCalender(a,b) a is the name of the form field for example txtDOB after u submit, the get the selected date by form.txtDOB b - is optional parameter, meaning the Initial Date that u want to display. u can pass any date of type "date"
What about the variable myDate? Variable MYDATE is undefined.
sorry it should be like this