I do not know how to fix the problem but I think I can clarify the general
issue.
The datepicker is not causing the onChange event to fire. Run the following
code on your server and you will see the 'Hi' alert if you manually alter the
date field and press the tab key or the submit button. However, if you just use
the datepicker, you do not see a 'Hi' message when the date field is changed
and you press the tab key or the submit button:
<cfform action="test.cfm" method="test" name="test" id="testit"> <table>
<tr>
<td>Date:</td>
<td><cfinput name="start_date" onChange="alert('Hi');"
type="datefield"></td>
</tr>
<tr><td colspan="2"><cfinput type="submit" name="go"
value="Submit"></td></tr> </table> </cfform>
>What kinds of form fields are you using to select the 'from' and 'to' dates?
>
><input type='text'
>Javascript or CF date selector?
><select boxes?
>
>William
>
>--
>William E. Seiter
>
>Have you ever read a book that changed your life?
>Go to: www.winninginthemargins.com
>Enter passkey: goldengrove
>
>Web Developer / ColdFusion Programmer
>http://William.Seiter.com
>
>Hi everyone,
>
>This might be a stupid question but I can't seem to trigger a javascript
>script (ColdFusion.navigate) within a CFINPUT TYPE="DATEFIELD".
>
>I have a TO and FROM dates fields and would like it to execute a Javascript
>ColdFusion.navigate command to refresh a section of the page once the TO or
>FROM fields are changed. I used OnChange but nothing happens.
>
>I used OnBlur but it only works if the mouse is over the field and leaves
>it.
>I used OnClick but it only works if someone clicks on the field (not after
>they click on the selected date).
>
>Am I missing something that would make it work?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299004
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4