Danh mục

Tương tác giữa PHP và jQuery - part 26

Số trang: 10      Loại file: pdf      Dung lượng: 848.29 KB      Lượt xem: 7      Lượt tải: 0    
Thư viện của tui

Hỗ trợ phí lưu trữ khi tải xuống: 5,000 VND Tải xuống file đầy đủ (10 trang) 0
Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

CHAPTER 7 ■ ENHANCING THE USER INTERFACE WITH JQUERY// Pulls up events in a modal window $("lia").live("click", function(event){ // Stops the link from loading view.php event.preventDefault(); // Adds an "active" class to the link $(this).addClass("active"); // Gets the query string from the link href var data = $(this) .attr("href") .replace(/.+??(.*)$/, "$1"), // Checks if the modal window exists and // selects it, or creates a new one modal = fx.initModal(); }); }); Next, set up the call to $.ajax() in the event handler. It will use the POST method, point to the processFile, and send the appropriate data. Because the...
Nội dung trích xuất từ tài liệu:
Tương tác giữa PHP và jQuery - part 26

Tài liệu được xem nhiều: