Báo cáo tài liệu vi phạm
Giới thiệu
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
THỊ TRƯỜNG NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Thông tin
Tài liệu Xanh là gì
Điều khoản sử dụng
Chính sách bảo mật
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Beginning Ajax with PHP From Novice to Professional phần 9
Đang chuẩn bị liên kết để tải về tài liệu:
Beginning Ajax with PHP From Novice to Professional phần 9
Thụ Nhân
75
40
pdf
Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG
Tải xuống
Tham khảo tài liệu 'beginning ajax with php from novice to professional phần 9', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 166 CHAPTER 10 SPATIALLY ENABLED WEB APPLICATIONS All right so here is your functions.js file this is where all of the Google Maps functionality and Ajax-based concepts are happening. Let s have a closer look. You first define mapContainer and msgContainer which will hold the divs you created to hold your map and status message respectively. You set these in the init method. Next you set the default values for your map the default latitude and longitude and the zoom level. In this case your map will automatically center on Calgary. Next you set the URL from which you fetch the locations. Although this is a PHP file it will return XML data which you can then plot on your map. Finally you have two small utility functions. The first is used to trim a value which works the same as PHP s trim function removing whitespace from the beginning and end of a string . You use this in your basic form validation. The second is used to write a message to your status message div. functions.js div to hold the map var mapContainer null div to hold messages var msgContainer null coords for Calgary var mapLng -114.06 var mapLat 51.05 var mapZoom 7 locations xml file var locationsXml locations.php function trim str return str.replace A s S s 2 function showMessage msg if msg.length 0 msgContainer.style.display none else msgContainer.innerHTML msg msgContainer.style.display block CHAPTER 10 SPATIALLY ENABLED WEB APPLICATIONS 167 Next you have your script initialization function. This is the function you called in the onload event in sample10_1.php. Here you set the elements that will hold your Google map and your status message. After this has been set you call loadMap which displays the map based on your settings and loads your various points. We will look at this function more closely shortly function init mapId msgId mapContainer document.getElementById mapId msgContainer document.getElementById msgId loadMap The next function you define is a handy little function that creates a .
TÀI LIỆU LIÊN QUAN
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 1
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 2
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 3
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 4
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 5
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 6
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 7
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 8
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 9
Beginning Google Maps Applications with PHP and Ajax From Novice to Professional PHẦN 10
Đã 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.