TAILIEUCHUNG - Publishing AJAX and PHP - part 23

Chức năng loadGridPage được gọi là một lần khi tải trang, và sau đó mỗi lần người dùng nhấp chuột trước Trang hoặc Next Page, để tải một trang mới của dữ liệu. Chức năng này gọi là máy chủ không đồng bộ, quy định cụ thể các trang của các sản phẩm cần được lấy ra: | AJAX Grid stylesheetDoc createMsxml2DOMDocumentObject false The loadG rid Page function is called once when the page loads and then each time the user clicks Previous Page or Next Page to load a new page of data. This function calls the server asynchronously specifying the page of products that needs to be retrieved makes asynchronous request to load a new page of the grid function loadGridPage pageNo disable edit mode when loading new page editableld false continue only if the XMLHttpRequest object isn t busy if xmlHttp 4 0 var query feedGridUrl action FEED_GRlD_PAGE page pageNo GET query true handleGridPageLoad null The handl eGridPageLoad callback function is called to handle the server response. After the typical error handling mechanism it reveals the code that effectively transforms the XML structure received from the server to HTML code that is displayed to the client. The transformation code is again browser-specific performing functionality differently for Internet Explorer and for the browsers with native XLS support the server response in XML format xmlResponse browser with native functionality if load the XSLT document var xsltProcessor new XSLTProcessor stylesheetDoc generate the HTML code for the new page of products page xmlResponse document display the page of products var gridDiv gridDivld page Internet Explorer code else if load the XSLT document var theDocument createMsxml2DOMDocumentObject false xmlResponse display the page of products var gridDiv gridDivld stylesheetDoc .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.