[FONT=arial]Is it possible to mix coldfusion and javascript together in a form field?
I started out with a coldfusion field for a date. I need the date to be stored in a database. Now I want to add a javascript date picker but I can’t get the script to work with the coldfusion.
The javascript HTML is this:
<INPUT ID=”pubdate” TYPE=”text” NAME=”pubdate” VALUE=”” SIZE=20 MAXLENGTH=10>
<a href=”javascript:NewCal(‘pubdate’,’mmddyyyy’)”>
<img src=”cal.gif” width=”16″ height=”16″ border=”0″ alt=”Pick a date”>
</a>
And the CF code:
<CFINPUT Type=”Text” Name=”pubdate”
Value=”pubdate”
Message=”You must enter a Projected Publication Date”
Size=”20″
Required=”Yes” >
<!— <INPUT ID=”pubdate” TYPE=TEXT NAME=”pubdate” VALUE=”” SIZE=20 MAXLENGTH=10> —>
Any suggestions?[/FONT]