Web to py enterprise web framework - p 29

WEB2PY 265 The "index" action generates the following form: If an invalid form is submitted, the server returns the page with a modified form containing error messages. The error messages are DIVs of class "error", and because of the above web2py ajax code, the errors appears with a slide-down effect: The color of the errors is given in the CSS code in "". 266 AJAX RECIPES The web2py ajax code prevents you from typing an invalid value in the input field. This is done before and in addition to, not as a substitute for, the server-side validation. The web2py ajax code displays a date picker when. | 265 The index action generates the following form Powered by webapy TM created by Massimo Di Pierro 2007 2008 If an invalid form is submitted the server returns the page with a modified form containing error messages. The error messages are DIVs of class error and because of the above web2py_ajax code the errors appears with a slide-down effect test defau It index V1 0 http 8000 test web2py test Powered by web2py TM created by Massimo Di Pierro 2007 2008 The color of the errors is given in the CSS code in . 266 AJAX RECIPES The web2py_ajax code prevents you from typing an invalid value in the input field. This is done before and in addition to not as a substitute for the server-side validation. The web2py_ajax code displays a date picker when you enter an INPUT field of class date and it displays a datetime picker when you enter an INPUT field of class datetime . Here is an example 600 test default index t 4 0 http 8000 test Í web2pynri test Field integer Field date The web2py_ajax code also displays the following time picker when you try to edit an INPUT field of class time 267 0 O O test default index 0 http test test Field integer I _Jb 12 Field date I t 13 F 2 14 Field datetime I 3 15 I .4 16 Field time I I 6 18 I 6 30 7 19 Submit 6 45 8 20 to 21 10 22 11 23 J Powered by webapy TM created by Massimo Di Pierro 2007 2008 Upon submission the controller action sets the response flash to the message record inserted . The default layout renders this message in a DIV with id flash . The web2py_ajax code is responsible for making this DIV slide down and making it disappear when you click on it OOO test default index 45 0 http 8000 test p s webapy test inserted Powered by webapy TM created by Massimo Di Pierro 2007 2008 These and other effects are accessible programmatically in the views and via helpers in .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
10    93    2    26-06-2024
1    447    4    26-06-2024
Đã 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.