- see footer for list info -<
or not using cfform at all..

*mutter* *grumble*

On 3/19/07, Duncan Cumming <[EMAIL PROTECTED]> wrote:

>- see footer for list info -<
onkeypress is not an attribute of the cfinput tag.  there's onkeyup and
onkeydown.  but you might be better using mask="9"
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000279.htm


Duncan Cumming
New Media Developer
Customer Relations Management / Education
Fife Council
700 4105 / 01592 414105

>>> [EMAIL PROTECTED] 19/03/2007 09:34 >>>
>- see footer for list info -<
I have some code which is a test form.
<CFFORM ACTION="test.cfm" METHOD="POST">
<CFINPUT onkeypress="return isNumberKey(event)" type="text" name="txtChar"
REQUIRED="yes" MESSAGE="please enter field">
</CFFORM>

Simply a field which is required but also needs to be only numbers.
When Coldfusion processes it ends up as


<FORM NAME="CFForm_1" ACTION="test.cfm" METHOD="POST" onSubmit="return
_CF_checkCFForm_1(this)">
<INPUT TYPE="text" NAME="txtChar">
</FORM>

Coldfusion has removed the javascript i added.
Anyone had this problem?
If I make cfinput only input its fine but then i can't use the required
attribute.

Any ideas?
Thanks, i know it Monday.
Allan




---------------------------------
All New Yahoo! Mail * Tired of unwanted email come-ons? Let our SpamGuard
protect you.
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<


**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed
and should not be disclosed to any other party.
If you have received this email in error please notify your system manager
and the sender of this message.

This email message has been swept for the presence of computer viruses but
no guarantee is given that this e-mail message and any attachments are free
from viruses.

Fife Council
Tel: 08451 55 00 00
************************************************

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
-<

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
- Lists hosted by www.Gradwell.com -<
- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to