Skip to main content
Participating Frequently
January 28, 2010
Question

cfinput calendar type shows up behind fields

  • January 28, 2010
  • 1 reply
  • 1759 views

I've Googled this thing to death and tried everything I can think of regarding style attributes, absolute/relative positioning, different z-index values, etc.  I've read articles about CSS bleed-through, etc.  Whether I use cfinput or regular old html input fields, I just can seem to keep this from happening.  Can anyone enlighten me?  Maybe I'm just headed down the wrong path.  Any input would be great!

Before clicking calendar:

After clicking:

code snippet:

<cfform

method="POST" action="speed.cfm" name="test">

<table class="DataGrid" cellspacing="0" cellpadding="2" rules="all" border="1" >

<tr class="DataGridHeader">

<th scope="col">Client</th><th scope="col">Project</th><th scope="col">Date</th><th scope="col">Note</th><th scope="col">Hours</th>

</tr>

<cfloop from="0" to="4" index="i">

<tr>

<td valign="top" align="center">

<select name="sIPSAccountID" onchange="">

<option value="">Client <cfoutput>#i#</cfoutput></option>

</select>

</td>

<td valign="top" align="center">

<select name="sIPSAccountID" onchange="">

<option value="">SR <cfoutput>#i#</cfoutput></option>

</select>

</td>

<td valign="top" align="center">

<cfinput type="datefield" enabled="true" name="sBeginDate#i#" value="1/26/2010">

</td>

<td valign="top" align="center"><textarea rows="2" cols="15" style="overflow:hidden;"></textarea></td>

<td valign="top" align="center"><input type="text" size="1" maxlength="2"></td>

</tr>

</cfloop>

</table>

</cfform>

This topic has been closed for replies.

1 reply

BSmithATLAuthor
Participating Frequently
February 3, 2010

Is anyone out there able to reproduce this?  I'm curious if it's just something in my code or inherently wrong with the flash calendar.  If anyone has a quick 5 min to take a look it would really help me out of a bind.  Thanks!

BSmithATLAuthor
Participating Frequently
February 4, 2010

Hmm, please pardon my extream level of sarcasim here, but either this problem is easily solvable and it's being viewed as a noob issue or an RTM issue, or it just isn't an interesting enough problem to review for the members of the forum.  Bummer :-(

Inspiring
February 4, 2010

...either this problem is easily solvable and it's being viewed as a noob issue or an RTM issue, or it just isn't an interesting enough problem to review for the members of the forum.  Bummer :-(

It's often just timing.  Since these are user to user forums, everyone has their own job to do. So people respond as time allows.  But most of the regulars here are happy to give a quick test of self-contained examples (like the one you posted) .. when they see them that is ;-)

Anyway, it is definitely a bug. You must have been using the wrong search terms.  I did a quick search and found a bunch of mentions of issues with cfinput type="datefield".  A very quick test of a suggestion from the thread below seems to work.

http://www.coldfusionguy.com/ColdFusion/blog/index.cfm/2007/11/5/CF8-AJAX-Features-CFInput-TypeDateField--CFDiv---Internet-Explorer--Glitch

<cfset maxLoop = 4>

<cfform method="POST" action="speed.cfm" name="test">
<table class="DataGrid" cellspacing="0" cellpadding="2" rules="all" border="1" >
<cfloop from="0" to="#maxLoop#" index="i">
<tr>
    <cfset zIndex = maxLoop - i>
    <cfoutput>
    <td valign="top" align="center" style="z-index: #zIndex#; position:relative;">
        <cfinput type="datefield" enabled="true" name="sBeginDate#i#" value="1/26/2010">
    </td>
    </cfoutput>
</tr>
</cfloop>
</table>
</cfform>