CS 4720 RESTfulness and AJAX CS 4720 – Web & Mobile Systems.

Slides:



Advertisements
Similar presentations
1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
Advertisements

University of Virginia 1 Modern Web Application Development Overview of some newer web applications methods Web 2.0 Ajax fundamentals Ruby on Rails.
Davis Dai. Introduction  Acronym for “asynchronous JavaScript and XML”  Combination of various technologies  Was not developed as an official standard.
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Igor Gershovich Connected Testing, Inc.
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.
Ajax Dr Jim Briggs WEBP Ajax1. 2 Ajax Asynchronous JavaScript And XML Method of creating more interactive web applications Moves more of the application.
Cloud Computing Lecture #7 Introduction to Ajax Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under a.
AJAX (Asynchronous JavaScript and XML) Amit Jain CS 590 – Winter 2008.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
1 JavaScript & AJAX CS , Spring JavaScript.
ITM352 Javascript and Dynamic Web Pages: Client Side Processing.
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
INTRODUCTION TO DHTML. TOPICS TO BE DISCUSSED……….  Introduction Introduction  UsesUses  ComponentsComponents  Difference between HTML and DHTMLDifference.
Christopher Paolini Computational Science Research Center College of Engineering San Diego State University Computational Science 670 Fall 2009 Monday.
Introduction to AJAX AJAX Keywords: JavaScript and XML
JavaScript & jQuery the missing manual Chapter 11
1 Ajax. 2 What’s Ajax? AJAX is a combination of a few technologies that has come together in the past few years AJAX used to be an acronym for Asynchronous.
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
 2008 Pearson Education, Inc. All rights reserved Ajax-Enabled Rich Internet Applications.
Intro to JavaScript Events. JavaScript Events Events in JavaScript let a web page react to some type of input Many different ways to handle events due.
Instructor, Dr. Khalili Bahram Jeevan Kumar Gogineni.
The Document Object Model. The Web B.D, A.D. They aren’t web pages, they’re document objects A web browser interprets structured information. A server.
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
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.
Building Rich Web Applications with Ajax Linda Dailey Paulson IEEE – Computer, October 05 (Vol.38, No.10) Presented by Jingming Zhang.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
AJAX Compiled from “AJAX Programming” [Sang Shin] (Asynchronous JavaScript and XML)
AJAX The new hot technology for building Rich Internet Applications? Mikael Hammarlund.
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
INNOV-7: Building a Richer UI for the Browser Chris Skeldon Senior Solution Consultant.
Session 1 Chapter 1 - Introduction to Web Development ITI 133: HTML5 Desktop and Mobile Level I
Creating Dynamic Webpages
Web Terminology Intro to Web. North Lake College 2 by Sean Griffin HTML vs. XHTML HTML: Hypertext Markup Language XHTML: eXtensible Hypertext Markup Language.
Web Development & Design Foundations with XHTML Chapter 11 Key Concepts.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
 AJAX – Asynchronous JavaScript and XML  Ajax is used to develop fast dynamic web applications  Allows web pages to be updated asynchronously by transferring.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
AJAX and REST. Slide 2 What is AJAX? It’s an acronym for Asynchronous JavaScript and XML Although requests need not be asynchronous It’s not really a.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
October 7 th, 2010 SDU Webship. What did we learn last week? jQuery makes it really easy to select elements and do stuff with them. jQuery can process.
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.
Introduction to AJAX MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/4/2016.
Ajax & Client-side Dynamic Web Gunwoo Park (Undergraduate)
National College of Science & Information Technology.
November 21, 2016 Web Technologies in the IUB Libraries’ Web Site AJAX, More than Scrubbing the Tub: Doug Ryner & Tadas Paegle.
INNOV-16: Rich User Interface for the Web???? AJAX to the Rescue Ken Wilner VP of Technology Progress Software.
Web Technologies Computing Science Thompson Rivers University
JavaScript and Ajax (Ajax Tutorial)
AJAX and REST.
AJAX.
Asynchronous Java script And XML Technology
AJAX.
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
IS 360 Course Introduction
DWR: Direct Web Remoting
COP 3813 Intro to Internet Computing
MIS JavaScript and API Workshop (Part 3)
Introduction to AJAX and JSON
DR. JOHN ABRAHAM PROFESSOR UTPA
Introduction to AJAX and JSON
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Class 4: Building Interactive Web Pages
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Presentation transcript:

CS 4720 RESTfulness and AJAX CS 4720 – Web & Mobile Systems

CS 4720 A Bright New Day with AJAX Rich, responsive interfaces! Interactive pages! Fewer (if any) page refreshes! Able to withstand server issues! 2

CS 4720 AJAX: Official Definition From Ajax: A New Approach to Web Applications by Jesse James Garrett Standards-based presentation with XHTML and CSS Dynamic display and interaction with DOM Data exchange and manipulation with XML Asynchronous data retrieval with XMLHttpRequest JavaScript holding it all together 3

CS 4720 How does it work? Relies on two main principles: 1. Ability to modify the current page and have the changes show 2. Ability to send/receive requests without blocking the thread 4

CS 4720 Dynamic Display The DOM: Document Object Model In 1997, support for Dynamic HTML (DHTML) was added to major browsers Allowed for the dynamic changing and redisplaying of the HTML element hierarchy CSS (cascading style sheets) are a form of this too Javascript can see the DOM and alter it on-the- fly 5

CS 4720 How do we not block? Javascript is the main reason we can do this. Javascript has no support for threads at all! It’s completely event driven. Events like: –A button press –A mouse over –A click –Or, most importantly, an HTTP request 6

CS 4720 XMLHttpRequest An XMLHttpRequest encapsulates an HTTP request. XMLHttpRequest support asynchronous invocation. In other words, it just adds itself to the list of operations, but doesn’t lock resources. Thus, the main thread is not blocked by the call, and the UI (or other system operations) can keep running in concert. 7

CS 4720 XMLHttpRequest 8

CS 4720 So… what do we send? The name AJAX (Asynchronous Javascript and XML) would suggest that XML would be sent But really, all you are doing is changing the DOM… so it could be anything –HTML (which is, of course, a form of XML) –Plain text (but that’s kinda boring) –Another formatted protocol (like SOAP) –Maybe even more Javascript 9

CS 4720 Here comes a pattern… How does this jive with the observer pattern? Who is observing? Who is publishing? 10

CS 4720 Example Code 11

CS 4720 Available Toolkits You don’t still use normal arrays in Java do you? So why do that with AJAX? –Prototype –Script.aculo.us –Dojo –DWR –Moo.fx –jQuery –Etc. 12

CS 4720 Thanks Many thanks to Ken Colorodo for some of this information Some info also from the fine folks at Wikipedia This slide deck brought to you by the letter “M” and the number “blue.” 13