VisualBuilder
  Home > Flex > Tutorials > Validating data - Flex Tutorial
Tell a friend
Link to us
Total Members
      Members: 84672
     
Sitemap Forum Chat
Home
Flex Tutorial Home
1 . Introduction to Flex
2 . Development and benefits of Flex
3 . Installing Flex Builder
4 . Using ActionScript in Flex application
5 . Developing Flex application in MXML
6 . User interface components
7 . Flex custom components
8 . Flex class hierarchy
9 . MXML tags
10 . How to use MXML namespaces
11 . Binding data in between components
12 . RPC services
13 . Storing data
14 . Validating data
15 . Formatting data
16 . Cascading Style Sheet
17 . Skinning
18 . Adding effect
19 . Best practices of using Flex
 
 
Flex Home
Flex Members (6)
Flex Member Articles ( 0 )
Flex Discussion
Flex Q & A ( 1 )
- Flex Ask Question
- Flex Questions
- Flex Unanswered Questions
Flex Resources
Flex Source Code (0)
Flex Articles (0)
Flex Blogs (0)
Flex Jobs (0)
Flex Components (0)
Flex Books (0)
Flex Websites (0)
Flex News (0)
 
GROUPS
.NET
ASP.NET
.NET
C#
ASP
Visual Basic
Java
Java
JSP
EJB
Other
Delphi
C++
Ajax
UML
JavaScript
PHP
Web Design
Web Hosting
SQL Server
Oracle
Project Management
More Groups

 
LEARNING CENTER
TUTORIALS
.NET
.NET Tutorial
ASP Tutorial
ASP.NET Database Tutorial
ASP.Net Security,Internationalisation And Deployment
ASP.NET Tutorial
C# Tutorial
Web Development
Flex Tutorial
HTML Tutorial
Learn AJAX Tutorial
PHP Tutorial
Software Development
Database Tutorial
SQL Tutorial
UML Tutorial
Java
Ant Tutorial
EJB 3 Tutorial
Hibernate Tutorial
Java Tutorial
Java Web Component Tutorial
Java XML Tutorial
JDBC Tutorial
JDK1.5 Tutorial
JSF Tutorial
JSP And J2EE Design Tutorial
JSP Tutorial
Spring Tutorial
Struts Tutorial

RESOURCES
Q & A (451 )
Source Code (3275 )
Articles (359 )
Books (372 )
Components (1596 )
News (892 )
Websites (1207 )

SUBMISSIONS
Submit Article
Submit Website
Submit News
Submit Source Code
Submit Component

COMMUNITY
Members Directory
Discussion Forum
Chat

SITE
About Us
Sitemap
Search
Contact Us
Link To Us
Feedback
Tell a Friend
Partners
Advertise

Flex Tutorial
 Validating data
  << Prev: Storing data Next: Formatting data >>
Flex features predefined validation mechanism to validate data. The benefits of Flex validator is that it do not eradicate the requirement of data validation on the server. But it provides a mechanism as to how, one can improving performance by using the validation services.

 
The below sample code is a use of a flex ‘Email Validator’ component which is validating the ‘txtEmail’ textbox by clicking on the ‘btnEmailSubmit’ button.

<mx:EmailValidator source="{txtEmail}" property="text" trigger="{btnEmailSubmit}" triggerEvent="click" invalid="Alert.show('Invalid Email Address');" valid="someAction()"/>

<mx:TextInput id="txtEmail" width="166"/>

<mx:Button id="btnEmailSubmit" styleName="formButton" label="Submit"/>

  << Prev: Storing data Next: Formatting data >>
Flex Tutorial Home
Give feedback and win a prize.

 
   Printer Friendly
   Email to a friend
   Add to my Favourites    
  Download PDF version
   Report Bad Submissions
   Submit Feedback
 
  Delicious   Digg   Technorati   Blink   Furl   Reddit   Newsvine   Google Click each image to add
this page to each site.
 
 
Welcome Guest Signup
MEMBER'S PANEL
EMAIL
PASSWORD
Forgot your password?
New User? Click Here!
 
Resend Activation Email!
 
SEARCH
 
 
 
ADVERTISEMENT
Partner List
Code Project
ASP Alliance
More
 
 
 
 

Home | Login | About Us | Contact Us | Privacy Policy | Advertising