tailieunhanh - PHP and script.aculo.us Web 2.0 Application Interfaces- P5

PHP and Web Application Interfaces- P5: là một thư viện JavaScript cung cấp các hiệu ứng thị giác năng động, điều khiển giao diện người dùng, và các tính năng mạnh mẽ AJAX. Đó là những gì phụ-client PHP là phía máy chủ - mạnh mẽ, đơn giản, vui vẻ hoàn tất, và trên tất cả, PHẢI một! Theo các nhà phát triển, chúng tôi tất cả ước mơ xây dựng các ứng dụng mà người sử dụng ngay lập tức có thể rơi vào tình yêu với và nhận được hiệu quả. Đơn giản và các. | Chapter 6 Let s go straight into making an in-place editing module. We are not going to write the module from scratch but we will be extending the above example. In the story so far we have added a simple div element to the page initiated the inPlaceEditor constructor and added a few options to it. We have clubbed together the above pieces of code and the complete code is given here html head title In-Place Editing Example title script type text javascript src src lib script script type text javascript src src src script script type text javascript src src src script script type text javascript src src src script style Body color black myDiv background-color BCE6D6 width 400px height 30px text-align center style script function new myDiv URL okText Update cancelText Cancel highlightColor E2F1B1 clickToEditText Click me to edit loadingText Loading. savingText Saving. script body div id myDiv 109 In-place Editing using First move the mouse over me and then click on ME div body html Let s look closely into the constructor definition. new myDiv URL okText Update cancelText Cancel highlightColor E2F1B1 clickToEditText Click me to edit loadingText Loading. savingText Saving. Here we have given a proxy url in the option. We now need to create a script at the server side to handle the request sent through this constructor. Let s name it . php value _REQUEST value echo value That s it It takes just these two lines to read the value. This is because by default it uses request to send the value. We can also overwrite it by passing our own ajaxOptions. We can also replace _request with _post and it will still work. Try it out to believe me. Just replace the url with . The new definition of the constructor now looks like this new myDiv okText Update cancelText Cancel highlightColor E2F1B1 .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã 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.