i don't use cfform...so not really sure what's going on. can you view
the source of the page in the browser and see that the onclick is
still there in the rendered <input> tag?
....and i'm totally not familiar with the <cfformitem>. can you not
just do a <script> tag?
On 9/20/06, Scott Hoff <[EMAIL PROTECTED]> wrote:
> I tried the following and it did not work. In the documentation of
> Coldfusion it did not include cfinput text fields as an object that coul do
> onClick. The following example did not work.
>
>
> <cfformitem type="script">
> function doFunction(ff) {
> if (ff == "00-00-0000") {
> ff.value = "";
> }
> else
> {
> alert("test")
> }
> }
> </cfformitem>
>
> <cfinput name="gDb" onClick="doFunction(gb);" mask="99-99-9999"
> validate="date" value="00000000" width="150" label="Date of Birth"
> message="Please enter your date of birth (Example: 05-07-1956)"/>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253655
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4