all groups > coldfusion flash integration > may 2007 >
You're in the

coldfusion flash integration

group:

CFcalendar onchange submit form



CFcalendar onchange submit form m NO[at]SPAM dd0g
5/17/2007 8:21:51 PM
coldfusion flash integration: I'm trying to use the CFCALENDAR to submit my form using ONCHANGE. I don't
know ActionScript, which is required by ONCHANGE, but was able to find some
code that appeared to work just fine. I was using Mozzila Firefox 2.0.0.3, but
when I use Internet Explorer 6.0.2900.2180 it doesn't register the date change.
I've tried googling a lot of different things and can't find anything on it.
Has anybody else run into this and/or have a solution? Thanks in advance.




<cfparam name="form.TestDate" default="#dateFormat(Now(),"mm/dd/yyyy")#">
<p><b><cfoutput>Date: #form.TestDate#</cfoutput></b></p>

<cfform format="html" name="TestForm" id="TestForm" action="cfcalendar.cfm">
<!--- ActionScript code below is courtesy of
http://flashmove.com/forum/showthread.php?t=14465 --->
<cfcalendar name="TestDate" selecteddate="#form.TestDate#"
onchange="getURL('javascript:document.TestForm.submit();');">
</cfform>
Re: CFcalendar onchange submit form m NO[at]SPAM dd0g
5/29/2007 3:07:04 PM
Re: CFcalendar onchange submit form BKBK
6/3/2007 7:38:32 PM
Quite clever.

AddThis Social Bookmark Button