cf has built-in cfform fields validation. you can invoke the built-in
client-side validation by using VALIDATE attribute of <cfinput> tags,
possibly in conjunction with some other attributes, like PATTERN if you
are doing regexp validation, or RANGE for range validation.
all details are in the cfml reference manual - download from adobe.com
if you do not have one.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Pranathi Reddy wrote:
> Hi,
>
> I am confused of wat really hve to do to display error window popup if error 
> occurs.
> eg:<cfform>
>    <cfinput type="text" name="name1"value="">
>    <cfinput type="Submit" name="Submit"value="Submit">
>     </cfform
> <cfif isDefined("form.Submit")>
> <cfif not isnumeric("form.name1")>
> <cfotput>Please enter numeric values</cfoutput>
> </cfif>
> </cfif>
>
> I need the eror message to be in the alert box. I tried using like 
> <cfotput><script type="javascript">alert('Please enter numeric 
> values');</script></cfoutput>
> but didnt work....what is the best way to do it...
>
> Thanks,
> Pranathi
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321847
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