110 likes | 237 Views
Learn the ins and outs of AJAX, from its acronym to implementation options. Discover the benefits, various uses like Google Maps, and DIY examples. Enhance user experience with partial page refreshes.
E N D
AJAX MIS 324 Professor Sandvig
Today • What is AJAX • Benefits & Uses • Implementation • Do-it-yourself • Download API • ASP.NET Ajax • Summary
What is AJAX • Acronym • Asynchronous JavaScript And XML • What it is • JavaScript in web page retrieves data from server • Allows partial page refresh • Reduces need to refresh entire page
What is AJAX • Data format does not need to be XML • Depends upon use • Popular formats: • JSON • Text • XML • CSV • Custom
Benefits & Uses • Benefits: • Richer experience for user • More like using desktop application • Uses • Google Suggest (JSON) • Kelly Blue Book (Cascading Menus) (JSON) • REI product image (image) (JSON) • Google Maps (blob) • Amazon (images) (JSON) • etc. etc.
Implementation Options: • Do-it-yourself • Lightweight, flexible • write or modify JavaScript or jQuery • Use API • Google, Facebook, Amazon, …
Do it yourself • Client • Include JavaScript or jQuery in web page • Requests data from server • Server • Web service provides data • Format: XML, JSON, HTML, …
Use AJAX API • Ajax applications written by others • Google AJAX APIs • Search • Maps • Tree Tour • Facebook APIs • LazyLoad
Summary • AJAX • Use to improve user experience • Partial page refreshes • Options: • Code you own • Use APIs • ASP.NET AJAX