tailieunhanh - Ajax For Dumies phần 7
Tham khảo tài liệu 'ajax for dumies phần 7', 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ả | 180 Part III Ajax Frameworks Listing 5-5 continued var div targetDiv The first color is options 0 . script head body H1 Testing libXmlRequest H1 form input type button value Display Message onclick decodeXml 1 form div id targetDiv p The fetched data will go here. p div body html What does this look like in action You can see the answer in Figure 5-7 where the getXml function did its thing and grabbed the XML. The libXmlRequest framework gives you a way of getting XML from the server by using the GET and POST methods and also provides you with some added functions to handle that XML when you get it. Figure 5-7 Using libXml Request to get XML from the server. Chapter 6 More Powerful Ajax Frameworks Jn This Chapter Dragging and dropping with online shopping carts Using the XHConn framework Using the Sack framework Handling older browsers with HTMLHttpRequest Handling XML with Sarissa Working with Rico he CEO comes to you and says We need an easier way for customers to purchase televisions from our Web site. Too many customers don t like the multistage process of moving from page to page with a shopping cart to buy things. We re losing money. Okay you say how about using Ajax Great idea says the CEO. How Well you could let the users just drag and drop the articles they want to purchase into a shopping cart visually. That way they could buy as many televisions as they want without leaving the same page. Great says the CEO. Now we can finally get our 19 995 televisions moving. 19 995 for a television you ask. Hmm. I think I know the reason you re not moving televisions and it has nothing to do with shopping carts. Some of the examples in this chapter use Ajax frameworks that are available for free online. Before you try to run a particular example make sure that the files needed for the associated framework is in the same folder on your .
đang nạp các trang xem trước