Presentation is loading. Please wait.

Presentation is loading. Please wait.

Ajax! Ajax Programming Ajax! Ajax Programming. Ajax! Ajax Programming Take a look at a typical desktop application (Spreadsheet app, etc.) The program.

Similar presentations


Presentation on theme: "Ajax! Ajax Programming Ajax! Ajax Programming. Ajax! Ajax Programming Take a look at a typical desktop application (Spreadsheet app, etc.) The program."— Presentation transcript:

1 Ajax! Ajax Programming Ajax! Ajax Programming

2 Ajax! Ajax Programming Take a look at a typical desktop application (Spreadsheet app, etc.) The program responses intuitively and quickly The program gives a user meaningful feedback's instantly Things happen naturally Take A Scenario

3 Ajax! Ajax Programming “Click, wait, and refresh” user interaction Synchronous “request/response” communication model Page-driven: Workflow is based on pages Conventional Web Apps

4 Ajax! Ajax Programming Conventional Web Apps

5 Ajax! Ajax Programming Interruption of user operation Loss of operational context during refresh No instant feedback's to user activities Constrained by HTML These are the reasons why Rich Internet Application (RIA) technologies were born. Conventional Web Apps Issues

6 Ajax! Ajax Programming Applet (Swing) Macromedia Flash Java WebStart AJAX RIA Technology

7 Ajax! Ajax Programming Pros: Can use full Java APIs Custom data streaming, graphic manipulation, threading, and GUIs Cons: Code downloading time Reliability concern - a mal functioning applet can crash a browser Applet

8 Ajax! Ajax Programming Designed for playing interactive movies originally Pros: Good for displaying vector graphics Cons: Browser needs a Flash plug-in ActionScript is proprietary Macromedia Flash

9 Ajax! Ajax Programming Pros Desktop experience once loaded Leverages Java technology to its fullest extent Disconnected operation is possible Application can be digitally signed Incremental redeployment Java Webstart

10 Ajax! Ajax Programming Cons Old JRE-based system do not work First-time download time could be still significant Java Webstart

11 Ajax! Ajax Programming Asynchronous Javascript and XML. Not a stand-alone language or technology. It is a technique that combines a set of known technologies in order to create faster and more user friendly web pages. It is a client side technology. AJAX

12 Ajax! Ajax Programming No plugin for AJAX Flash development tools cost money Flash typically has slower page load time Flash can work on older browsers AJAX vs Flash

13 Ajax! Ajax Programming ActionScript doesn't have a cross browser issues Flash can access other domains if there is a crossdomain.xml file AJAX vs Flash

14 Ajax! Ajax Programming Pros Most viable RIA technology so far Tremendous industry momentum Several toolkits and frameworks are emerging No need to download code & no plug-in required Cons Still browser incompatibility JavaScript is hard to maintain and debug AJAX

15 Ajax! Ajax Programming Prevents unnecessary reloading of a page. When we submit a form, although most of the page remains the same, whole page is reloaded from the server. AJAX Purpose

16 Ajax! Ajax Programming This causes very long waiting times and waste of bandwidth. AJAX aims at loading only the necessary innformation, and making only the necessary changes on the current page without reloading the whole page. AJAX Purpose

17 Ajax! Ajax Programming Intuitive and natural user interaction No clicking required Mouse movement is a sufficient event trigger "Partial screen update" replaces the "click, wait, and refresh" user interaction model Only user interface elements that contain new information are updated (fast response) Why AJAX?

18 Ajax! Ajax Programming Data-driven (as opposed to page- driven) UI is handled in the client while the server provides data Asynchronous communication replaces "synchronous request/response model." A user can continue to use the application while the client program requests information from the server Why AJAX?

19 Ajax! Ajax Programming AJAX

20 Ajax! Ajax Programming AJAX

21 Ajax! Ajax Programming Google helped popularize Increase Usability of Web Applications Rich Internet Applications without Flash Save Bandwidth Download only data you need Faster interfaces (sometimes) Why AJAX is Popular

22 Ajax! Ajax Programming JavaScript/PHP HTML CSS XML JSP Technology of AJAX

23 Ajax! Ajax Programming AJAX Achi

24 Ajax! Ajax Programming Classic vs AJAX

25 Ajax! Ajax Programming Google Map Gmail NetFlix.com Flickr Worklife Survey (old tooltip) MUSE Calendar (Ajax tooltip) www.2locals.com (Ajax) And many other popping anywhere Real Life AJAX Example

26 Ajax! Ajax Programming “To better understand the concepts of AJAX we need to ==activate== your creativity” End

27 Ajax! Ajax Programming In a creative role playing, think of REAL LIFE good scenarios that will show the concepts of AJAX such: the interaction of different components comparison to classic web Etc…… Note: It’s your cooperation matters; collaborate. Group Activity:


Download ppt "Ajax! Ajax Programming Ajax! Ajax Programming. Ajax! Ajax Programming Take a look at a typical desktop application (Spreadsheet app, etc.) The program."

Similar presentations


Ads by Google