ajax! ajax programming ajax! ajax programming. ajax! ajax programming take a look at a typical...

Post on 20-Jan-2018

356 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

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

TRANSCRIPT

Ajax!

Ajax Programming

Ajax!

Ajax Programming

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

Ajax!

Ajax Programming

•“Click, wait, and refresh” user interaction•Synchronous “request/response” communication model•Page-driven: Workflow is based on pages

Conventional Web Apps

Ajax!

Ajax Programming

Conventional Web Apps

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

Ajax!

Ajax Programming

•Applet (Swing)•Macromedia Flash•Java WebStart•AJAX

RIA Technology

Ajax!

Ajax Programming

•Pros:Can use full Java APIsCustom data streaming, graphic manipulation, threading, and GUIs

• Cons:Code downloading timeReliability concern - a mal functioning applet can crash abrowser

Applet

Ajax!

Ajax Programming

•Designed for playing interactive movies originally• Pros:

Good for displaying vector graphics• Cons:

Browser needs a Flash plug-inActionScript is proprietary

Macromedia Flash

Ajax!

Ajax Programming

•ProsDesktop experience once loadedLeverages Java technology to its fullest extentDisconnected operation is possibleApplication can be digitally signedIncremental redeployment

Java Webstart

Ajax!

Ajax Programming

• ConsOld JRE-based system do not workFirst-time download time could be still significant

Java Webstart

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

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

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

Ajax!

Ajax Programming

•ProsMost viable RIA technology so farTremendous industry momentumSeveral toolkits and frameworks are emergingNo need to download code & no plug-in required

•ConsStill browser incompatibilityJavaScript is hard to maintain and debug

AJAX

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

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

Ajax!

Ajax Programming

•Intuitive and natural user interaction

No clicking requiredMouse 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?

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?

Ajax!

Ajax Programming

AJAX

Ajax!

Ajax Programming

AJAX

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

Ajax!

Ajax Programming

•JavaScript/PHP

•HTML

•CSS

•XML

•JSP

Technology of AJAX

Ajax!

Ajax Programming

AJAX Achi

Ajax!

Ajax Programming

Classic vs AJAX

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

Ajax!

Ajax Programming

“To better understand

the concepts of

AJAX we need to ==activate==

your creativity”

End

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 componentscomparison to classic webEtc……

Note: It’s your cooperation matters; collaborate.

Group Activity:

top related