TAILIEUCHUNG - the book of javascript 2nd edition phần 7

Tiếp theo 2 ngôn ngữ lập trình trên thì JavaScript cũng là một ngôn ngữ lập trình rất quen thuộc với hầu hết các nhà lập trình. Ebook này sẽ cung cấp thêm cho các bạn yêu thích lập trình Javar thêm nhiều thông tin lí thú. Sách được chia làm 5 phần rõ ràng gồm: Tổng quan về JavaScript, Sử dụng JavaScript, Hàm và đối tượng, Tạo đối tượng trong JavaScript, Sự kiện trong JavaScript. | html head title Demonstrating Ansynchronicity title script type text javascript -- hide me from older browsers o function demoAsync var now new Date downloadFile longWait now downloadFile shortWait now function downloadFile the_request start_time var request null if request new XMLHttpRequest else if request new ActiveXObject if request GET http localhost boj the_request .php function if 4 resultDiv .innerHTML File the_request was downloaded in getExpiredTime start_time seconds br null else alert Sorry you must update your browser before seeing Ajax in action. function getExpiredTime start_time var then var now new Date var now_time var diff now_time - then 1000 return diff show me -- script head body form input type button onClick demoAsync return true value Start Downloading form div id resultDiv div body html Figure 14-6 Asynchronicity in Ajax 272 Chapter 14 SETTING UP A WEBSERVER AND PHP Below you ll find some resources for setting up the Apache webserver and PHP on your desktop machine. Apache has been the most popular webserver on the Internet for more than 10 years. It is very robust has loads of features and works on all modern Windows Macintosh and Unix including the major flavors of Linux operating systems. In the spirit of full disclosure I should mention that my cousin Robert S. Thau was one of the original authors of Apache. Hooray Robert For Windows and Linux If you are using Windows 98 NT 2000 or XP or a major version of Linux Debian Mandrake Red Hat or SuSE you can install Apache and PHP using one easy package called XAMPP from Apache Friends. The package is available at http en and at http Freeware xampp. The useful MySQL database and a few other things are also included. If you want to get up and running

Đã 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.