Ajax & Client-side Dynamic Web 20061040 Gunwoo Park (Undergraduate)

Slides:



Advertisements
Similar presentations
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 11: Advanced Web Technologies.
Advertisements

Client side performance in Web based Banking applications Divakar Prabhu Infosys Limited (NASDAQ: INFY)
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
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.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
1 JavaScript & AJAX CS , Spring JavaScript.
CSC 2720 Building Web Applications JavaScript. Introduction  JavaScript is a scripting language most often used for client-side web development.  JavaScript.
ITM352 Javascript and Dynamic Web Pages: Client Side Processing.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
INTRODUCTION TO DHTML. TOPICS TO BE DISCUSSED……….  Introduction Introduction  UsesUses  ComponentsComponents  Difference between HTML and DHTMLDifference.
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.
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'
AJAX Without the “J” George Lawniczak. What is Ajax?
JavaScript, Fourth Edition Chapter 12 Updating Web Pages with AJAX.
AJAX Making Dynamic Web pages more Dynamic Jim Hendricks April 25th, 2006.
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.
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.
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
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.
Building Rich Web Applications with Ajax Linda Dailey Paulson IEEE – Computer, October 05 (Vol.38, No.10) Presented by Jingming Zhang.
Telerik Software Academy ASP.NET Web Forms Telerik Software Academy ASP.NET Web Forms.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
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.
Web Technology Introduction AJAXAJAX. AJAX Outline  What is AJAX?  Benefits  Real world examples  How it works  Code review  Samples.
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
TOPIC II Dynamic HTML Prepared by: Nimcan Cabd Cali.
Ajax for Dynamic Web Development Gregory McChesney.
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.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
HTML A brief introduction HTML1. HTML, what is? HTML is a markup language for describing web documents (web pages). HTML stands for Hyper Text Markup.
JavaScript & Introduction to AJAX
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?
Overview Web Technologies Computing Science Thompson Rivers University.
Open Solutions for a Changing World™ Eddy Kleinjan Copyright 2005, Data Access WordwideNew Techniques for Building Web Applications June 6-9, 2005 Key.
INNOV-16: Rich User Interface for the Web???? AJAX to the Rescue Ken Wilner VP of Technology Progress Software.
JQuery Fundamentals Introduction Tutorial Videos
DHTML.
Web Technologies Computing Science Thompson Rivers University
JavaScript and Ajax (Ajax Tutorial)
MIS Professor Sandvig MIS 324 Professor Sandvig
AJAX – Asynchronous JavaScript and XML
AJAX.
AJAX.
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
AJAX Robin Burke ECT 360.
Introduction to AJAX Sue Brandreth.
Secure Web Programming
MIS JavaScript and API Workshop (Part 3)
MIS Professor Sandvig MIS 324 Professor Sandvig
Web Technologies Computing Science Thompson Rivers University
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
MIS Professor Sandvig MIS 424 Professor Sandvig
Introduction to JavaScript
Presentation transcript:

Ajax & Client-side Dynamic Web Gunwoo Park (Undergraduate)

Contents - What’s Ajax? - What’s DHTML? (JavaScript, CSS, DOM) - What’s XMLHttpRequest - How to instantiate XMLHttpRequest - XMLHttpRequest’s request/response with Server - Why to use Ajax? - Ajax’s Merit & Demerit (Summary) - Ajax Implementation Example - ETC - References - Q&A

- Asynchronous JavaScript And XML - It’s just set of already existing technologies. - Ajax = {DHTML, XMLHttpRequest} - DHTML: Web page loaded in client-side can be changed efficiently and dynamically. ( = {JavaScript, CSS, DOM} ) - XMLHttpRequest: Web page can asynchronously communicate(request/response) with server in background. - Using Ajax = Web page request/response data from server using XMLHttpRequest, and meantime change page using DHTML. ※ XML is not essential part of Ajax. Naming sense is not good! What’s Ajax?

- DHTML (Dynamic HTML) = {JavaScript + CSS + DOM} - JavaScript: client-side script language. - CSS: web style(how to present content) can be separated with web content. - DOM: programming interface. JavaScript can access and control DOM. ※ Changing DOM = Changing web page loaded in client- side. What’s DHTML? (1/4)

What’s DHTML? – JavaScript (2/4) - Client download all the JavaScript code. - JavaScript code is executed in client-side. - Very flexible language. write_free_board.jsp

What’s DHTML? – CSS (3/4) hello.css CSS (Cascading Style Sheet) -Web content & style can be separated. CSS is charge of web style. - By using CSS, we can effectively decrease duplicated HTML codes. - In the future, we can easily modify the web style. For example, by modifying just few lines, you can convert whole page. hello.html If you modify “declared” style in hello.css, the result would be applied to several parts of HTML.

What’s DHTML? – DOM (4/4) (Capture from DOMInspector of FireFox) DOM (Document Object Model) - JavaScript can access each part of page using this model called “DOM”. Access DOM and modify web page content

- Ajax = {DHTML, XMLHttpRequest} - XMLHttpRequest is charge of request/response with server in background using HTTP protocol. - It’s just an JavaScript object. We can instantiate this object by predefined constructor, also can use predefined methods in browser. - Its communication is asynchronous. (more detail in next page) What’s XMLHttpRequest? (1/2)

What’s XMLHttpRequest? (2/2) What means “Asynchronous”? Synchronous Example>> “I click the ‘show image’ button, then I should wait until my request(clicking) is processed by downloading all contents of next page to show image.”  I cannot do any job until last request is fully processed. Asynchronous Example>> “I click the ‘show image’ button. Because it’s asynchronous, I can do other job like scroll-down to see some texts. If the request is fully processed, image is shown in the corner of this page. I need not to care about waiting.” => I can do other job while last request is being processed.

How to instantiate XMLHttpRequest Constructor is different by type of web browser. But the basic methods are same. (open, send, etc)

XMLHttpRequest’s request/response with Server Process response data. In this example, response data is used to modify DOM. cf) Response data can be plain text, JSON, or XML, etc. Send request to server. In this example, no parameter is set. cf. send(parameter)

Why to use Ajax? What’s different with traditional web development(page by page)? First, many functions is executed on client-side using JavaScript. Using Ajax, we can download necessary part by using XMLHttpRequest. You don’t need to download whole new page to refresh the page. It tends to download unnecessary data. (Maybe, latter can arise some question like this: When we click another menu, why should we download menu bar which is not needed to be re-downloaded?) Dynamic change of web page is possible because of DHTML. By integrating DOM + XMLHttpRequest, we can make dynamic web interface.

Ajax’s Merit & Demerit (Summary) Merit 1. Dynamic changing of page without going new page. 2. Asynchronous, so user don’t need to wait. 3. Because of JavaScript, many functions can be executed on client side. It reduces server’s burden. 4. Network traffic is reduced because only necessary data are downloaded. 5. No plug-in is needed because native engine is provided by browser. (although not every…) Demerit 1. Requirement of knowledge about cross-browsing. 2. There are some browsers which doesn’t support Ajax. (Popular browsers provide Ajax.) 3. It’s open source because of JavaScript, so differentiation is very hard. 4. Security problem should be more concerned.

Ajax Implementation Example Source code > Dragable Objects. If you drag an item into ★ READ ★ area, The additional Information is downloaded from server, and printed in this area. Let’s see!!!

ETC - XML: response as XML can be processed with DOM. - JSON(JavaScript Object Notation): it’s response with object of JavaScript. If you’re interested in Ajax, first I recommend to study more detail about DHTML. In my experience, JavaScript seems most tricky part. If you plan to make huge project, you should know about refactoring or design pattern like MVC in JavaScript. I haven’t covered any detail of grammar or how to make a code because it’s not appropriate for this presentation. That’s for your job to do. Googling!!!

References - “Ajax in action” authored by Eric and Dave. - “Ajax 入門 ” authored by Toshiro Takahashi.

Q&A

Thank U