AJAX James Kahng. Congrats Jack Guo for Angular entryentry This week’s coding challenge at end of talk.

Slides:



Advertisements
Similar presentations
By Loukik Purohit & Rohit Ghatol
Advertisements

Copyright © Steven W. Johnson
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 asynchronous server-client communication. Test.
WHAT IS AJAX? Zack Sheppard [zts2101] WHIM April 19, 2011.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
NextGen Technology upgrade – Synerizip - Sandeep Kamble.
JavaScript & jQuery the missing manual Chapter 11
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
AJAX Without the “J” George Lawniczak. What is Ajax?
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:
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.
Asterisk based real-time social chat Advisor : Lian-Jou Tsai Student : Jhe-Yu Wu.
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
OWL Jan How Websites Work. “The Internet” vs. “The Web”?
Cross Site Integration “mashups” cross site scripting.
Random Logic l Forum.NET l AJAX Behind the buzz word Forum.NET ● January 23, 2006.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
Abelian Kingdom Andrew, Kelvin and Peter. What is it? A web (browser) game MORPG on Google map Login with Facebook Interact with your friends And the.
Ajax. –Asynchronous JavaScript and XML –Umbrella term for technologies that often: Use client-side scripting for layout and formatting Use less than full.
Web Application with AJAX CS 526 advanced interned and Web system Presenters Faris Kateb Mohammed AbdulAziz Omar Alzahrani.
the acronym for Asynchronous JavaScript and XML.
Introduction to Angular James Kahng. Terms Framework Template/environment constructed in the language where you fill in details with code Library Set.
Ajax for Dynamic Web Development Gregory McChesney.
Chapter 16: Ajax-Enabled Rich Internet Applications with XML and JSON TP2543 Web Programming Mohammad Faidzul Nasrudin.
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.
ICM – API Server & Forms Gary Ratcliffe.
JQuery and AJAX WEB Technologies : PHP Programming Language.
JSON – Java Script Object Notation. What is JSON JSON is a data interchange format Interactive Web 2.0 applications, no more use page replacement. Data.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
AJAX. Ajax  $.get  $.post  $.getJSON  $.ajax  json and xml  Looping over data results, success and error callbacks.
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.
CHAPTER 8 AJAX & JSON WHAT IS AJAX? Ajax lets you…
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.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
AJAX AJAX Asynchronous JavaScript and XML --- MADHAVI
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
AJAX CS456 Fall Examples Where is AJAX used? Why do we care?
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..
Introduction to AJAX MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/4/2016.
JQUERY AND AJAX
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
NCCUCS 軟體工程概論 Lecture 5: Ajax, Mashups April 29, 2014.
JQuery, JSON, AJAX. AJAX: Async JavaScript & XML In traditional Web coding, to get information from a database or a file on the server –make an HTML form.
4.3. Code animations by using JavaScript Access data access by using JavaScript. Creating Animations, Working with Graphics, and Accessing Data.
Web API - Introduction AJAX, Spring Data REST SoftUni Team Web API
JavaScript and Ajax (Ajax Tutorial)
AJAX and REST.
AJAX.
Asynchronous Java script And XML Technology
JavaScript Basics Stephen Delaney
AJAX.
Session V HTML5 APIs - AJAX & JSON
IS 360 Course Introduction
Asynchronous Javascript And XML
HTML Level II (CyberAdvantage)
HTML5 AJAX & JSON APIs
MIS JavaScript and API Workshop (Part 3)
MIS Professor Sandvig MIS 324 Professor Sandvig
Intro to Ajax Fred Stluka Jan 25, 2006.
Introduction to AJAX and JSON
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
Presentation transcript:

AJAX James Kahng

Congrats Jack Guo for Angular entryentry This week’s coding challenge at end of talk

Traditional websites Browser requests website Server renders website completely and sends to browser Conversation ends! Page does not change anymore

AJAX Stands for Asynchronous Javascript and XML Asynchronous: After the page has loaded XML: XML has fallen out of favor and people mostly use JSON now In a nutshell: Page changes without page refresh!

JSON Stands for Javascript Object Notation Data is stored in POJOs Plain Old Javascript Objects If you know Javascript, you know JSON

JSON Quick refresher (demo on Chrome) var example = {}; Javascript objects can have properties you can create and set example.isFirst = true; If(example.isFirst) { //code }; Properties can be of any type including arrays example.dataArray = [‘iwdsa’, ‘james’]; These properties can be nested however much you want.

So much potential! Real-time updates Google Maps (especially on phone) Gmail Google Docs Faster, dynamically rendered websites Facebook Reddit Enhancement Suite

Demo We are going to build a Twitch search for your favorite channels We will use JQuery and Handlebars! Twitch API

AJAX in JQuery $.ajax({ url: url, method: type of request, success: function called after the request is complete });

Potential problems AJAX in browser only allows requests to your current domain If you are on google.com, you can only request to EXACT same domain Work around this by either: Using jsonp datatype client-side (not json) Use URLs that have Access-Control-Allow-Origin header set to * on server side

Why Handlebars? Template processor You set up HTML template and then fill it with your data JQuery is really annoying to use for DOM manipulation DOM manipulation means dynamically changing your HTML Handlebars makes this really simple and pretty NOTE: Angular does this PLUS tons of other functionalities. If you want just the quick HTML changes, Handlebars is good enough

Coding challenge Build a website that has some kind of AJAX functionality APIs are really good for this Send a link of your site to Winner gets congratulations in weekly and… FERRERO ROCHER :O Good luck