Đang chuẩn bị liên kết để tải về tài liệu:
Beginning Ajax with PHP - P.9 - The And
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Tham khảo sách 'beginning ajax with php - p.9 - the and', 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ả | 6676CH14.qxd 9 27 06 12 02 PM Page 224 224 CHAPTER 14 THE DOM marker latitude 51.0563 longitude -114.095 locname North Hill S C address 1632-14th Ave city Calgary province Alberta postal T2N 1M7 marker latitude 51.0947 longitude -114.142 locname Market Mall address RO47-3625 Shaganappi Trail NW city Calgary province Alberta postal T3A 0E2 marker latitude 51.0404 longitude -114.131 locname Westbrook Mall address 1200 37 St SW city Calgary province Alberta postal T3C 1S2 marker latitude 51.0921 longitude -113.919 locname Sunridge Mall address 2525-36TH St NE city Calgary province Alberta postal T1Y 5T4 marker latitude 51.0469 longitude -113.918 locname Marlborough Mall address 1240 - 3800 Memorial Dr NE city Calgary province Alberta postal T2A 2K2 marker latitude 51.1500 longitude -114.062 locname Coventry Hills Centre address 130 Country Village Rd NE city Calgary province Alberta postal T3K 6B8 marker latitude 50.9921 longitude -114.040 locname Southcentre Mall address 100 Anderson Rd NE city Calgary province Alberta postal T2J 3V1 marker latitude 50.9296 longitude -113.962 locname South Trail address 4777 130 Ave SE city Calgary province Alberta postal T2Z 4J2 markers Listing 14-2. The HTML File Loaded into the Web Browser sample14_1.html DOCTYPE html PUBLIC - W3C DTD XHTML 1.0 Transitional EN http www.w3.org TR xhtml1 DTD xhtml1-transitional.dtd html xmlns http www.w3.org 1999 xhtml head title Sample 14_1 title 6676CH14.qxd 9 27 06 12 02 PM Page 225 CHAPTER 14 THE DOM 225 link rel stylesheet type text css href style.css script type text javascript src functions.js script script type text javascript src xmlhttp.js script head body h1 Ajax Location Manager h1 div input type button value Load locations onclick loadLocations locations div h2 My Locations h2 div id locations div body html Listing 14-3. The JavaScript Used to Load Locations via Ajax and Create an HTML Table Using the DOM functions.js functions.js locations xml file var locationsXml locations.xml .