Javascript AJAX HTML WEB SERVER Asynchronous. Javascript HTML events DOM – document object model browser internal view of html page compute.

Slides:



Advertisements
Similar presentations
Adding Dynamic Content to your Web Site
Advertisements

AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Asynchronous HTTP request generation in JavaScript (AJAX)
INTRODUCTION The Group WEB BROWSER FOR RELATION Goals.
AJAX asynchronous server-client communication. Test.
Javascript AJAX HTML WEB SERVER Asynchronous. AJAX FUNCTIONS.
Multiple Tiers in Action
AJAX (Asynchronous JavaScript and XML) Amit Jain CS 590 – Winter 2008.
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:
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Making AJAX Easy with jQuery Chris Renner Health Systems Analyst Programmer & Informatics Manager VUMC Office of Grants & Contracts Management October.
The Document Object Model (DOM) & Asynchronous Javascript And XML (AJAX) : an introduction UFCEKG-20-2 : Data, Schemas and Applications.
Internet Applications Spring Review Last week –MySQL –Questions?
Introduction to AJAX AJAX Keywords: JavaScript and XML
Ajax (Asynchronous JavaScript and XML). AJAX  Enable asynchronous communication between a web client and a server.  A client is not blocked when an.
PHP and AJAX ISYS 475. AJAX Asynchronous JavaScript and XML: – JavaScript, Document Object Model, Cascade Style Sheet, XML, server-side script such as.Net,
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
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.
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.
1 rfXcel Confidential Copyright 2007 Web Technology JavaScript 12/10/07.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Client side web programming Introduction Jaana Holvikivi, DSc. School of ICT.
OWL Jan How Websites Work. “The Internet” vs. “The Web”?
AJAX محمد احمدی نیا 2 Of 27 What is AJAX?  AJAX = Asynchronous JavaScript and XML.  AJAX is not a new programming language, but.
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.
SYST Web Technologies SYST Web Technologies AJAX.
Creating Databases for Web applications Server side vs client side PHP basics Homework: Get your own versions of sending working: both html and Flash!
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.
SE-2840 Dr. Mark L. Hornick 1 Introduction to Ajax Asynchronous Javascript And 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.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
AJAX AJAX Asynchronous JavaScript and XML --- MADHAVI
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
INNOV-2: Build a Better Web Interface Using AJAX Chris Morgan Pandora Software Systems
JavaScript and Ajax Week 10 Web site:
NCCUCS 軟體工程概論 Lecture 5: Ajax, Mashups April 29, 2014.
AJAX Rohan B Thimmappa. What Is AJAX? AJAX stands for Asynchronous JavaScript and XML. AJAX stands for Asynchronous JavaScript and XML. A remote scripting.
JavaScript and Ajax (Ajax Tutorial)
AJAX AJAX = Asynchronous JavaScript and XML.
CS 371 Web Application Programming
AJAX and REST.
AJAX.
Web System & Technology
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
AJAX and JSP ISYS 350.
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
Web Browser server client 3-Tier Architecture Apache web server PHP
ISC440: Web Programming 2 AJAX
Chengyu Sun California State University, Los Angeles
AJAX CS-422 Dick Steflik.
Web Technology Even Sem 2015
Client-Server Model: Requesting a Web Page
AJAX Chapters 19, 20.
AJAX and JSP ISYS 350.
AJAX By Prof. B.A.Khivsara
Software Engineering for Internet Applications
Presentation transcript:

Javascript AJAX HTML WEB SERVER Asynchronous

Javascript HTML events DOM – document object model browser internal view of html page compute

Javascript HTML PHP script Asynchronous http exchanges AJAX events DOM compute WEB SERVER DB

AJAX FUNCTIONS

MAKES AN HTTP OBJECT function createRequestObject( ) { var ro; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer") { ro = new ActiveXObject("Microsoft.XMLHTTP"); } else { ro = new XMLHttpRequest(); } return ro; } var http = createRequestObject( );

HTML SECTION This is unused Enter… -- input field id N100 is input to JS -- div id N200 will hold output from JS

SENDS HTTP REQUEST TO WEB SERVER function sndReq() { u = document.getElementById("N100").value http.open('get', 'Ajax1.php?data=' + u + "&junk="+Math.random ( ) ); //avoids caching effects http.onreadystatechange = handleResponse; http.send(null); } //Builds HTTP request, says who processes it on server, and who handles response on Browser, and sends request.

PHP script - Ajax1.php – input named "data" <?php $data = $_GET["data"] ; print $data ; ?> -- results are “printed” to http. responseText variable in JS -- print statement outputs are all concatenated

HANDLES HTTP RESPONSE FROM WEB SERVER function handleResponse() { if( http.readyState == 4 ) //results downloaded to browser { var response = http.responseText ; document.getElementById("N200").innerHTML = response } -- responseText – receives print output from PHP script