INNOV-2: Build a Better Web Interface Using AJAX Chris Morgan Pandora Software Systems

Slides:



Advertisements
Similar presentations
AJAX Development Mike Ormond Developer & Platform Group Microsoft Ltd
Advertisements

AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
1 JavaScript & AJAX CS , Spring JavaScript.
Using AJAX Galip Aydin, Ahmet Sayar, and Marlon Pierce Community Grids Lab Indiana University.
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
Making AJAX Easy with jQuery Chris Renner Health Systems Analyst Programmer & Informatics Manager VUMC Office of Grants & Contracts Management October.
Writing All Your Code In OpenEdge Architect Peter van Dam.
Ruth Betcher Ruth Christie
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
AJAX By Steven Hernandez Research Analyst NIATEC.
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.
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
Ajax Technology for the Web Nic Shulver, FCET, Staffordshire University Introduction What is it? Pros and Cons Why is it important? Traditional Client-Server.
Intro to Ajax Fred Stluka Jan 25, /25/2006Intro to AjaxFred Stluka2 What is Ajax? "Asynchronous JavaScript and XML" New name for an old technique:
AJAX Making Dynamic Web pages more Dynamic Jim Hendricks April 25th, 2006.
AJAX and Atlas in ASP.NET 2.0 William J. Steele MSDN Developer Evangelist Microsoft Corporation
Matrix Mapping Tool Sam Gross Internship at Virtual Technology Corporation.
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.
XMLHttpRequest Object When Microsoft Internet Explorer 5.0 introduced a rudimentary level of XML support, an ActiveX library called MSXML was also introduced,
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Asterisk based real-time social chat Advisor : Lian-Jou Tsai Student : Jhe-Yu Wu.
DEV-5: Introduction to WebSpeed ® Stephen Ferguson Sr. Training Program Manager.
Rich Internet Applications 4. Ajax. What is Ajax? Asynchronous JavaScript and XML Term coined in 2005 by Jesse James Garrett
Network Computing Laboratory Ajax - Rich User Experience Initiative - Dec Inseok Hwang.
Random Logic l Forum.NET l AJAX Behind the buzz word Forum.NET ● January 23, 2006.
1 Geospatial and Business Intelligence Jean-Sébastien Turcotte Executive VP San Francisco - April 2007 Streamlining web mapping applications.
AJAX محمد احمدی نیا 2 Of 27 What is AJAX?  AJAX = Asynchronous JavaScript and XML.  AJAX is not a new programming language, but.
-By V.Gouthaman. INTRODUCTION Ajax (shorthand for asynchronous JavaScript and XML) is a group of interrelated web development techniques used on the client-side.
Web Technology Introduction AJAXAJAX. AJAX Outline  What is AJAX?  Benefits  Real world examples  How it works  Code review  Samples.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
the acronym for Asynchronous JavaScript and XML.
Session 1 Chapter 1 - Introduction to Web Development ITI 133: HTML5 Desktop and Mobile Level I
Ajax for Dynamic Web Development Gregory McChesney.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
Ajax VS Flex A comparison based on shopping cart implementation PoHsu Yeh py2157.
Web Technologies Lecture 7 Synchronous vs. asynchronous.
AJAX Asynchronous JavaScript and XML 1. AJAX Outline What is AJAX? Benefits Real world examples How it works 2.
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 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.
JavaScript & Introduction to AJAX
AJAX AJAX Asynchronous JavaScript and XML --- MADHAVI
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 JaxFusion April 2006 David Fekke. Who am I? David Fekke Lead Software Engineer Data Inteligence Group
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..
Javascript AJAX HTML WEB SERVER Asynchronous. Javascript HTML events DOM – document object model browser internal view of html page compute.
A New Way To Web Applications Development Tin Htut Htut Naing Oo Myanmar Information Technology.
NCCUCS 軟體工程概論 Lecture 5: Ajax, Mashups April 29, 2014.
CAESked Computer Aided Engineering Scheduler. Introduction Team Members: Chris Fruin & Jerry Grochowski What CAESked is: Web based class scheduling application.
AJAX Rohan B Thimmappa. What Is AJAX? AJAX stands for Asynchronous JavaScript and XML. AJAX stands for Asynchronous JavaScript and XML. A remote scripting.
INNOV-16: Rich User Interface for the Web???? AJAX to the Rescue Ken Wilner VP of Technology Progress Software.
JavaScript and Ajax (Ajax Tutorial)
CS 371 Web Application Programming
AJAX and REST.
Web Debugging Proxy Application
XMLHttp Object.
AJAX.
Asynchronous Java script And XML Technology
AJAX.
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
COP 3813 Intro to Internet Computing
ISC440: Web Programming 2 AJAX
Intro to Ajax Fred Stluka Jan 25, 2006.
DR. JOHN ABRAHAM PROFESSOR UTPA
Presentation transcript:

INNOV-2: Build a Better Web Interface Using AJAX Chris Morgan Pandora Software Systems

2 INNOV-2: Build a Better Web Interface Using AJAX Session Goals n Define and Explain AJAX n Demonstrate the benefits of AJAX in web interfaces n Provide basic tools for adding AJAX to web interfaces n Provide examples of AJAX web interfaces

3 INNOV-2: Build a Better Web Interface Using AJAX Advantages of Web Interfaces n Thin Client n Easy Deployment n OS Independence

4 INNOV-2: Build a Better Web Interface Using AJAX Disadvantages of Web Interfaces n User Interface is not as rich n Web pages don’t interact with databases JavaScript / DHTML AJAX

5 INNOV-2: Build a Better Web Interface Using AJAX What is AJAX? n AJAX (Asynchronous JavaScript And XML) is an emerging methodology for adding interactivity between a web page and a server-side process. n AJAX is not a new technology, it is a method of using several existing technologies together, including –HTML/XHTML –CSS –JavaScript –DOM –XML*

6 INNOV-2: Build a Better Web Interface Using AJAX Typical Web Application Architecture User Interface Browser Client Http Server Web Server OpenEdge® Database Database Server WebSpeed® PHP perl interface Etc

7 INNOV-2: Build a Better Web Interface Using AJAX Client User Interface Typical Web Application Architecture Time Server User Activity Processing request html response

8 INNOV-2: Build a Better Web Interface Using AJAX AJAX Application Architecture Http Server Web Server OpenEdge® Database Database Server User Interface Browser Client AJAX Engine

9 INNOV-2: Build a Better Web Interface Using AJAX Client AJAX Engine User Interface AJAX Application Architecture Time Server html response xml response

10 INNOV-2: Build a Better Web Interface Using AJAX Demo

11 INNOV-2: Build a Better Web Interface Using AJAX Anatomy of an AJAX Engine http request XML

12 INNOV-2: Build a Better Web Interface Using AJAX JavaScript XMLHttpRequest Object req = new XMLHttpRequest(); req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(null);

13 INNOV-2: Build a Better Web Interface Using AJAX XMLHttpRequest Browser Support n Firefox n Safari n Netscape n Opera n Mozilla

14 INNOV-2: Build a Better Web Interface Using AJAX What about Microsoft? Microsoft Internet Explorer still has a 85% market share* *As of Feb 2006

15 INNOV-2: Build a Better Web Interface Using AJAX Microsoft’s XMLHTTP ActiveX Object req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(); }

16 INNOV-2: Build a Better Web Interface Using AJAX Cross-Browser http request script // branch for native XMLHttpRequest object if (window.XMLHttpRequest) { req = new XMLHttpRequest(); req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(null); // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { req = new ActiveXObject("Microsoft.XMLHTTP"); if (req) { req.onreadystatechange = processReqChange; req.open("GET", url, true); req.send(); }

17 INNOV-2: Build a Better Web Interface Using AJAX A simple processReqChange script function processReqChange() { // only if req shows complete if (req.readyState == 4) { // only if OK if (req.status == 200 || req.status == 0) { xmlResponse = req.responseXML.documentElement; if (xmlResponse.tagName == 'something') {runSomething(xmlResponse);} } else { alert('There was a problem retrieving' + 'the XML data: ' + req.statusText); } } // processReqChange()

18 INNOV-2: Build a Better Web Interface Using AJAX Putting it all Together: A Threadsafe AJAX Engine function ajaxRequest(url) { function processReqChange() {…} var req = null; // prevent browser caching... url += ((url.indexOf('?') > -1) ? '&' : '?') + 'ajaxid=' + new Date().valueOf(); // branch for native XMLHttpRequest object if (window.XMLHttpRequest) { … // branch for IE/Windows ActiveX version } else if (window.ActiveXObject) { … } } // ajaxRequest( url )

19 INNOV-2: Build a Better Web Interface Using AJAX Demo

20 INNOV-2: Build a Better Web Interface Using AJAX AJAX Examples on the Internet n Google’s gmail interface Google’s gmail interface n Google Suggest Google Suggest n Yahoo! maps Yahoo! maps

21 INNOV-2: Build a Better Web Interface Using AJAX Pros and Cons of AJAX Interfaces n Adds Interactivity n Portability n Easy to implement n Many resources available n Buzzword compliance n Increased server load n Need some JavaScript knowledge n Requires JavaScript or ActiveX

22 INNOV-2: Build a Better Web Interface Using AJAX Summary n AJAX is an emerging methodology for adding interactivity between web pages and databases n AJAX is not difficult to implement! n AJAX Enabled web interfaces are the future of web applications

23 INNOV-2: Build a Better Web Interface Using AJAX More Resources n Exchange n INNOV-16: Rich User Interface for the Web???? AJAX to the Rescue (Ken Wilner) Wednesday, 1:15pm n Exploring User Interfaces BOF Tuesday, 2:15pm n Print n Manning Ajax In Action n O’Reilly JavaScript The Definitive Guide

24 INNOV-2: Build a Better Web Interface Using AJAX More Resources n Internet n ys/archives/ php ys/archives/ php n n n n n

25 INNOV-2: Build a Better Web Interface Using AJAX Questions?

26 INNOV-2: Build a Better Web Interface Using AJAX Thank you !