90 likes | 294 Views
A comparison based on shopping cart implementation. PoHsu Yeh py2157. Ajax VS Flex. Agenda. Goal of this project Flex introduction Ajax introduction System architecture Demo Conclusion. Goal. implement a web shopping cart improve user experience drag and drop
E N D
A comparison based on shopping cart implementation PoHsu Yeh py2157 Ajax VS Flex
Agenda • Goal of this project • Flex introduction • Ajax introduction • System architecture • Demo • Conclusion
Goal • implement a web shopping cart • improve user experience • drag and drop • real time feedback search • comparison • performance • complexity • learning curve
What is Flex? • a standards-based programming methodology for building presentation tier of rich internet application • must run in Flash Player,and is able to interact with server-side functionality, such as web services, java objects, and other services • benefits • standards-based architecture, MXML, Actionscript • reduction in server load and bandwidth, no page refresh • common deployment environment, Flash player which is platform-independent, runs consistently in all browsers
What is Ajax? • Acronym: Asynchronous JavaScript and XML • JavaScript + XML + XMLHTTPRequest • use JavaScript to make asynchronous calls to web-based services that return XML • Benefits • allows users to continue interact with web page while waiting for data returned • partially update web page without refreshing • result in better user experience • some Ajax library, is used to reduce amount of code, Ex:Prototype, Dojo,Rico, Yahoo UI library, Microsoft Ajax Library
Conclusion • Development complexity 1. Drag and Drop • in Flex, enable 3 properties of datagrid control • in Microsoft Ajax library, implement 2 interface, roughly 6 methods for each interface 2. Real time feed back search • in Flex, make web service call and data binding • in Ajax, make web service call, callback function will be called and update corresponding DOM element • learning curve • Flex, non-technical developer • Ajax, OO concept, DOM, HTML/DHTML, JavaScript, XML • Performance analysis 1. Initial load time 2. Response time