Introduction to AJAX AJAX Keywords: JavaScript and XML

Slides:



Advertisements
Similar presentations
AJAX Technologies KAUNAS UNIVERSITY OF TECHNOLOGY MODULE: INFORMATION TECHNOLOGY GROUP: IF - 4/9 GROUP: VENTILIATORIAI
Advertisements

AJAX – The Future of Web Development? Anders Moberg David Mörtsell David Södermark.
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.
1 Cleaning up the Internet Using AJAX, SOAP and Comet CS526 Mike Gerschefske Justin Gray James Yoo 02 May 2006.
Cloud Computing Lecture #7 Introduction to Ajax Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under a.
Apache Tomcat Server Typical html Request/Response cycle
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
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.
1 JavaScript & AJAX CS , Spring JavaScript.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Web Design Basic Concepts.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
PHP and AJAX ISYS 475. AJAX Asynchronous JavaScript and XML: – JavaScript, Document Object Model, Cascade Style Sheet, XML, server-side script such as.Net,
Ruth Betcher Ruth Christie
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
JavaScript, Fourth Edition Chapter 12 Updating Web Pages with AJAX.
AJAX and Java ISYS 350. AJAX Asynchronous JavaScript and XML: – Related technologies: JavaScript, Document Object Model, XML, server-side script such.
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.
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
JavaScript – Quiz #9 Lecture Code:
Web Applications BIS4430 – unit 8. Learning Objectives Explain the uses of web application frameworks Relate the client-side, server-side architecture.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
Building Rich Web Applications with Ajax Linda Dailey Paulson IEEE – Computer, October 05 (Vol.38, No.10) Presented by Jingming Zhang.
WebSphere Portal Technical Conference U.S Creating Rich Internet (AJAX) Applications with WebSphere Portlet Factory.
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)
Fall 2006 Florida Atlantic University Department of Computer Science & Engineering COP 4814 – Web Services Dr. Roy Levow Part 2 – Ajax Fundamentals.
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Introduction to PHP.
Asynchronous Javascript And XML AJAX : an introduction UFCEUS-20-2 : Web Programming.
Web Technology Introduction AJAXAJAX. AJAX Outline  What is AJAX?  Benefits  Real world examples  How it works  Code review  Samples.
School of Computing and Information Systems CS 371 Web Application Programming AJAX.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
the acronym for Asynchronous JavaScript and XML.
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.
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.
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.
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.
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.
JavaScript & Introduction to AJAX
AJAX AJAX Asynchronous JavaScript and XML --- MADHAVI
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.
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
Web 2.0 IS530 Fall 2009 Dr. Dania Bilal. Web 2.0 Is the Web that is being transformed into a computing platform for delivering web applications to end.
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..
Overview Web Technologies Computing Science Thompson Rivers University.
JavaScript and Ajax Week 10 Web site:
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.
What is AJAX ? Asynchronous Javascript and XML.
JavaScript and Ajax (Ajax Tutorial)
Not a Language but a series of techniques
AJAX AJAX = Asynchronous JavaScript and XML.
CS 371 Web Application Programming
AJAX.
Asynchronous Java script And XML Technology
AJAX.
NMD202 Web Scripting Week9.
ISC440: Web Programming 2 AJAX
AJAX CS-422 Dick Steflik.
Presentation transcript:

Introduction to AJAX AJAX Keywords: JavaScript and XML Web browser technology Open web standards Browser and platform independent Better and faster Internet applications XML and HTTP Requests

Introduction to AJAX AJAX is an acronym for Asynchronous JavaScript And XML. AJAX is not a programming language. but simply a development technique for creating interactive web applications. The technology uses JavaScript to send and receive data between a web browser and a web server. The AJAX technique makes web pages more responsive by exchanging data with a server behind the scenes, instead of reloading an entire web page each time a user makes a change. With AJAX, web applications can be faster, more interactive, and more user friendly. AJAX uses an XMLHttpRequest object to send data to a web server, and XML is commonly used as the format for receiving server data, although any format including and plain text can be used.

Introduction to AJAX Conventional HTML + JavaScript Functions of JavaScript: (Form) checking Event handling Dynamic presentation and/or content creation Where is the data on which dynamic creation is based Values of variables that are part of JavaScript code. Values of HTML/form elements AJAX: HTML + JavaScript + XML Get from the server by the JavaScript code. Using standard HTTP Get/Post Request/Response protocol The returned data in XML Data only without presentation – JavaScript code has built in presentation Data + presentation with (inline CSS, XSLT, HTML …) Bottom line No data sent to the client browser more than once from the server One page with multiple server accesses (compared to one page one access) Extreme case: One AJAX page for interactions of the entire web application

How to AJAX Create XMLHttpRequest object IE xmlHttp=new ActiveXObject("Microsoft.XMLHTTP" ) Mozilla xmlHttp=new XMLHttpRequest() Define response handler function function responseHandler() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { textResponse =xmlHttp.responseText ; xmlResponse = xmlHttp.responseXML } } Binding XMLHttpRequest handler function to XMLHttpRequest object xmlHttp.onreadystatechange=responseHandler xmlHttp.onload=responseHandler Connect to the server xmlHttp.open(method, url, asyncFlag, userid, password) Send request to the server xmlHttp.send(requestMessageBody)

AJAX Application Example Online test Many multiple choice questions All questions are displayed on one page After the user answers one question, the correct answer and explanation about why the user answer is wrong is shown on the page For all already-answered questions, their correct answers and explanations are always shown on the page Pure sever-side solution using conventional web application For each question answer submission, the whole page with most of repeated data sent to the browser Pure client-side solution using conventional JavaScript The user can read JavaScript source code to view what is correct answer Large amount of explanation data will be carried by the JavaScript code AJAX solution After the user answers a question, use XmlHttpRequest to ask the server to send the correct answer and explanation. Display the correct answer and explanation received from the server

Software Engineering Challenges Software design can be very different from conventional web applications Client-side design JavaScript as application controller (partial) presentation generator Server-side design XML data item generation instead of HTML page generation. The server provide (small pieces of) data services to the client.