I am using CFINPUT with TYPE=DATEFIELD.

Here's a code exerpt (simplified a bit):
<cfform name="test" action="test.cfm">
From: <cfinput type="datefield" name="dfrom" mask="m/d/yyyy" 
onChange="javascript:ColdFusion.navigate('test2.cfm','ajaxdiv','','', 'post', 
'test');"><br>

To: <cfinput type="datefield" name="dto" mask="m/d/yyyy" 
onChange="javascript:ColdFusion.navigate'test2.cfm','ajaxdiv','','', 'post', 
'test');">

Basically the goal is be able to trigger the javascript after the person 
selects a date. With the ColdFusion.navigate function, I can have it 
dynamically show a reduced result set upon change. Now though, it doesn't seem 
to be triggering it.

>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:299006
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to