 2008 Pearson Education, Inc. All rights reserved. 1 15 Ajax-Enabled Rich Internet Applications.

Slides:



Advertisements
Similar presentations
Dodick Zulaimi Sudirman Lecture 12 Introduction to AJAX Pengantar Teknologi Internet Introduction to Internet Technology.
Advertisements

University of Virginia 1 Modern Web Application Development Overview of some newer web applications methods Web 2.0 Ajax fundamentals Ruby on Rails.
AJAX Technologies KAUNAS UNIVERSITY OF TECHNOLOGY MODULE: INFORMATION TECHNOLOGY GROUP: IF - 4/9 GROUP: VENTILIATORIAI
9. AJAX & RIA. 2 Motto: O! call back yesterday, bid time return. — William Shakespeare.
6/3/2015eBiquity1 Tutorial on AJAX Anubhav Kale (akale1 AT cs DOT umbc DOT edu)
Davis Dai. Introduction  Acronym for “asynchronous JavaScript and XML”  Combination of various technologies  Was not developed as an official standard.
 2008 Pearson Education, Inc. All rights reserved Ajax-Enabled Rich Internet Applications.
Do We Really Need Rich-Interface Technologies? Yifan Zhang
IS 360 Course Introduction. Slide 2 What you will Learn (1) The role of Web servers and clients How to create HTML, XHTML, and HTML 5 pages suitable for.
Cloud Computing Lecture #7 Introduction to Ajax Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under a.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
 2008 Pearson Education, Inc. All rights reserved What Is Web 2.0?  Web 1.0 focused on a relatively small number of companies and advertisers.
1 JavaScript & AJAX CS , Spring JavaScript.
A closer look Dynamic Webpages Jessica Meyerson March 1, 2011.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Introduction to AJAX AJAX Keywords: JavaScript and XML
JavaScript & jQuery the missing manual Chapter 11
CS 4720 RESTfulness and AJAX CS 4720 – Web & Mobile Systems.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.
Page: 1 Creating AJAX-Powered Forms with the Dojo Toolkit Presented By: James Harmon Object Training Group, Inc.
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Build Great Web Application 'Fast and Easy'
Ruth Betcher Ruth Christie
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
Yahoo! User Interface (YUI) Library Natly Mekdara.
AJAX Without the “J” George Lawniczak. What is Ajax?
JavaScript, Fourth Edition Chapter 12 Updating Web Pages with AJAX.
Ajax Technology for the Web Nic Shulver, FCET, Staffordshire University Introduction What is it? Pros and Cons Why is it important? Traditional Client-Server.
 2008 Pearson Education, Inc. All rights reserved Ajax-Enabled Rich Internet Applications.
AJAX and Atlas in ASP.NET 2.0 William J. Steele MSDN Developer Evangelist Microsoft Corporation
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
Instructor, Dr. Khalili Bahram Jeevan Kumar Gogineni.
Random Logic l Forum.NET l AJAX Behind the buzz word Forum.NET ● January 23, 2006.
Ventsislav Popov Crossroad Ltd.. 1. What is AJAX?  AJAX Concept  ASP.NET AJAX Framework 2. ASP.NET AJAX Server Controls  ScriptManager, UpdatePanel.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
Telerik Software Academy ASP.NET Web Forms Telerik Software Academy ASP.NET Web Forms.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
AJAX Compiled from “AJAX Programming” [Sang Shin] (Asynchronous JavaScript and XML)
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Application: Middle Tier Introducing Code-Behind Files, Session State.
School of Computing and Information Systems CS 371 Web Application Programming AJAX.
the acronym for Asynchronous JavaScript and XML.
Ajax for Dynamic Web Development Gregory McChesney.
Chapter 16: Ajax-Enabled Rich Internet Applications with XML and JSON TP2543 Web Programming Mohammad Faidzul Nasrudin.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Ajax VS Flex A comparison based on shopping cart implementation PoHsu Yeh py2157.
 2008 Pearson Education, Inc. All rights reserved Ajax-Enabled Rich Internet Applications.
SE-2840 Dr. Mark L. Hornick 1 Introduction to Ajax Asynchronous Javascript And XML.
IT533 Lectures ASP.NET AJAX.
Event Handling & AJAX IT210 Web Systems. Question How do we enable users to dynamically interact with a website? Answer: Use mouse and keyboard to trigger.
AJAX Use Cases for WSRP Subbu Allamaraju BEA Systems Inc WSRP F2F Meeting, May 2006.
Introduction to AJAX Sue Brandreth. What is Ajax?
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
 AJAX technology  Rich User Experience  Characteristics  Real live examples  JavaScript and AJAX  Web application workflow model – synchronous vs.
AJAX CS456 Fall Examples Where is AJAX used? Why do we care?
Ajax! Ajax Programming Ajax! Ajax Programming. Ajax! Ajax Programming Take a look at a typical desktop application (Spreadsheet app, etc.) The program.
CITA 330 Section 10 Web Remoting Techniques. Web Remoting Web Remoting is a term used to categorize the technique of using JavaScript to directly make.
AJAX. Objectives Understand and apply AJAX Using AJAX in DOJO library.
Technologies For Creating Rich Internet Applications Presenter's name
National College of Science & Information Technology.
INNOV-16: Rich User Interface for the Web???? AJAX to the Rescue Ken Wilner VP of Technology Progress Software.
 2009 Pearson Education, Inc. All rights reserved.
JavaScript and Ajax (Ajax Tutorial)
AJAX.
DR. JOHN ABRAHAM PROFESSOR UTPA
Chengyu Sun California State University, Los Angeles
Presentation transcript:

 2008 Pearson Education, Inc. All rights reserved Ajax-Enabled Rich Internet Applications

 2008 Pearson Education, Inc. All rights reserved. 2 … the challenges are for the designers of these applications: to forget what we think we know about the limitations of the Web, and begin to imagine a wider, richer range of possibilities. It’s going to be fun. — Jesse James Garrett Dojo is the standard library JavaScript never had. — Alex Russell

 2008 Pearson Education, Inc. All rights reserved. 3 To know how to suggest is the great art of teaching. To attain it we must be able to guess what will interest … — Henri-Fredreic Amiel It is characteristic of the epistemological tradition to present us with partial scenarios and then to demand whole or categorical answers as it were. — Avrum Stroll O! call back yesterday, bid time return. — William Shakespeare

 2008 Pearson Education, Inc. All rights reserved Introduction 15.2Traditional Web Applications vs. Ajax Applications 15.3 Rich Internet Applications (RIAs) with Ajax 15.4 History of Ajax 15.5“Raw” Ajax Example Using the XMLHttpRequest Object 15.6 Using XML and the DOM 15.7 Creating a Full-Scale Ajax-Enabled Application 15.8 Dojo Toolkit 15.9 Wrap-Up Web Resources

 2008 Pearson Education, Inc. All rights reserved Introduction Usability of web applications has lagged behind compared to desktop applications Rich Internet Applications (RIAs) – Web applications that approximate the look, feel and usability of desktop applications – Two key attributes—performance and rich GUI RIA performance – Comes from Ajax (Asynchronous JavaScript and XML), which uses client-side scripting to make web applications more responsive Ajax applications separate client-side user interaction and server communication, and run them in parallel, making the delays of server-side processing more transparent to the user “Raw” Ajax uses JavaScript to send asynchronous requests to the server, then updates the page using the DOM When writing “raw” Ajax you need to deal directly with cross- browser portability issues, making it impractical for developing large- scale applications

 2008 Pearson Education, Inc. All rights reserved Introduction (Cont.) Portability issues – Hidden by Ajax toolkits, such as Dojo, Prototype and Script.aculo.us – Toolkits provide powerful ready-to-use controls and functions that enrich web applications and simplify JavaScript coding by making it cross-browser compatible Achieve rich GUI in RIAs with – Ajax toolkits – RIA environments such as Adobe’s Flex, Microsoft’s Silverlight and JavaServer Faces – Such toolkits and environments provide powerful ready-to-use controls and functions that enrich web applications. Client-side of Ajax applications – Written in XHTML and CSS – Uses JavaScript to add functionality to the user interface XML and JSON are used to structure the data passed between the server and the client XMLHttpRequest – The Ajax component that manages interaction with the server – Commonly abbreviated as XHR.

 2008 Pearson Education, Inc. All rights reserved Traditional Web Applications vs. Ajax Applications Traditional web applications – User fills in the form’s fields, then submits the form – Browser generates a request to the server, which receives the request and processes it – Server generates and sends a response containing the exact page that the browser will render – Browser loads the new page and temporarily makes the browser window blank – Client waits for the server to respond and reloads the entire page with the data from the response While a synchronous request is being processed on the server, the user cannot interact with the client web browser The synchronous model was originally designed for a web of hypertext documents – some people called it the “brochure web” – model yielded “choppy” application performance

 2008 Pearson Education, Inc. All rights reserved. 8 Fig | Classic web application reloading the page for every user interaction.

 2008 Pearson Education, Inc. All rights reserved Traditional Web Applications vs. Ajax Applications (Cont.) In an Ajax application, when the user interacts with a page – Client creates an XMLHttpRequest object to manage a request – XMLHttpRequest object sends the request to and awaits the response from the server – Requests are asynchronous, allowing the user to continue interacting with the application while the server processes the request concurrently – When the server responds, the XMLHttpRequest object that issued the request invokes a callback function, which typically uses partial page updates to display the returned data in the existing web page without reloading the entire page Callback function updates only a designated part of the page Partial page updates help make web applications more responsive, making them feel more like desktop applications

 2008 Pearson Education, Inc. All rights reserved. 10 Fig | Ajax-enabled web application interacting with the server asynchronously.

 2008 Pearson Education, Inc. All rights reserved Rich Internet Applications (RIAs) with Ajax Classic XHTML registration form – Sends all of the data to be validated to the server when the user clicks the Register button – While the server is validating the data, the user cannot interact with the page – Server finds invalid data, generates a new page identifying the errors in the form and sends it back to the client—which renders the page in the browser – User fixes the errors and clicks the Register button again – Cycle repeats until no errors are found, then the data is stored on the server – Entire page reloads every time the user submits invalid data Ajax-enabled forms are more interactive – Entries are validated dynamically as the user enters data into the fields – If a problem is found, the server sends an error message that is asynchronously displayed to inform the user of the problem – Sending each entry asynchronously allows the user to address invalid entries quickly, rather than making edits and resubmitting the entire form repeatedly until all entries are valid – Asynchronous requests could also be used to fill some fields based on previous fields’ values (e.g., city based on zipcode)

 2008 Pearson Education, Inc. All rights reserved. 12 Fig | Classic XHTML form: User submits entire form to server, which validates the data entered (if any). Server responds indicating fields with invalid or missing data. (Part 1 of 2.)

 2008 Pearson Education, Inc. All rights reserved. 13 Fig | Classic XHTML form: User submits entire form to server, which validates the data entered (if any). Server responds indicating fields with invalid or missing data. (Part 2 of 2.)

 2008 Pearson Education, Inc. All rights reserved. 14 Fig | Ajax-enabled form shows errors asynchronously when user moves to another field.