The Logic Behind Validating Data
Số trang: 2
Loại file: pdf
Dung lượng: 23.39 KB
Lượt xem: 15
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Behind The Logic Validating liệu Chúng tôi xác nhận những điều mỗi ngày-từ từ trong một câu (để đảm bảo chúng có ý nghĩa) để thay đổi nhận được từ mua hàng. Khái niệm về xác nhận là một thiên nhiên và dễ dàng nhất để chúng ta hiểu được. Ví dụ, kiểm tra (sau Hoa Kỳ số điện thoại): 55.534.567.
Nội dung trích xuất từ tài liệu:
The Logic Behind Validating Data < Day Day Up >The Logic Behind Validating DataWe validate things every day—from words in a sentence (to make sure they make sense)to change received from purchases. The concept of validation is a natural and easy onefor us to understand. For example, examine the following (U.S.) phone number: 555-34567. Chances are you quickly recognized the phone number to be invalid. How? Yourbrain analyzed the phone number and noted that it contained eight digits. Aftercomparing this fact to the rule that defines valid local phone numbers as those thatinclude seven digits, your brain made a determination of true (the number was valid) orfalse (it was invalid). If you determine that the number is valid, you can place the phonecall. If the number is invalid, however, your brain will log an error message—somethingsimilar to That number is wrong. I need to get the correct number and then try to call.If we were to break down the validation process, it would look similar to the following: 1. Define criteria for valid data. 2. Analyze submitted data. 3. Compare this data against defined criteria. 4. Continue if data is valid; determine and note error if data is invalid; resolve and then try again.In ActionScript, this process of analyzing information—comparing it to a set of rules andthen determining the datas validity—is known as a validation routine. Just as your brainanalyzes data instantaneously, an ActionScript validation routine takes a split second tocomplete.You usually need to validate data within a Flash application whenever you require theuser to enter information into an input text field—for example, on forms (name, address,phone number, and so on) and quizzes (to verify answers) and in e-commerce shoppingcarts (quantities, sizes, colors, and so on). < Day Day Up >
Nội dung trích xuất từ tài liệu:
The Logic Behind Validating Data < Day Day Up >The Logic Behind Validating DataWe validate things every day—from words in a sentence (to make sure they make sense)to change received from purchases. The concept of validation is a natural and easy onefor us to understand. For example, examine the following (U.S.) phone number: 555-34567. Chances are you quickly recognized the phone number to be invalid. How? Yourbrain analyzed the phone number and noted that it contained eight digits. Aftercomparing this fact to the rule that defines valid local phone numbers as those thatinclude seven digits, your brain made a determination of true (the number was valid) orfalse (it was invalid). If you determine that the number is valid, you can place the phonecall. If the number is invalid, however, your brain will log an error message—somethingsimilar to That number is wrong. I need to get the correct number and then try to call.If we were to break down the validation process, it would look similar to the following: 1. Define criteria for valid data. 2. Analyze submitted data. 3. Compare this data against defined criteria. 4. Continue if data is valid; determine and note error if data is invalid; resolve and then try again.In ActionScript, this process of analyzing information—comparing it to a set of rules andthen determining the datas validity—is known as a validation routine. Just as your brainanalyzes data instantaneously, an ActionScript validation routine takes a split second tocomplete.You usually need to validate data within a Flash application whenever you require theuser to enter information into an input text field—for example, on forms (name, address,phone number, and so on) and quizzes (to verify answers) and in e-commerce shoppingcarts (quantities, sizes, colors, and so on). < Day Day Up >
Tìm kiếm theo từ khóa liên quan:
máy tính mạng máy tính internet phần mềm ứng dụng lập trình SQL HTML sever web XMLTài liệu có liên quan:
-
Giáo trình Hệ thống mạng máy tính CCNA (Tập 4): Phần 2
102 trang 300 0 0 -
Giáo án Tin học lớp 9 (Trọn bộ cả năm)
149 trang 300 0 0 -
Bài giảng: Lịch sử phát triển hệ thống mạng
118 trang 284 0 0 -
Ngân hàng câu hỏi trắc nghiệm môn mạng máy tính
99 trang 280 1 0 -
47 trang 250 4 0
-
Đề cương chi tiết học phần Thiết kế và cài đặt mạng
3 trang 247 0 0 -
80 trang 239 0 0
-
6 trang 230 0 0
-
Giáo trình môn học/mô đun: Mạng máy tính (Ngành/nghề: Quản trị mạng máy tính) - Phần 1
68 trang 227 0 0 -
122 trang 223 0 0