/    Sign up×
Community /Pin to ProfileBookmark

Javascript and Coldfusion

[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]

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @dthatsme spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...