Introduction to AJAX MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/4/2016.

Slides:



Advertisements
Similar presentations
Copyright © Steven W. Johnson
Advertisements

Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
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.
Inline, Internal, and External FIle
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
INTRODUCTION TO CLIENT-SIDE WEB PROGRAMMING ACM 511 ACM 262 Course Notes.
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'
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
AJAX and Java ISYS 350. AJAX Asynchronous JavaScript and XML: – Related technologies: JavaScript, Document Object Model, XML, server-side script such.
Client side web programming Introduction Jaana Holvikivi, DSc. School of ICT.
Random Logic l Forum.NET l AJAX Behind the buzz word Forum.NET ● January 23, 2006.
INTRODUCTION JavaScript can make websites more interactive, interesting, and user-friendly.
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.
Class03 Introduction to Web Development (Hierarchy and the IDE) MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University.
Class01 Course Introduction MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/12/2016.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Class02 More Arrays MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.
Form Data (part 2) MIS 3502, Fall 2015 Brad N Greenwood, PhD Department of MIS Fox School of Business Temple University 11/10/2015 Slide 1.
JavaScript and Ajax Week 10 Web site:
Class05 How to get data from a form MIS 3501, Fall 2015 Brad N Greenwood, PhD MBA Department of MIS Fox School of Business Temple University 9/8/2015.
Class02 Introduction to web development concepts MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
Sessions and cookies MIS 3501, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 4/12/2016.
National College of Science & Information Technology.
JavaScript, AJAX and JSON MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/9/2016.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
Dive into web development
Form Data (part 2) MIS 3502, Fall 2015 Jeremy Shafer Department of MIS
Web Technologies Computing Science Thompson Rivers University
Programming Web Pages with JavaScript
JavaScript and Ajax (Ajax Tutorial)
Not a Language but a series of techniques
AJAX AJAX = Asynchronous JavaScript and XML.
AJAX and REST.
PHP: includes MIS 3501 Jeremy Shafer Department of MIS
Application with Cross-Platform GUI
Asynchronous Java script And XML Technology
AJAX.
How to get data from a form
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
Introduction to JavaScript
Introduction to AJAX MIS 3502 Jeremy Shafer Department of MIS
IS 360 Course Introduction
A second look at JavaScript
Ajax and JSON (jQuery part 2)
ISC440: Web Programming 2 AJAX
JavaScript & jQuery AJAX.
Secure Web Programming
Numbers, strings and dates in JavaScript
MIS JavaScript and API Workshop (Part 3)
Introduction to AJAX and JSON
Introduction to JavaScript
An introduction to jQuery
Introduction to MIS3502 MIS 3502 Jeremy Shafer Department of MIS
MVC – Model View Controller
Introduction to MIS2402 MIS MIS2402 Jeremy Shafer Department of MIS
An introduction to jQuery
Introduction to AJAX and JSON
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Client-Server Model: Requesting a Web Page
HTML MIS 2402 Jeremy Shafer Department of MIS Fox School of Business
AJAX Chapters 19, 20.
Sending a text message (and more)
Ajax and JSON Jeremy Shafer Department of MIS Fox School of Business
Presentation transcript:

Introduction to AJAX MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/4/2016

Course Overview New tools Weeks Using a web framework Weeks 6 -8 Using a mobile device IDE Weeks 9-10 The class project (It’s a bake off!) Weeks We are (still) here Slide 2 Arrays PDO MVC JavaScript / JSON

Recall from last time… URL, referencing a.php page HTTP Response Database PHP Interpreter Browser JavaScript Engine Slide 3 As a general rule, JavaScript lives here, in the browser, and does not interact with any resource outside the browser. This is called a “round trip”

The DOM (Document Object Model) Slide 4 JavaScript can change all the HTML elements in the page JavaScript can change all the HTML attributes in the page JavaScript can change all the CSS styles in the page JavaScript can remove existing HTML elements and attributes JavaScript can add new HTML elements and attributes JavaScript can react to all existing HTML events in the page JavaScript can create new HTML events in the page Source: All of these activities are accomplished through the properties and methods of objects.

So, what’s AJAX? 5 AJAX is short for Asynchronous JavaScript and XML It is the combination of these technologies, not a separate technology in itself It’s kind of sneaky…

AJAX uses JavaScript to call web services 6 URL, referencing a.php page HTTP Response Database PHP Interpreter Browser JavaScript Engine Less of this

AJAX uses JavaScript to call resources 7 Database PHP Interpreter Browser JavaScript Engine HTTP Requests More of this

AJAX uses JavaScript to call resources 8 Browser JavaScript Engine Let’s take a closer look at JavaScript and the DOM

AJAX uses JavaScript to call resources 9 XMLHttpRequest() The term "AJAX" was publicly stated on 18 February 2005 by Jesse James Garrett in an article titled "AJAX: A New Approach to Web Applications", based on techniques used on Google pages. This object acts like a browser, inside the browser.

XMLHttpRequest allows us to do things like this… Slide 10

XMLHttpRequest allows us to do things like this… Slide 11 Look at the parameter. Is there something to do?

XMLHttpRequest allows us to do things like this… Slide 12 Ah! There *is* something to do

XMLHttpRequest allows us to do things like this… Slide 13 “listen” for the readystate property to change. When it does, execute this function.

XMLHttpRequest allows us to do things like this… Slide 14 This is an “anonymous function”, a function defined inside of a function. (Pretty crazy, huh?)

XMLHttpRequest allows us to do things like this… Slide 15 Get ready to open a page. Use the GET method. Specify the page. Asynchronous = true.

XMLHttpRequest allows us to do things like this… Slide 16 Go get the page.

Slide 17 It’s time for an experiment!