TAILIEUCHUNG - Handling Errors

Lỗi xử lý các dự án khác nhau đòi hỏi các giải pháp khác nhau để xử lý các lỗi đó quá trình xác nhận mang đến ánh sáng. Trong một số trường hợp, bạn có thể muốn cung cấp một chỉ số đồ họa như một X màu đỏ bên cạnh trường có chứa các lỗi; ở những người khác, một tin nhắn văn bản có thể đủ. | Handling Errors Different projects require varying solutions for handling the errors that the validation process brings to light. In some cases you may want to provide a graphical indicator such as a red X next to the field containing the error in others a text message may suffice. The conditional statement within the validation routine usually determines how to handle any error that it detects. Take for example the following if dataValid perform these actions else Execute action to denote an error Because error handling plays a major role in the validation process you should think about how you want to handle errors in a particular project or situation before you script anything else. In this exercise we ll lay the foundation for the error-handling process in our project. 1. Open in the Lesson13 Assets folder. This project contains two frame labels Registration and Confirm. We ll work on the Confirm label in a later exercise for now we ll concentrate on the Registration label which includes a form that the user must fill out and thus data that needs to be validated. The timeline contains six layers named according to their content o The Background layer contains the project s static graphical content. o The Text Components layer contains four Textinput component instances named name_ti email_ti state_ti and zip_ti and a List component instance named errorLog_lb. The Textinput instances allow the user to input name email address and so forth. The List component instance will be used to display any error messages generated during the form s validation process. o The Button Components layer contains two button component instances named clear_pb and submit_pb the former will be used to clear all form fields of data the latter will be used to submit the form thus initiating our application s form validation process. o The Confirm Field layer contains a text field that we ll discuss in a later exercise. o The Actions layer will contain all the scripts for

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.