TAILIEUCHUNG - Ajax For Dumies phần 8

Tham khảo tài liệu 'ajax for dumies phần 8', 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ả | Chapter 6 More Powerful Ajax Frameworks 205 Figure 6-10 Dragging and dropping with Rico. Figure 6-11 A Rico LiveGrid. 206 Part III Ajax Frameworks_ Figure 6-12 A Rico live search of Yahoo . Besides these techniques Rico offers other visual effects such as making elements fade in and out of view and an accordion control that can display several panes of text which you can slide open or closed with a draggable bar. Disptaụinạ data in an HTML element The Rico library files include support for directly fetching text and XML data by using Ajax. For example say that you wanted to recover the text in an XML document named which looks like this xml version ajax-response response type element id targetDiv span This data fetched using RICO methods. span response ajax-response In this case the XML response element indicates that its content should be displayed in an HTML element named targetDiv . To make that happen you use the Rico library files. You can connect the name of a request requestl in this example to the XML document that s using the Rico ajaxEngine object s registerRequest method and indicate in which HTML element to display the fetched data with the registerAjaxElement method in an example named . You can see how all this works in the following code Chapter 6 More Powerful Ajax Frameworks 207 script language javascript function init request1 targetDiv script body onload init body After you ve set up the request you can execute that request with ajaxEngine object s sendRequest method when the user clicks a button to fetch the data this way html head title Testing Rico title script src script script src script script src script script language javascript function init request1 targetDiv function getData .

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.