5/3/2006 Mike/Justin/JYoo AJAX/SOAP/Comet 1 Cleaning up the Internet Using AJAX, SOAP and Comet CS526 Mike Gerschefske Justin Gray James Yoo 02 May 2006.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Introduction to Ajax.
Advertisements

6/3/2015eBiquity1 Tutorial on AJAX Anubhav Kale (akale1 AT cs DOT umbc DOT edu)
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
HTML Form Processing Learning Web Design – Chapter 9, pp Squirrel Book – Chapter 11, pp
1 Cleaning up the Internet Using AJAX, SOAP and Comet CS526 Mike Gerschefske Justin Gray James Yoo 02 May 2006.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
Using AJAX Galip Aydin, Ahmet Sayar, and Marlon Pierce Community Grids Lab Indiana University.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
CAQH Eligibility Checking PoC Design. Overview Mini-project to implement a PoC for CAQH Eligibility Use existing tools and components; make as lightweight.
Chris Pinski.  History  What is Ajax  Who uses Ajax  Underlying Technologies  SE Aspect  Common Problems  Conclusion.
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.
Ruth Betcher Ruth Christie
11/13/2007 A synchronous J avaScript A nd X ML Gloria Law Joshua Mahaz.
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.
 2008 Pearson Education, Inc. All rights reserved Ajax-Enabled Rich Internet Applications.
JavaScript, Fourth Edition Chapter 12 Updating Web Pages with AJAX.
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Understanding AJAX Hype, Hope, Hurt and Help for the Web MJTS May 4th, 2006 _________________________ Terence Conklin, Conklin Systems
By Matt Baker Eric Sprauve Stephen Cauterucio. The Problem Advisors create a sign-up sheet to be posted on the door of their office. These sign-up sheets.
CA Professional Web Site Development Class 2: Anatomy of a Web Site and Web Page & Intro to HTML.
AJAX Compiled from “AJAX Programming” [Sang Shin] (Asynchronous JavaScript and XML)
Fall 2006 Florida Atlantic University Department of Computer Science & Engineering COP 4814 – Web Services Dr. Roy Levow Part 2 – Ajax Fundamentals.
Web Architecture Introduction
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Rails & Ajax Module 5. Introduction to Rails Overview of Rails Rails is Ruby based “A development framework for Web-based applications” Rails uses the.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
2007cs Servers on the Web. The World-Wide Web 2007 cs CSS JS HTML Server Browser JS CSS HTML Transfer of resources using HTTP.
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 – Asynchronous JavaScript and XML  Ajax is used to develop fast dynamic web applications  Allows web pages to be updated asynchronously by transferring.
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
AJAX Asynchronous JavaScript and XML 1. AJAX Outline What is AJAX? Benefits Real world examples How it works 2.
Summer 2007 Florida Atlantic University Department of Computer Science & Engineering COP 4814 – Web Services Dr. Roy Levow Part 1 – Introducing Ajax.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
AJaX and SOA Partha Kuchana. Agenda What is AJaX Benefits & Problems AJaX & SOA AJaX architecture AJaX with No XML.
AJAX. Overview of Ajax Ajax is not an API or a programming language Ajax aims to provide more responsive web applications In normal request/response HTTP.
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.
AJAX Use Cases for WSRP Subbu Allamaraju BEA Systems Inc WSRP F2F Meeting, May 2006.
JavaScript and Ajax (Internet Background) Week 1 Web site:
What is AJAX ? Asynchronous Javascript and XML. Not a stand-alone language or technology. It is a technique that combines a set of known technologies in.
Introduction to AJAX Sue Brandreth. What is Ajax?
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
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?
PHP and AJAX. Servers and Clients For many years we tried to move as much as possible to the server. Weak clients, poor bandwidth, browser compatibility..
Ajax SUBMITTED BY NITIN RAMANI C.S.E 3 rd Y 5 th S R.N CS SUBMITTED TO PRO. PUSHPARAJ PATEL SIR.
Open Solutions for a Changing World™ Eddy Kleinjan Copyright 2005, Data Access WordwideNew Techniques for Building Web Applications June 6-9, 2005 Key.
National College of Science & Information Technology.
WWW and HTTP King Fahd University of Petroleum & Minerals
Not a Language but a series of techniques
CS 371 Web Application Programming
AJAX and REST.
Subbu Allamaraju BEA Systems Inc
AJAX.
AJAX.
CSE 154 Lecture 22: AJAX.
AJAX Robin Burke ECT 360.
Pub/sub-based Web Applications
Introduction to AJAX Sue Brandreth.
Presentation transcript:

5/3/2006 Mike/Justin/JYoo AJAX/SOAP/Comet 1 Cleaning up the Internet Using AJAX, SOAP and Comet CS526 Mike Gerschefske Justin Gray James Yoo 02 May 2006

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet2 How Web Applications Work Google […] User Requests Web Page either by clicking a button or entering a URL The entire page is changed and reloaded with the server response Documents are forced to be ‘heavy’, displaying new information requires a new page request Title UI Table HTTP GET Or HTTP POST […]

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet3 How Web Applications Work Title UI Table Title UI Table User interaction (e.g. button click) causes a complete page reload This causes a complete page reload to occur on the browser Browser is forced to reload entire document tree Browser is forced to request all SRC tags (caching can help with this) Server has to send ENTIRE document to client -- often consuming bandwidth With large documents, multiple packets and latency can cause longer browser load times Problems

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet4 IFrame – Moving Forward Right Direction Provides a way to not pull entire page Wrong Implementation Send meta-data and document formatting with every page load Need a way to send just data to reduce bandwidth and decrease response time Title UI Table UI Table User interaction (e.g. button click) causes a smaller reload of certain sections of the web page Google […] […] onButtonClick = { IFRAME.Dynamic.SRC = mynewpage.html } [Document Subset]

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet5 XMLHttp – A better way Title UI Table Document User interaction (e.g. button click) causes a document request Microsoft created XMLHttp (Active X) browser plugin to allow dynamic HTTP GET/POST Mozilla realized this was good and created XMLHttpRequest Good idea, but nothing is standardized Name is deceiving, can be XML but is really document exchange A simple way to request DATA What does this really provide us? The Browser Wars

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet6 So what is AJAX? Asynchronous JavaScript And XML This is a pattern, not a product This is a browser web based design pattern The use of XMLHttp/XmlHttpRequest to request XML based documents and use JavaScript to render them on the browser If its not Asynchronous, JavaScript or XML it’s not AJAX it’s something else – not necessarily a bad thing Why is this better? Enriches user experience by making web application feel more responsive Helps minimize traffic – server only sends data in XML apposed to HTML Minimized traffic helps reduce overall browser loading

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet7 The Missing Link How the browser fits a SOA One implementation is SOAP based web services SOAP encapsulates XML in a standardized XML format The browser is able to consume those web services example: Can use web services to order books, check stocks and weather from multiple companies all on one web page Problems SOAP consumption is not built into the browser Messages have to be manually built and parsed Microsoft tried to build this functionality into a Javascript file, but didn’t work out Ultimately needs to be put in the browser Lack of standardization between browsers

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet8 The next problem Browsers request data – servers send it With a request/response architecture, the client isn’t always aware if it should be asking for data i.e. a user is watching stocks request/response user has to actively ‘refresh’ a document exchange to see if the stock has changed – very wasteful as the user may over request, or under request and not be updated in time some implentations to address this involved JavaScript timers to pull on intervals Solution Another design pattern needed to allow more of a publish/subscribe model apposed to a request/response one

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet9 Comet About Comet Comet, again, is just a design pattern Comet takes the TCP stream being sent to the browser and keeps it open With the stream open, the server ‘flushes’ (or pushes) the data to the client when ever the server deems necessary XMLHttp/Request is able to process this flushed data and maintain the open connection Makes the browser a serious contender for developing any new application Problems The TCP keep-alive is not exactly supported in web servers Lots of hacks exist to do it, Apache soon to support Not all browsers have a call-back to support this, so may wind up with timer client side, checking if new information arrived

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet10 SOAP, AJAX and Comet Is it Cleaner? Based of the names, one would think so… Lack of standardized implementations isn’t Asynchronous good, pub/sub good, move towards SOA model good, we’re on the right track When to use it… Not all applications should be web based (local) Processor intensive, graphic intensive, etc. If users require only small sub sets of data, yet have to request large HTML documents to get it, AJAX If a pub/sub architecture is needed (meebo) Comet

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet11 Looking Forward AJAX forces XML to the client which: Can provide last minute-outer edge firewalling Makes ‘services’ and web page functionality more modular Can decrease bandwidth consumption Comet provides server side call backs Something WSE (Web Service Eventing) tried creating Eliminates wasteful request/response model AJAX + Comet = ??? Next generation web applications Online equiv to Microsoft Word Microsoft Office Online Ruby on Rails Push for new companies offering “services” Backup services Have Browser? Will work!

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet12 Demo Live AJAX/SOAP Demo

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet13 Questions Questions and Comments are Welcome

5/3/2006Mike/Justin/JYoo AJAX/SOAP/Comet14 What is AJAX Asynchronous Javascript And XML Used in creating web application