Lesson 12: JavaScript and AJAX

Similar documents
Developing Ajax Web Apps with GWT. Session I

User Interaction: jquery

Lesson 11: JavaScript Libraries

AJAX: Rich Internet Applications

Credits: Some of the slides are based on material adapted from

COURSE 20480B: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Programming in HTML5 with JavaScript and CSS3

AJAX Programming Overview. Introduction. Overview

COURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance.

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

A.A. 2008/09. What is Ajax?

Programming in HTML5 with JavaScript and CSS3

Delivery Options: Attend face-to-face in the classroom or remote-live attendance.

Part of this connection identifies how the response can / should be provided to the client code via the use of a callback routine.

Course 20480: Programming in HTML5 with JavaScript and CSS3

TIME SCHEDULE MODULE TOPICS PERIODS. HTML Document Object Model (DOM) and javascript Object Notation (JSON)

Web 2.0 Käyttöliittymätekniikat

CSI 3140 WWW Structures, Techniques and Standards. Representing Web Data: XML

Web Development 20480: Programming in HTML5 with JavaScript and CSS3. Upcoming Dates. Course Description. Course Outline

AJAX: Introduction CISC 282 November 27, 2018

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 14 Database Connectivity and Web Technologies

jquery and AJAX

Outline. AJAX for Libraries. Jason A. Clark Head of Digital Access and Web Services Montana State University Libraries

This course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.

20480B: Programming in HTML5 with JavaScript and CSS3

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 11 Test Bank

Chapter 10 Web-based Information Systems

Chapter 10: Understanding the Standards

Programming in HTML5 with JavaScript and CSS3

AJAX Workshop. Karen A. Coombs University of Houston Libraries Jason A. Clark Montana State University Libraries

Technology in Action. Chapter Topics (cont.) Chapter Topics. Reasons for Software Programming. Information Systems 10/29/2010

Module 5 JavaScript, AJAX, and jquery. Module 5. Module 5 Contains an Individual and Group component

Module 5 JavaScript, AJAX, and jquery. Module 5. Module 5 Contains 2 components

2/6/2012. Rich Internet Applications. What is Ajax? Defining AJAX. Asynchronous JavaScript and XML Term coined in 2005 by Jesse James Garrett

PELLISSIPPI STATE COMMUNITY COLLEGE MASTER SYLLABUS. INTRODUCTION TO INTERNET SOFTWARE DEVELOPMENT CSIT 2230 (formerly CSIT 2645)

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Helper Applications & Plug-Ins

Web 2.0 and AJAX Security. OWASP Montgomery. August 21 st, 2007

JavaScript Specialist v2.0 Exam 1D0-735

CS WEB TECHNOLOGY

1Site Development Foundations Objectives and Locations

JavaScript Context. INFO/CSE 100, Spring 2005 Fluency in Information Technology.

CNIT 129S: Securing Web Applications. Ch 3: Web Application Technologies

AJAX and JSON. Day 8

AJAX: The Basics CISC 282 March 25, 2014

Discovering Computers Chapter 13 Programming Languages and Program Development

Working with Javascript Building Responsive Library apps

Web 2.0, AJAX and RIAs

13. Databases on the Web

IT2353 WEB TECHNOLOGY Question Bank UNIT I 1. What is the difference between node and host? 2. What is the purpose of routers? 3. Define protocol. 4.

Web Application Security

GRITS AJAX & GWT. Trey Roby. GRITS 5/14/09 Roby - 1

Table of Contents WWW. WWW history (2) WWW history (1) WWW history. Basic concepts. World Wide Web Aka The Internet. Client side.

Integration Test Plan

XMLHttpRequest. CS144: Web Applications

HTML, XHTML, and CSS. Sixth Edition. Chapter 1. Introduction to HTML, XHTML, and

XML. Jonathan Geisler. April 18, 2008

Languages in WEB. E-Business Technologies. Summer Semester Submitted to. Prof. Dr. Eduard Heindl. Prepared by

Shankersinh Vaghela Bapu Institue of Technology

When created, it is given a name.

Programming the World Wide Web by Robert W. Sebesta

Introduction to HTML5

1D CIW: Web Design Specialist. Course Outline. CIW: Web Design Specialist Apr 2018

CS50 Quiz Review. November 13, 2017

AJAX: The Basics CISC 282 November 22, 2017

Microsoft Programming in HTML5 with JavaScript and CSS3

CIW: Web Design Specialist. Course Outline. CIW: Web Design Specialist. ( Add-On ) 16 Sep 2018

AJAX and PHP AJAX. Christian Wenz,


MS_ Programming in HTML5 with JavaScript and CSS3.

Lesson 5: Multimedia on the Web

Project Title REPRESENTATION OF ELECTRICAL NETWORK USING GOOGLE MAP API. Submitted by: Submitted to: SEMANTA RAJ NEUPANE, Research Assistant,

AJAX. Introduction. AJAX: Asynchronous JavaScript and XML

Contents 1 INTRODUCTION TO COMPUTER NETWORKS...

AJAX(Asynchronous Javascript + XML) Creating client-side dynamic Web pages

Cleveland State University Department of Electrical and Computer Engineering. CIS 408: Internet Computing

CPET 581 E-Commerce & Business Technologies. Topics

Tennessee. Trade & Industrial Course Web Page Design II - Site Designer Standards. A Guide to Web Development Using Adobe Dreamweaver CS3 2009

Adobe ColdFusion level 1 course content (3-day)

,

A network is a group of two or more computers that are connected to share resources and information.

THE EXPLOITATION OF WEBGIS BASED ON ARCGIS SERVER AND AJAX

JAVASCRIPT FOR PROGRAMMERS

LECT 8 WEB SECURITY BROWSER SECURITY. Repetition Lect 7. WEB Security

Ajax- XMLHttpResponse. Returns a value such as ArrayBuffer, Blob, Document, JavaScript object, or a DOMString, based on the value of

Session 18. jquery - Ajax. Reference. Tutorials. jquery Methods. Session 18 jquery and Ajax 10/31/ Robert Kelly,

Setting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a

Introduction to Web Application Development Using JEE, Frameworks, Web Services and AJAX

UR what? ! URI: Uniform Resource Identifier. " Uniquely identifies a data entity " Obeys a specific syntax " schemename:specificstuff

20480C: Programming in HTML5 with JavaScript and CSS3. Course Code: 20480C; Duration: 5 days; Instructor-led. JavaScript code.

Modern Web Application Development. Sam Hogarth

Alpha College of Engineering and Technology. Question Bank

Abstract. 1. Introduction. 2. AJAX overview

AIM. 10 September

Introduction to InfoSec SQLI & XSS (R10+11) Nir Krakowski (nirkrako at post.tau.ac.il) Itamar Gilad (itamargi at post.tau.ac.il)

Web Development & Design Foundations with HTML5, 8 th Edition Instructor Materials Chapter 14 Test Bank

Lesson 14 SOA with REST (Part I)

CTI Short Learning Programme in Internet Development Specialist

ibreathesports Inc. Apurva Alok Bernardo Silva

INDEX SYMBOLS See also

Transcription:

Lesson 12: JavaScript and AJAX

Objectives Define fundamental AJAX elements and procedures Diagram common interactions among JavaScript, XML and XHTML Identify key XML structures and restrictions in relation to JavaScript Explain how the XMLHttpRequest object interacts with XML Use the XMLHttpRequest object to retrieve data Describe typical AJAX-based requests Identify key server response issues related to AJAX-based requests Use JavaScript to communicate with databases Identify alternatives to XML-based AJAX

Introduction to AJAX AJAX (Asynchronous JavaScript and XML) A technology that combines functionality from JavaScript and XML to allow a Web page to reload only a specified portion, rather than the entire page, in response to a request The XMLHttpRequest object A JavaScript object that is used to request either XML data or plaintext data from a Web server

Introduction to XML XML (Extensible Markup Language) A meta-language that enables the developer to create unique tags for structuring Web documents based on context rather than appearance Valid XML Is well-formed and references a DTD Well-formed XML Conforms to strict, specific syntax rules

Interactions Among JavaScript, XML and XHTML Common interactions in AJAX Relating XML structures and restrictions to JavaScript Key structures Restrictions How XMLHttpRequest interacts with XML

Using AJAX Scripts There are three basic JavaScript functions in a typical AJAX request: A function that creates an HTTP request A function that calls and submits the HTTP request A function that handles the data returned to the page

AJAX and Servers Typical AJAX-based requests Returning server variables from the server to the client Parsing XML and data Sending entire pages of information in a native language to the server for interpretation and retrieval Server response issues with AJAX Partial responses Unfinished responses

AJAX and Databases Relational databases Relationships in databases Using AJAX with a database Security issues with AJAX and databases

Usability Issues with AJAX Bookmarking Search engines Back button Script blocking ActiveX blocking

Combining AJAX with Libraries AJAX Works well with data and server-side applications Works well with JavaScript libraries

Alternatives to XML-based AJAX Java applets Adobe Flash Microsoft Silverlight

Summary Define fundamental AJAX elements and procedures Diagram common interactions among JavaScript, XML and XHTML Identify key XML structures and restrictions in relation to JavaScript Explain how the XMLHttpRequest object interacts with XML Use the XMLHttpRequest object to retrieve data Describe typical AJAX-based requests Identify key server response issues related to AJAX-based requests Use JavaScript to communicate with databases Identify alternatives to XML-based AJAX

Lesson 12 Quiz 1. AJAX refreshes the Web page by: a. using Microsoft APIs and function calls from the DOM. b. re-requesting the page from the database using SQL commands. c. making server requests via XMLHttpRequest to refresh the entire page. d. making server requests via XMLHttpRequest to refresh the requested portion of the page.

Lesson 12 Quiz 1. AJAX refreshes the Web page by: a. using Microsoft APIs and function calls from the DOM. b. re-requesting the page from the database using SQL commands. c. making server requests via XMLHttpRequest to refresh the entire page. d. making server requests via XMLHttpRequest to refresh the requested portion of the page.

Lesson 12 Quiz 2. To be considered well-formed, XML code must conform to strict syntax rules. In order to be considered valid, an XML document must: a. reference the DOM. b. be well-formed and reference a DTD. c. be used in an AJAX implementation. d. use tags specified by XHTML Transitional.

Lesson 12 Quiz 2. To be considered well-formed, XML code must conform to strict syntax rules. In order to be considered valid, an XML document must: a. reference the DOM. b. be well-formed and reference a DTD. c. be used in an AJAX implementation. d. use tags specified by XHTML Transitional.

Lesson 12 Quiz 3. Consider the following script: if(navigator.appname == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { http = new XMLHttpRequest(); } This code will: a. check to see if the script uses AJAX. b. ensure the script exits gracefully if XMLHttpRequest is invalid. c. check for browser compatibility. d. check for ActiveX objects running.

Lesson 12 Quiz 3. Consider the following script: if(navigator.appname == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { http = new XMLHttpRequest(); } This code will: a. check to see if the script uses AJAX. b. ensure the script exits gracefully if XMLHttpRequest is invalid. c. check for browser compatibility. d. check for ActiveX objects running.

Lesson 12 Quiz 4. Which choice demonstrates the proper syntax for linking an external AJAX/JavaScript file? a. <script href="jquery-1.4.4.min.js" /> b. <script href="jquery-1.4.4.min.js"></script> c. <script src="jquery-1.4.4.min.js" /> d. <script src="jquery-1.4.4.min.js"></script>

Lesson 12 Quiz 4. Which choice demonstrates the proper syntax for linking an external AJAX/JavaScript file? a. <script href="jquery-1.4.4.min.js" /> b. <script href="jquery-1.4.4.min.js"></script> c. <script src="jquery-1.4.4.min.js" /> d. <script src="jquery-1.4.4.min.js"></script>

Lesson 12 Quiz 5. Which of the following is an alternative to XML-based AJAX? a. Flash b. Structured Query Language (SQL) c. The HTMLHttpRequest object d. JavaScript

Lesson 12 Quiz 5. Which of the following is an alternative to XML-based AJAX? a. Flash b. Structured Query Language (SQL) c. The HTMLHttpRequest object d. JavaScript