<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - Using CFINPUT dateField with onChange</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_forms?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Sat, 17 May 2014 07:12:04 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-05-17T07:12:04Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/6386493?tstart=0#6386493</link>
      <description>&lt;!-- [DocumentBodyStart:d3babf10-01d0-4a3c-b531-1205ea43b6e8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Not a very elegant solution also, but it works&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Use an JavaScript onclick event in the cfform tag. &lt;/p&gt;&lt;p&gt;Check if the old value is not the same as the new value and execute your code:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfform name="form1" format="html" skin="haloBlue" style="display:inline;" &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onclick="if(document.getElementById('startdate').value != '' &amp;amp;&amp;amp; oldval != document.getElementById('startdate').value)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {alert('changed')}"&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfinput type="dateField" name="startdate" id="startdate"&amp;nbsp; style="width: 65px" mask="DD.MM.YYYY"&amp;nbsp; value="#mydate#"&amp;gt; &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cfform&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var oldval = document.getElementById('startdate').value;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;regards&lt;/p&gt;&lt;p&gt;rene&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d3babf10-01d0-4a3c-b531-1205ea43b6e8] --&gt;&lt;img src='/beacon?t=1415919887366' /&gt;</description>
      <pubDate>Sat, 17 May 2014 07:12:04 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6386493?tstart=0#6386493</guid>
      <dc:date>2014-05-17T07:12:04Z</dc:date>
      <clearspace:dateToText>5 months 1 month ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/4472373?tstart=0#4472373</link>
      <description>&lt;!-- [DocumentBodyStart:1abd49f3-7faa-460c-aa56-12b3f16e1f1a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;This may not be the most elegant solution out there, but it works okay.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;====== Javascript Code ======&lt;/p&gt;&lt;p&gt;i = 0;&lt;/p&gt;&lt;p&gt;function doSubmit(caldate) {&lt;/p&gt;&lt;p&gt;i++;&lt;/p&gt;&lt;p&gt;if (i&amp;gt;1) {&lt;/p&gt;&lt;p&gt;window.location = "index.cfm?caldate=" + document.getElementById('caldate').value;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;=====CFML Code ======&lt;/p&gt;&lt;p&gt;&amp;lt;cfform ... typical code here ....&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfinput type="datetime" id="caldate" ...typical code here .... /&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;cfajaxproxy bind="javaScript:doSubmit({caldate})"&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/cfform&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What this does is fires doSubmit each time the form controls are touched or the value is modified.&amp;nbsp; When this happens, it will increment i.&amp;nbsp; You will fire doSubmit twice (once to open the calendar and then once when a date is actually selected).&amp;nbsp; So you want to fire when i = 2 or when i &amp;gt; 1.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:1abd49f3-7faa-460c-aa56-12b3f16e1f1a] --&gt;</description>
      <pubDate>Thu, 07 Jun 2012 06:03:30 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/4472373?tstart=0#4472373</guid>
      <dc:date>2012-06-07T06:03:30Z</dc:date>
      <clearspace:dateToText>2 years 5 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/3093743?tstart=0#3093743</link>
      <description>&lt;!-- [DocumentBodyStart:182a2edd-3b77-4b8f-9cf6-e9c078a0f555] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have no idea, but I would start a new topic rather than tack it on to this one, because that question has nothing to do with the subject line.&amp;nbsp; People who might not know about onchange events but do know about enabling/displaying specific days will perhaps not see your question, as they might not bother reading it.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;--&lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:182a2edd-3b77-4b8f-9cf6-e9c078a0f555] --&gt;</description>
      <pubDate>Mon, 30 Aug 2010 12:22:59 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3093743?tstart=0#3093743</guid>
      <dc:date>2010-08-30T12:22:59Z</dc:date>
      <clearspace:dateToText>4 years 2 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/3093775?tstart=0#3093775</link>
      <description>&lt;!-- [DocumentBodyStart:3423fbc4-8125-464c-8ee0-bb5e0e16f6c8] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I do however have an issue with the cfinput type datefield.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How do you disable Saturdays and Sundays?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In Flash form and Flex, we only use disabledDays=[0,6]&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For example,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfinput &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; type="datefield"&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id="valuationDate_txt"&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="valuationDate_txt" &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mask="dd/mm/yyyy" width="50"&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value="#lsdateformat(now(),'dd/mm/yyyy')#"&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onFocus="valuationDate_txt.disabledDays = [0,6];"&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br/&gt;How do we make the disabledDays=[0,6] work with the cfinput type datefield?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks and regards.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:3423fbc4-8125-464c-8ee0-bb5e0e16f6c8] --&gt;</description>
      <pubDate>Mon, 30 Aug 2010 11:49:56 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3093775?tstart=0#3093775</guid>
      <dc:date>2010-08-30T11:49:56Z</dc:date>
      <clearspace:dateToText>4 years 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/3093764?tstart=0#3093764</link>
      <description>&lt;!-- [DocumentBodyStart:54539e6b-d812-4add-8f76-036510f16a22] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks Adam!&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I've come across a possible workaround to this issue.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You can find it here: &lt;a class="jive-link-external-small" href="http://www.coldfusionjedi.com/index.cfm/2008/10/1/Ask-a-Jedi-ColdFusion-datefieldchange-question" rel="nofollow"&gt;http://www.coldfusionjedi.com/index.cfm/2008/10/1/Ask-a-Jedi-ColdFusion-datefieldchange-qu estion&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope this helps others as well.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:54539e6b-d812-4add-8f76-036510f16a22] --&gt;</description>
      <pubDate>Mon, 30 Aug 2010 11:36:01 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3093764?tstart=0#3093764</guid>
      <dc:date>2010-08-30T11:36:01Z</dc:date>
      <clearspace:dateToText>4 years 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/3092089?tstart=0#3092089</link>
      <description>&lt;!-- [DocumentBodyStart:06ea650e-5b65-45b6-8729-c151d12c9f0b] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;From my reading of the HTML spec, it's not a bug, it's how the onchange event works.&amp;nbsp; The spec says:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;The &lt;samp&gt;onchange&lt;/samp&gt; event occurs &lt;strong&gt;when a control loses the input focus&lt;/strong&gt; &lt;em&gt;and&lt;/em&gt; its value has been modified since gaining focus&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;(My &lt;strong&gt;&lt;em&gt;emphasis&lt;/em&gt;&lt;/strong&gt;).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;(&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.w3.org/TR/html401/interact/scripts.html#adef-onchange" rel="nofollow"&gt;http://www.w3.org/TR/html401/interact/scripts.html#adef-onchange&lt;/a&gt;&lt;span&gt;)&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When changing the control's value &lt;em&gt;via script&lt;/em&gt;, the control never gets the focus, so implicitly never loses the focus, which is a prereq for the onchange event to fire.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The same thing happens if one changes a normal form input control via script.&amp;nbsp; No event fires.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;--&lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:06ea650e-5b65-45b6-8729-c151d12c9f0b] --&gt;</description>
      <pubDate>Sun, 29 Aug 2010 14:01:03 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3092089?tstart=0#3092089</guid>
      <dc:date>2010-08-29T14:01:03Z</dc:date>
      <clearspace:dateToText>4 years 3 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/3092065?tstart=0#3092065</link>
      <description>&lt;!-- [DocumentBodyStart:334a01a1-f23a-441b-9070-e1c72bcd1827] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;The onChange event doesn't work with cfinput type datefield using CFML in a plain HTML form.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In Flash form and flex, the onChange event works perfectly, i.e. whenever you choose a new date, the event fires.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In HTML form, when you choose a new date from the datefield, the event doesn't fire. You have to select the new date, then click into the textbox and hit the enter key. Then only it fires the onChange event. Very strange indeed!&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any ideas how to get this feature working or is it a bug in CF itself?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:334a01a1-f23a-441b-9070-e1c72bcd1827] --&gt;</description>
      <pubDate>Sun, 29 Aug 2010 13:37:53 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/3092065?tstart=0#3092065</guid>
      <dc:date>2010-08-29T13:37:53Z</dc:date>
      <clearspace:dateToText>4 years 3 months ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/436118?tstart=0#436118</link>
      <description>&lt;!-- [DocumentBodyStart:e48f0e10-b684-43aa-9fe1-4027818041ca] --&gt;&lt;div class="jive-rendered-content"&gt;Why don't you just use:
&lt;br/&gt;
&lt;br/&gt;&amp;lt;cfinput type="date..." name="test"
onchange="{_root.formfieldtochange.text=_root.test.text;}"&amp;gt;
&lt;br/&gt;&amp;lt;cfinput type="text" name="formfieldtochange"&amp;gt;
&lt;br/&gt;
&lt;br/&gt;Whenever you update the datepicker, it will automatically
change the value in the other field.&lt;/div&gt;&lt;!-- [DocumentBodyEnd:e48f0e10-b684-43aa-9fe1-4027818041ca] --&gt;</description>
      <pubDate>Fri, 20 Oct 2006 01:24:10 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/436118?tstart=0#436118</guid>
      <dc:date>2006-10-20T01:24:10Z</dc:date>
      <clearspace:dateToText>8 years 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/422850?tstart=0#422850</link>
      <description>&lt;!-- [DocumentBodyStart:55b25f09-1b30-4b29-b281-c62db6436ce0] --&gt;&lt;div class="jive-rendered-content"&gt;Further to this issue, consider the following basic code that
works with handling a selectedDate:
&lt;br/&gt;
&lt;br/&gt;&amp;lt;!--- Set initial dates.---&amp;gt; 
&lt;br/&gt;&amp;lt;cfparam name="Form.selectdate"
default="#dateformat(now(), 'mm/dd/yyyy')#"&amp;gt;
&lt;br/&gt;
&lt;br/&gt;&amp;lt;!--- Display the current date value. ---&amp;gt;
&lt;br/&gt;&amp;lt;cfif isDefined("Form.submitit")&amp;gt;
&lt;br/&gt; &amp;lt;cfoutput&amp;gt;&amp;lt;b&amp;gt;You selected
#Form.selectDate#&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/cfoutput&amp;gt;
&lt;br/&gt;&amp;lt;cfelse&amp;gt;
&lt;br/&gt; &amp;lt;cfoutput&amp;gt;&amp;lt;b&amp;gt;Form date is
#Form.selectDate#&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/cfoutput&amp;gt;
&lt;br/&gt;&amp;lt;/cfif&amp;gt;
&lt;br/&gt;
&lt;br/&gt;&amp;lt;b&amp;gt;Please select a date on the calendar and click
Save.&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;
&lt;br/&gt;&amp;lt;br&amp;gt;
&lt;br/&gt;&amp;lt;cfform name="form1" format="Flash" skin="haloBlue"
width="375" height="350" &amp;gt;
&lt;br/&gt; &amp;lt;cfinput type="dateField"
&lt;br/&gt; name="selectdate"
&lt;br/&gt; label="Initial date"
&lt;br/&gt; width="100"
&lt;br/&gt; value="#Form.selectdate#" &amp;gt;
&lt;br/&gt; &amp;lt;cfinput type="Submit" name="submitit" value="Save"
width="100"&amp;gt; 
&lt;br/&gt;&amp;lt;/cfform&amp;gt;
&lt;br/&gt;
&lt;br/&gt;I would like to accomplish the same thing but use onChange
instead of a submit.&lt;/div&gt;&lt;!-- [DocumentBodyEnd:55b25f09-1b30-4b29-b281-c62db6436ce0] --&gt;</description>
      <pubDate>Wed, 04 Oct 2006 19:08:21 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/422850?tstart=0#422850</guid>
      <dc:date>2006-10-04T19:08:21Z</dc:date>
      <clearspace:dateToText>8 years 1 month ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/416259?tstart=0#416259</link>
      <description>&lt;!-- [DocumentBodyStart:2ddb3e51-0aa2-4f5a-becb-7e76bc6e2f29] --&gt;&lt;div class="jive-rendered-content"&gt;I think I'm almost there with:
&lt;br/&gt; &amp;lt;CFINPUT NAME="currdate"
&lt;br/&gt; ONCHANGE="getURL('index2.cfm?CurrDate=' +
currdate.selectedDate, '_self')"
&lt;br/&gt; TYPE="datefield"
&lt;br/&gt; VALUE="#newCurrDate#" /&amp;gt;
&lt;br/&gt;
&lt;br/&gt;But it returns the value in the wrong format like:
&lt;br/&gt;index2.cfm?CurrDate=Thu%20Sep%2014%2000:00:00%20GMT-0700%202000
&lt;br/&gt;
&lt;br/&gt;How do I format/simplify the "currdate.selectedDate"?&lt;/div&gt;&lt;!-- [DocumentBodyEnd:2ddb3e51-0aa2-4f5a-becb-7e76bc6e2f29] --&gt;</description>
      <pubDate>Fri, 29 Sep 2006 14:44:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/416259?tstart=0#416259</guid>
      <dc:date>2006-09-29T14:44:09Z</dc:date>
      <clearspace:dateToText>8 years 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Using CFINPUT dateField with onChange</title>
      <link>https://forums.adobe.com/message/268863?tstart=0#268863</link>
      <description>&lt;!-- [DocumentBodyStart:a95cb575-0138-4c74-b1f7-c6fdd6606c62] --&gt;&lt;div class="jive-rendered-content"&gt;I imagine this is easy, but have tried to search here as well
as Google it and have come up empty.
&lt;br/&gt;
&lt;br/&gt;I have a CFINPUT dateField control that is OK when my form
loads, but then I want the control to capture a new date selection
from the user and update the form. I believe the onChange event is
used to process this, but I don't know how to code it so that it
will refresh the form using the new date and keep the user's date
selection.&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a95cb575-0138-4c74-b1f7-c6fdd6606c62] --&gt;</description>
      <pubDate>Fri, 29 Sep 2006 12:28:08 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/268863?tstart=0#268863</guid>
      <dc:date>2006-09-29T12:28:08Z</dc:date>
      <clearspace:dateToText>8 years 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>10</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

