CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 control validation jungle

Print topic Send  topic

Author Message
cexpert
Posted: 04/02/2005, 1:16 AM

ASP/javascript client

I am a little lost through the différent ways to validate a control in an
editable grid

I need to check if i get a valid date as soon as the relative control is
changed and lost the focus ( to set another control value ) and don't want
to wait the form validation.

which kind of validation can i use in the control's On Change Event, or use
the Datas's input validation ?

My différents tests didn't gave me the wished result.

Nicole

Posts: 586
Posted: 04/02/2005, 6:39 AM

You can use client side validation. Assign Regular Expression Validation action and enter a regular expression to validate field.
_________________
Regards,
Nicole
View profile  Send private message
cexpert
Posted: 04/02/2005, 11:32 PM

I try this ( and tried before) for testing (with a "A" entry to work with
the simpliest regular expression as possible)
what i see in HTML code for OnChange function:

//Regular Expression Validation @49-5EF7290A
var hab_date_validRegExp = /^(A)$/;
if(!hab_date_validRegExp.test(document.hab_date_valid.value)) {
alert("pas un A");
document.hab_date_valid.focus();
return false;
}

it looks OK, but in run time i get a javascript message error :
document.hab_date_valid.value is not an object or is null - and doesn't work

hab_date_valid is a date control, and my test is on a text match; does it
matter ?



"Nicole" <Nicole@forum.codecharge> a écrit dans le message de news:
2424eaeb635b91@news.codecharge.com...
> You can use client side validation. Assign Regular Expression Validation
> action
> and enter a regular expression to validate field.
> _________________
> Regards,
> Nicole
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Oper


Posts: 1195
Posted: 04/03/2005, 11:51 AM

Keep in Mind that during Client Side you using JAVA and java is Case sensitive for example:
hab_date_valid Not equal Hab_date_valid

could you post the full function from the onlostfocus function?


_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.