Danh mục

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

Số trang: 10      Loại file: pdf      Dung lượng: 424.70 KB      Lượt xem: 6      Lượt tải: 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 8 ■ EDITING THE CALENDAR WITH AJAX AND JQUERYevent_title=Test+Event&event_start=2010-01-04+08%3A00%3A00&event_end=2010-01-04+10%3A00  %3A00&event_description=This+is+a+test+description.&event_id=&token=a52412c2e7bfb993844  0dc9d4e0867370e350134&action=event_editSubmitting the Serialized Form Data to the Processing FileNow that the form data is serialized, you’re ready use $.ajax() to send the data to the processing file. Use the POST method to submit the serialized data to ajax.inc.php, and then fade out the modal window and overlay using fx.boxout() on a successful submission. Also, log a confirmation message in the Firebug console and append the following bold code to init.js: // Edits events without reloading $(".edit-form input[type=submit]").live("click", function(event){ // Prevents the default form action from executing event.preventDefault();...
Nội dung trích xuất từ tài liệu:
Tương tác giữa PHP và jQuery - part 28

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