Copy link to clipboard
Copied
Has anybody ran into this error before?
window:global: _1d3 is undefined (http://localhost:8500/CFIDE/scripts/ajax/package/cfcalendar.js, line 43)
It would seem that it is related to my cfinput datefield. I have the ajaxproxyimport of rcfinput-datefield at the top of the page. What is weird is that I perform a simple cfif based upon values pulled from a db. The date is populated based upon that cfif. If nothing is pulled from the db, then it is blank. That is when I receive the error...when there is no data from the db. Here is the cfif code..
<cfif isDefined('rsEmploymentedit.employmentfrom') AND rsEmploymentedit.employmentfrom NEQ "">
<cfinput type="dateField" name="employmentfrom" mask="mm/dd/yyyy" value="#rsEmploymentedit.employmentfrom#" width="100">
<cfelse>
<cfinput type="dateField" name="employmentfrom" mask="mm/dd/yyyy" value="" width="100">
</cfif>
Thoughts?
Copy link to clipboard
Copied
So has anyone run into this before?
Copy link to clipboard
Copied
I figured it out. The issue was not with the datefield but with a cfselect statement where I was missing my IIF statement in my selected attribute.
Copy link to clipboard
Copied
Thanks for the clue! I was running into a similar error, but only in IE8 because one of my other form fields was named "length". You set me on the right path of looking at other fields in the form. Thanks!