CITS1231 Web Technologies. Ajax and Web 2.0 Turning clunky website into interactive mashups
|
|
- Toby Wilkins
- 6 years ago
- Views:
Transcription
1 CITS1231 Web Technologies Ajax and Web 2.0 Turning clunky website into interactive mashups
2 What is Ajax? Shorthand for Asynchronous JavaScript and XML. Coined by Jesse James Garrett of Adaptive Path. Helps transform clunky Web interfaces into interactive applications. Made popular by Google because of Google Suggest. 2
3 Google AJAX Search API 3
4 Google AJAX Search API 4
5 Web 1.0 is Synchronous In Web 1.0, all requests are synchronous: The client sends a request to the server. The client waits for a response from the server. While waiting, user sees: An hourglass (especially on Windows). A spinning beachball (usually on Mac machines). The application essentially freezes and sometimes the cursor changes. Web 1.0 applications: Feel clunky or slow. Lack of realtime interactivity. Application essentially becomes unusable until response received. If server busy or extensive processing required, wait maybe long. 5
6 Web 2.0 and Asynchronous Requests Web 2.0 introduces asynchronous requests. The client sends a request to the server. The client does not wait for a response from the server. The user can continue to use the web page. No spinning beachball or whirling hourglass. No big application freeze. When server response finally arrives, some JavaScript function will execute in the background and updates your web page (see later). End result is a Web 2.0 application: doesn't feel clunky or slow. is responsive, interactive, and feels faster. This is just one component of Web 2.0, but it's a very important one. All the slick GUI components and Web design paradigms can't overcome a slow, synchronous request/response model. 6
7 Web 2.0 Components HTML is used to build Web forms and identify fields for use in the rest of your application. JavaScript code is the core code running Ajax applications and it helps facilitate communication with server applications. DHTML, or Dynamic HTML, helps you update your page dynamically. DOM, the Document Object Model, will be used (through JavaScript code) to work with both the structure of your HTML and (in some cases) XML returned from the server. 7
8 DHTML DHTML is an acronym for Dynamic HTML. Dynamic HTML is a combination of JavaScript and DOM Enables you to make a html page react/change to users actions. Lets the user interact with the page. Technology that makes user interfaces possible hide or show menus change one dropdown select based on what was selected in another dropdown select Integrate Gmail, or the new Yahoo mail beta. 8
9 Ajax versus DHTML DHTML: is limited to using information loaded into browser. Only way to interact with the server is to refresh the page. Ajax: Interacts with the server asynchronously. Loads new information into the current page. Good user interfaces should use DHTML and Ajax. DHTML will control what happens in the browser. Ajax will allow dynamic communication with the server. Updates can be made to a database or new information can be loaded without refreshing the page and wasting so much time recreating the page from scratch for every user action. 9
10 JavaScript XMLHttpRequest Class XMLHttpRequest class is the key to Ajax. The XMLHttpRequest object is supported in Internet Explorer 5.0+, Safari 1.2, Mozilla 1.0 / Firefox, Opera 8+, and Netscape 7. You need to become intimately familiar with XMLHttpRequest. 10
11 XMLHttpRequest: attributes attributes readystate status responsetext responsexml onreadystatechange description the code successively changes value from 0 to is OK; 404 if the page is not found. holds loaded data as a string of characters. holds an XML loaded file, DOM's methods can be used to extract data. takes a function name as value that is invoked when the readystatechange event is dispatched. state meaning 0 The request is not initialized 1 The request has been set up 2 The request has been sent 3 The request is in process 4 The request is complete 11
12 XMLHttpRequest: methods methods description open(mode, url, boolean) mode: type of request, GET or POST url: the location of the file, with a path. boolean: true (asynchronous) / false (synchronous). optionally, a login and a password may be added to arguments. send("string") null for a GET command. 12
13 Create XMLHttpRequest Object if (window.xmlhttprequest) { // Firefox, Safari,... xhr = new XMLHttpRequest(); Object detection for Firefox, Safari Create XMLHttpRequest object else if (window.activexobject) { Object detection for IE // Internet Explorer xhr = new ActiveXObject("Microsoft.XMLHTTP"); Create XMLHttpRequest object 13
14 Aside: JavaScript try catch The try...catch statement allows one to try execute some code and to catch any errors for special handling. Syntax: try { // execute code here catch(err) { // handle errors here 14
15 Example: try catch Alternative to previous object detection: try { // Trying Internet Explorer xhr = new ActiveXObject("Microsoft.XMLHTTP"); catch(err) { // handle errors here xhr = new XMLHttpRequest() Will succeed if IE browser Failure if not IE browser Succeeds for Firefox, Safari 15
16 General Purpose createxhr Function function createxhr() { var request = false; try { request = new ActiveXObject('Msxml2.XMLHTTP'); catch (err2) { try { request = new ActiveXObject('Microsoft.XMLHTTP'); catch (err3) { try { request = new XMLHttpRequest(); catch (err1) { request = false; return request; 16 For subsequent slides, this function will be saved in ajax.js Nested try..catch IE browser, with more recent MS xml parser IE browser Firefox, Safari Browser not supported
17 Typical Steps for Ajax Code 17
18 Step 1: Collect Data <html> <head> <title>my First Ajax Code</title> </head> <body> <form name="myform"> Name: <input type="text" name="username" /> Time: <input type="text" name="time" /> </form> </body> </html> 18
19 Step 2: Create XMLHttpRequest Object <html> <head> <title>my First Ajax Code</title> <script type= text/javascript src= ajax.js ></script> <script type= text/javascript > From previous slide, ajax.js contains createxhr() function ajaxtime(){ var xhr = createxhr(); </script> </head> <body> Create XMLHttpRequest As user edits name, ajaxtime() is called. <form name="myform"> Name: <input type="text" name="username" onkeyup= "ajaxtime()" /> Time: <input type="text" name="time" /> </form> </body> </html> 19
20 Step 3: Use XMLHttpRequest <html> <head> <title>my First Ajax Code</title> <script type= text/javascript src= ajax.js ></script> <script type= text/javascript > function ajaxtime(){ Open connection to server var xhr = createxhr(); Set up callback function when server response arrives see later slide xhr.open("get","time.php",true); xhr.send(null); </script> </head> <body> <form name="myform"> Name: <input type="text" name="username" onkeyup = "ajaxtime()" /> Time: <input type="text" name="time" /> </form> </body> </html> 20 Send (GET) request to server
21 xhr.open("get","time.php",true); A connection is opened. The method of connection is indicated (GET). The URL to connect to is time.php. The final parameter: If false, code waits until a response was received (Web 1.0). If true requests asynchronous connection (Web 2.0, Ajax). users can still use the form (and even call other JavaScript methods) while the server is processing this request. 21
22 Step 3 Continued: <html> <head> <title>my First Ajax Code</title> <script type= text/javascript src= ajax.js ></script> <script type= text/javascript > function ajaxtime(){ var xhr = createxhr(); xhr.onreadystatechange = function(){ if(xhr.readystate==4){ document.myform.time.value=xhr.responsetext; ; xhr.open("get","time.php",true); xhr.send(null); </script> </head> <body> <form name="myform"> Name: <input type="text" name="username" onkeyup = "ajaxtime()" /> Time: <input type="text" name="time" /> </form> </body> </html> Set up callback function to handle server response when it arrives Wait until response is complete (readystate=4) Update time on form 22
23 On the server side: time.php <?php echo date('l js \of F Y h:i:s A');?> Prints something like: Monday 8th of August :12:46 PM This string is return as response to Browser. 23
24 An example with XML - RSS <html> <head> <script type="text/javascript" src="getrss.js"></script> </head> <body> <form> Select an RSS-Feed: <select onchange="showrss(this.value)"> <option value="google">google News</option> <option value="msnbc">msnbc News</option> </select> </form> <div id="rssoutput"> <b>rss Feed will be listed here.</b></div> </body> </html> Getrss.js contains showrss() When user changes selection showrss() is called showrss() will update this 24
25 getrss.js var xmlhttp; function showrss(str){ xmlhttp=createxhr(); if (xmlhttp==false){ 25 alert ("Browser does not support HTTP Request"); return; var url= getrss.php"; url=url+"?q="+str; url=url+"&sid="+math.random(); xmlhttp.onreadystatechange=statechanged; xmlhttp.open("get",url,true); xmlhttp.send(null); function statechanged(){ if (xmlhttp.readystate==4 xmlhttp.readystate=="complete"){ document.getelementbyid("rssoutput").innerhtml=xmlhttp.responsetext; str is name of RSS feed Create XMLHttpRequest When response complete, update the rssoutput field Form url for request Use random number in url parameter to break cache
26 getrss.php (1) <?php //get the q parameter from URL //containing the feed name $q=$_get["q"]; if ($q=="google") { Retrieve the RSS feed name from GET q parameter Retrieve Google news feed (xml) $xml=(" elseif ($q=="msnbc") { Retrieve MSN news feed (xml) $xml=(" $xmldoc = new DOMDocument(); $xmldoc->load($xml); Create DOM document object Load news feed XML data into DOM object 26
27 getrss.php (2) //get elements from "<channel>" $channel=$xmldoc->getelementsbytagname('channel')->item(0); $channel_title = $channel->getelementsbytagname('title') ->item(0)->childnodes->item(0)->nodevalue; $channel_link = $channel->getelementsbytagname('link') ->item(0)->childnodes->item(0)->nodevalue; $channel_desc = $channel->getelementsbytagname('description') ->item(0)->childnodes->item(0)->nodevalue; Extract channel title, link and description //output elements from "<channel>" echo("<p><a href='". $channel_link. "'>". $channel_title. "</a>"); echo("<br />"); echo($channel_desc. "</p>"); Output channel title, link and description. 27
28 getrss.php (3) //get and output "<item>" elements $x=$xmldoc->getelementsbytagname('item'); for ($i=0; $i<=2; $i++) { $item_title=$x->item($i)->getelementsbytagname('title') ->item(0)->childnodes->item(0)->nodevalue; $item_link=$x->item($i)->getelementsbytagname('link') ->item(0)->childnodes->item(0)->nodevalue; $item_desc=$x->item($i)->getelementsbytagname('description') ->item(0)->childnodes->item(0)->nodevalue; Get array of news items Use only first 3 news items Extract title, link and description.?> echo ("<p><a href='". $item_link. "'>". $item_title. "</a>"); echo ("<br />"); echo ($item_desc. "</p>"); Output each news item details 28
29 Typical Steps for Ajax code 29
30 Drawbacks of Ajax If JavaScript is not activated, Ajax can't work. The user must be asked to set JavaScript from within options of the browser, with the <noscript>" tag. Since data to display are loaded dynamically, they are not part of the page, and the keywords inside are not used by search engines. The asynchronous mode may change the page after some delay (when the server response comes back), this may be confusing to some users. The back button may be deactivated (this is not the case in examples provided here). This can be overcome with extra code. 30
31 Ajax Frameworks The best technology to build dynamic web pages is Ajax. JavaScript code embedded into the HTML page is used to send requests to the server. At the server side, some processing is required to handle them, find the info or store the data. Specialized frameworks exist to provide the Ajax engine and associated client and server side functions. The framework has always a JavaScript part, and sometimes a server side part in another scripting language. Ajax frameworks exist in various programming languages and in all environments. 31
32 Types of Ajax Frameworks Javascript Libraries (no server-side processing) PHP Frameworks Java Frameworks.Net Frameworks ColdFusion Frameworks Ajax and XUL Reference: 32
33 References Ajax Tutorial by Brett McLaughlin Ajax Tutorial at xul.fr Ajax Tutorial at w3schools.com 33
AJAX. Introduction. AJAX: Asynchronous JavaScript and XML
AJAX 1 2 Introduction AJAX: Asynchronous JavaScript and XML Popular in 2005 by Google Create interactive web applications Exchange small amounts of data with the server behind the scenes No need to reload
More informationAJAX and PHP AJAX. Christian Wenz,
AJAX and PHP Christian Wenz, AJAX A Dutch soccer team A cleaner Two characters from Iliad A city in Canada A mountain in Colorado... Asynchronous JavaScript + XML 1 1 What is AJAX?
More informationA.A. 2008/09. What is Ajax?
Internet t Software Technologies AJAX IMCNE A.A. 2008/09 Gabriele Cecchetti What is Ajax? AJAX stands for Asynchronous JavaScript And XML. AJAX is a type of programming made popular in 2005 by Google (with
More informationAJAX(Asynchronous Javascript + XML) Creating client-side dynamic Web pages
AJAX(Asynchronous Javascript + XML) Creating client-side dynamic Web pages AJAX = Asynchronous JavaScript and XML.AJAX is not a new programming language, but a new way to use existing standards. AJAX is
More informationAJAX ASYNCHRONOUS JAVASCRIPT AND XML. Laura Farinetti - DAUIN
AJAX ASYNCHRONOUS JAVASCRIPT AND XML Laura Farinetti - DAUIN Rich-client asynchronous transactions In 2005, Jesse James Garrett wrote an online article titled Ajax: A New Approach to Web Applications (www.adaptivepath.com/ideas/essays/archives/000
More informationXMLHttpRequest. CS144: Web Applications
XMLHttpRequest http://oak.cs.ucla.edu/cs144/examples/google-suggest.html Q: What is going on behind the scene? What events does it monitor? What does it do when
More informationAjax Ajax Ajax = Asynchronous JavaScript and XML Using a set of methods built in to JavaScript to transfer data between the browser and a server in the background Reduces the amount of data that must be
More informationAn Introduction to AJAX. By : I. Moamin Abughazaleh
An Introduction to AJAX By : I. Moamin Abughazaleh How HTTP works? Page 2 / 25 Classical HTTP Process Page 3 / 25 1. The visitor requests a page 2. The server send the entire HTML, CSS and Javascript code
More informationModule7: AJAX. Click, wait, and refresh user interaction. Synchronous request/response communication model. Page-driven: Workflow is based on pages
INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module7: Objectives/Outline Objectives Outline Understand the role of Learn how to use in your web applications Rich User Experience
More informationAjax. Ronald J. Glotzbach
Ajax Ronald J. Glotzbach What is AJAX? Asynchronous JavaScript and XML Ajax is not a technology Ajax mixes well known programming techniques in an uncommon way Enables web builders to create more appealing
More informationAJAX: Introduction CISC 282 November 27, 2018
AJAX: Introduction CISC 282 November 27, 2018 Synchronous Communication User and server take turns waiting User requests pages while browsing Waits for server to respond Waits for the page to load in the
More informationIt is highly recommended that you are familiar with HTML and JavaScript before attempting this tutorial.
AJAX About the Tutorial AJAX is a web development technique for creating interactive web applications. If you know JavaScript, HTML, CSS, and XML, then you need to spend just one hour to start with AJAX.
More informationFall Semester (081) Module7: AJAX
INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module7: AJAX Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals alfy@kfupm.edu.sa
More informationAJAX Programming Chris Seddon
AJAX Programming Chris Seddon seddon-software@keme.co.uk 2000-12 CRS Enterprises Ltd 1 2000-12 CRS Enterprises Ltd 2 What is Ajax? "Asynchronous JavaScript and XML" Originally described in 2005 by Jesse
More informationAjax Ajax Ajax = Asynchronous JavaScript and XML Using a set of methods built in to JavaScript to transfer data between the browser and a server in the background Reduces the amount of data that must be
More informationAJAX เสถ ยร ห นตา ส าน กเทคโนโลย สารสนเทศและการส อสาร มหาว ทยาล ยนเรศวร พะเยา
AJAX เสถ ยร ห นตา ส าน กเทคโนโลย สารสนเทศและการส อสาร มหาว ทยาล ยนเรศวร พะเยา 1 Ajax ( Asynchronous JavaScript and XML ) Ajax ค ออะไร JavaScript DHTML = Dynamic HTML XML = Extensive Markup Language Css
More informationAjax- XMLHttpResponse. Returns a value such as ArrayBuffer, Blob, Document, JavaScript object, or a DOMString, based on the value of
Ajax- XMLHttpResponse XMLHttpResponse - A Read only field Returns a value such as ArrayBuffer, Blob, Document, JavaScript object, or a DOMString, based on the value of XMLHttpRequest.responseType. This
More informationAJAX: Rich Internet Applications
AJAX: Rich Internet Applications Web Programming Uta Priss ZELL, Ostfalia University 2013 Web Programming AJAX Slide 1/27 Outline Rich Internet Applications AJAX AJAX example Conclusion More AJAX Search
More informationPart of this connection identifies how the response can / should be provided to the client code via the use of a callback routine.
What is AJAX? In one sense, AJAX is simply an acronym for Asynchronous JavaScript And XML In another, it is a protocol for sending requests from a client (web page) to a server, and how the information
More informationModule 5 JavaScript, AJAX, and jquery. Module 5. Module 5 Contains 2 components
Module 5 JavaScript, AJAX, and jquery Module 5 Contains 2 components Both the Individual and Group portion are due on Monday October 30 th Start early on this module One of the most time consuming modules
More information,
Weekdays:- 1½ hrs / 3 days Fastrack:- 1½hrs / Day [Class Room and Online] ISO 9001:2015 CERTIFIED ADMEC Multimedia Institute www.admecindia.co.in 9911782350, 9811818122 Welcome to one of the highly professional
More informationAJAX: The Basics CISC 282 March 25, 2014
AJAX: The Basics CISC 282 March 25, 2014 Synchronous Communication User and server take turns waiting User requests pages while browsing Waits for server to respond Waits for the page to load in the browser
More informationAbstract. 1. Introduction. 2. AJAX overview
Asynchronous JavaScript Technology and XML (AJAX) Chrisina Draganova Department of Computing, Communication Technology and Mathematics London Metropolitan University 100 Minories, London EC3 1JY c.draganova@londonmet.ac.uk
More informationContents. Demos folder: Demos\14-Ajax. 1. Overview of Ajax. 2. Using Ajax directly. 3. jquery and Ajax. 4. Consuming RESTful services
Ajax Contents 1. Overview of Ajax 2. Using Ajax directly 3. jquery and Ajax 4. Consuming RESTful services Demos folder: Demos\14-Ajax 2 1. Overview of Ajax What is Ajax? Traditional Web applications Ajax
More informationModule 5 JavaScript, AJAX, and jquery. Module 5. Module 5 Contains an Individual and Group component
Module 5 JavaScript, AJAX, and jquery Module 5 Contains an Individual and Group component Both are due on Wednesday October 24 th Start early on this module One of the most time consuming modules in the
More informationAJAX: The Basics CISC 282 November 22, 2017
AJAX: The Basics CISC 282 November 22, 2017 Synchronous Communication User and server take turns waiting User requests pages while browsing Waits for server to respond Waits for the page to load in the
More informationWeb Programming Step by Step
Web Programming Step by Step Lecture 19 Ajax Reading: 10.1-10.2 Except where otherwise noted, the contents of this presentation are Copyright 2009 Marty Stepp and Jessica Miller. Synchronous web communication
More informationTerm Paper. P r o f. D r. E d u a r d H e i n d l. H o c h s c h u l e F u r t w a n g e n U n i v e r s i t y. P r e s e n t e d T o :
Version: 0.1 Date: 02.05.2009 Author(s): Doddy Satyasree AJAX Person responsable: Doddy Satyasree Language: English Term Paper History Version Status Date 0.1 Draft Version created 02.05.2009 0.2 Final
More informationCredits: Some of the slides are based on material adapted from
1 The Web, revisited WEB 2.0 marco.ronchetti@unitn.it Credits: Some of the slides are based on material adapted from www.telerik.com/documents/telerik_and_ajax.pdf 2 The old web: 1994 HTML pages (hyperlinks)
More informationIntroduction to Ajax
Introduction to Ajax with Bob Cozzi What is AJAX? Asynchronous JavaScript and XML A J a X Asynchronous data retrieval using the XMLHttpRequest object from JavaScript Data is retrieved from the server as
More information/ Introduction to XML
Introduction to XML XML stands for Extensible Markup Language. It is a text-based markup language derived from Standard Generalized Markup Language (SGML). XML tags identify the data and are used to store
More information10.1 Overview of Ajax
10.1 Overview of Ajax - History - Possibility began with the nonstandard iframe element, which appeared in IE4 and Netscape 4 - An iframe element could be made invisible and could be used to send asynchronous
More information2/6/2012. Rich Internet Applications. What is Ajax? Defining AJAX. Asynchronous JavaScript and XML Term coined in 2005 by Jesse James Garrett
What is Ajax? Asynchronous JavaScript and XML Term coined in 2005 by Jesse James Garrett http://www.adaptivepath.com/ideas/essays/archives /000385.php Ajax isn t really new, and isn t a single technology
More informationajax1.html 1/2 lectures/7/src/ ajax1.html 2/2 lectures/7/src/
ajax1.html 1/2 3: ajax1.html 5: Gets stock quote from quote1.php via Ajax, displaying result with alert(). 6: 7: David J. Malan 8: Dan Armendariz 9: Computer Science E-75 10: Harvard Extension School 11:
More informationAJAX. Lecture 26. Robb T. Koether. Fri, Mar 21, Hampden-Sydney College. Robb T. Koether (Hampden-Sydney College) AJAX Fri, Mar 21, / 16
AJAX Lecture 26 Robb T. Koether Hampden-Sydney College Fri, Mar 21, 2014 Robb T. Koether (Hampden-Sydney College) AJAX Fri, Mar 21, 2014 1 / 16 1 AJAX 2 Http Requests 3 Request States 4 Handling the Response
More informationIntroduction to Ajax. Sang Shin Java Technology Architect Sun Microsystems, Inc.
Introduction to Ajax Sang Shin Java Technology Architect Sun Microsystems, Inc. sang.shin@sun.com www.javapassion.com Agenda 1.What is Rich User Experience? 2.Rich Internet Application (RIA) Technologies
More informationUse of PHP for DB Connection. Middle and Information Tier
Client: UI HTML, JavaScript, CSS, XML Use of PHP for DB Connection Middle Get all books with keyword web programming PHP Format the output, i.e., data returned from the DB SQL DB Query Access/MySQL 1 2
More informationAdvanced Web Programming with JavaScript and Google Maps. Voronezh State University Voronezh (Russia) AJAX. Sergio Luján Mora
with JavaScript and Google Maps Voronezh State University Voronezh (Russia) AJAX Sergio Luján Mora Departamento de Lenguajes y Sistemas Informáticos DLSI - Universidad de Alicante 1 Table of contents Two
More informationSession 18. jquery - Ajax. Reference. Tutorials. jquery Methods. Session 18 jquery and Ajax 10/31/ Robert Kelly,
Session 18 jquery - Ajax 1 Tutorials Reference http://learn.jquery.com/ajax/ http://www.w3schools.com/jquery/jquery_ajax_intro.asp jquery Methods http://www.w3schools.com/jquery/jquery_ref_ajax.asp 2 10/31/2018
More informationUse of PHP for DB Connection. Middle and Information Tier. Middle and Information Tier
Use of PHP for DB Connection 1 2 Middle and Information Tier PHP: built in library functions for interfacing with the mysql database management system $id = mysqli_connect(string hostname, string username,
More informationProgramming for Digital Media. Lecture 7 JavaScript By: A. Mousavi and P. Broomhead SERG, School of Engineering Design, Brunel University, UK
Programming for Digital Media Lecture 7 JavaScript By: A. Mousavi and P. Broomhead SERG, School of Engineering Design, Brunel University, UK 1 Topics Ajax (Asynchronous JavaScript and XML) What it is and
More informationAsynchronous JavaScript + XML (Ajax)
Asynchronous JavaScript + XML (Ajax) CSE 190 M (Web Programming), Spring 2008 University of Washington References: w3schools, Wikipedia Except where otherwise noted, the contents of this presentation are
More informationCS 5142 Scripting Languages
CS 5142 Scripting Languages 10/16/2015 Web Applications Databases 1 Outline Stateful Web Applications AJAX 2 Concepts Scope in Server-Side Scripts Request $_GET, $_POST global $g; Session $_SESSION Application
More informationIntroduction to AJAX Bringing Interactivity & Intuitiveness Into Web Applications. By : Bhanwar Gupta SD-Team-Member Jsoft Solutions
Introduction to AJAX Bringing Interactivity & Intuitiveness Into Web Applications By : Bhanwar Gupta SD-Team-Member Jsoft Solutions Applications today You have two basic choices: Desktop applications and
More informationCSE 130 Programming Language Principles & Paradigms Lecture # 20. Chapter 13 Concurrency. + AJAX Discussion
Chapter 13 Concurrency + AJAX Discussion Introduction Concurrency can occur at four levels: Machine instruction level (Processor) High-level language statement level Unit level Program level (OS) Because
More informationAt the Forge Beginning Ajax Reuven M. Lerner Abstract How to put the A (asynchronous) in Ajax. Many programmers, myself included, have long seen JavaScript as a way to change the appearance of a page of
More informationJavaScript + PHP AJAX. Costantino Pistagna
JavaScript + PHP AJAX Costantino Pistagna What s is Ajax? AJAX is not a new programming language It s a new technique for better and faster web applications. JavaScript can communicate
More informationUNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? editor editor Q.2: What do you understand by a web browser?
UNIT 3 SECTION 1 Answer the following questions Q.1: What is an editor? A 1: A text editor is a program that helps you write plain text (without any formatting) and save it to a file. A good example is
More informationUser Interaction: jquery
User Interaction: jquery Assoc. Professor Donald J. Patterson INF 133 Fall 2012 1 jquery A JavaScript Library Cross-browser Free (beer & speech) It supports manipulating HTML elements (DOM) animations
More informationquiz 1 details wed nov 17, 1pm see handout for locations covers weeks 0 through 10, emphasis on 7 onward closed book bring a , 2-sided cheat she
quiz 1 details wed nov 17, 1pm see handout for locations covers weeks 0 through 10, emphasis on 7 onward closed book bring a 8.5 11, 2-sided cheat sheet 75 minutes 15% of final grade resources old quizzes
More informationA synchronous J avascript A nd X ml
A synchronous J avascript A nd X ml The problem AJAX solves: How to put data from the server onto a web page, without loading a new page or reloading the existing page. Ajax is the concept of combining
More informationAJAX: From the Client-side with JavaScript, Back to the Server
AJAX: From the Client-side with JavaScript, Back to the Server Asynchronous server calls and related technologies CS 370 SE Practicum, Cengiz Günay (Some slides courtesy of Eugene Agichtein and the Internets)
More informationAjax or AJAX? The acronym AJAX has changed to the term Ajax, which does not represent specific technologies
Introduc)on to Ajax Ajax Theory What is Ajax Ajax is a group of interrelated technologies used to create interac5ve web applica5ons or rich Internet applica5ons. With Ajax, web applica5ons can retrieve
More informationAJAX Basics. Welcome to AJAX Basics presentation. My name is Sang Shin. I am Java technology architect and evangelist from Sun Microsystems.
AJAX Basics Sang Shin Java Technology Architect Sun Microsystems, Inc. sang.shin@sun.com www.javapassion.com Welcome to AJAX Basics presentation. My name is Sang Shin. I am Java technology architect and
More informationAjax Application Design
Ajax Application Design Reuven M. Lerner Abstract Asynchronous is the operative word with Ajax, and here's what it's all about. During the past few months, I've used this column to explore a number of
More informationSession 11. Ajax. Reading & Reference
Session 11 Ajax Reference XMLHttpRequest object Reading & Reference en.wikipedia.org/wiki/xmlhttprequest Specification developer.mozilla.org/en-us/docs/web/api/xmlhttprequest JavaScript (6th Edition) by
More informationWeb Application Security
Web Application Security Rajendra Kachhwaha rajendra1983@gmail.com September 23, 2015 Lecture 13: 1/ 18 Outline Introduction to AJAX: 1 What is AJAX 2 Why & When use AJAX 3 What is an AJAX Web Application
More informationWeb Programming/Scripting: PHP and AJAX Refresher
CS 312 Internet Concepts Web Programming/Scripting: PHP and AJAX Refresher Dr. Michele Weigle Department of Computer Science Old Dominion University mweigle@cs.odu.edu http://www.cs.odu.edu/~mweigle/cs312-f11
More informationINDEX SYMBOLS See also
INDEX SYMBOLS @ characters, PHP methods, 125 $ SERVER global array variable, 187 $() function, 176 $F() function, 176-177 elements, Rico, 184, 187 elements, 102 containers,
More informationE ECMAScript, 21 elements collection, HTML, 30 31, 31. Index 161
A element, 108 accessing objects within HTML, using JavaScript, 27 28, 28 activatediv()/deactivatediv(), 114 115, 115 ActiveXObject, AJAX and, 132, 140 adding information to page dynamically, 30, 30,
More informationIntroduction to InfoSec SQLI & XSS (R10+11) Nir Krakowski (nirkrako at post.tau.ac.il) Itamar Gilad (itamargi at post.tau.ac.il)
Introduction to InfoSec SQLI & XSS (R10+11) Nir Krakowski (nirkrako at post.tau.ac.il) Itamar Gilad (itamargi at post.tau.ac.il) Covered material Useful SQL Tools SQL Injection in a Nutshell. Mass Code
More informationAjax UNIX MAGAZINE if0505.pdf. (86) Ajax. Ajax. Ajax (Asynchronous JavaScript + XML) Jesse James Garrett Web 1. Web.
(86) Ajax 2003 2 Flash ` CGI Web Web Flash Java Flash Java JavaScript Google Google Suggest GMail Google Maps JavaScript Yahoo! Google Maps JavaScript `Ajax Ajax Web Ajax Ajax (Asynchronous JavaScript
More informationBuilding Dynamic Forms with XML, XSLT
International Journal of Computing and Optimization Vol. 2, 2015, no. 1, 23-34 HIKARI Ltd, www.m-hikari.com http://dx.doi.org/10.12988/ijco.2015.517 Building Dynamic Forms with XML, XSLT Dhori Terpo University
More informationTIME SCHEDULE MODULE TOPICS PERIODS. HTML Document Object Model (DOM) and javascript Object Notation (JSON)
COURSE TITLE : ADVANCED WEB DESIGN COURSE CODE : 5262 COURSE CATEGORY : A PERIODS/WEEK : 4 PERIODS/SEMESTER : 52 CREDITS : 4 TIME SCHEDULE MODULE TOPICS PERIODS 1 HTML Document Object Model (DOM) and javascript
More informationwemx WebService V1.0
wemx WebService 2 wemx WebService WEMX WEBSERVICE... 1 1. WEB SERVICE INTRODUCTION... 6 1.1. SYSTEM PAGE... 6 1.2. USER PAGE... 7 1.3. WEB SERVICE API... 8 2. SYSTEM PAGE PROVIDED BY THE WEB SERVICE...
More informationDeveloping Future Web Application with AJAX and ASP.NET Project "Atlas"
Developing Future Web Application with AJAX and ASP.NET Project "Atlas" Smith Suksmith Microsoft MVP Solution Architect Web Application Rich UI can t delivered by Browser Technology How about Google Earth
More informationAJAX. Ajax: Asynchronous JavaScript and XML *
AJAX Ajax: Asynchronous JavaScript and XML * AJAX is a developer's dream, because you can: Read data from a web server - after the page has loaded Update a web page without reloading the page Send data
More informationSession 11. Calling Servlets from Ajax. Lecture Objectives. Understand servlet response formats
Session 11 Calling Servlets from Ajax 1 Lecture Objectives Understand servlet response formats Text Xml Html JSON Understand how to extract data from the XMLHttpRequest object Understand the cross domain
More informationIT2353 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.
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. Why are the protocols layered? 5. Define encapsulation.
More informationAJAX. Lab. de Bases de Dados e Aplicações Web MIEIC, FEUP 2010/11. Sérgio Nunes
AJAX Lab. de Bases de Dados e Aplicações Web MIEIC, FEUP 2010/11 Sérgio Nunes Server calls from web pages using JavaScript call HTTP data Motivation The traditional request-response cycle in web applications
More informationNetworking & The Web. HCID 520 User Interface Software & Technology
Networking & The Web HCID 520 User Interface Software & Technology Uniform Resource Locator (URL) http://info.cern.ch:80/ 1991 HTTP v0.9 Uniform Resource Locator (URL) http://info.cern.ch:80/ Scheme/Protocol
More informationChapter 3: Web Paradigms and Interactivity
Chapter 3: Web Paradigms and Interactivity 3.1 AJAX: Asynchronous Interactivity in the Web 3.2 Paradigms for Web-Based Communication 3.3 Reverse AJAX and COMET 3.4 Web Sockets and Web Messaging 3.5 Web
More informationAjax in Oracle JDeveloper
Ajax in Oracle JDeveloper Bearbeitet von Deepak Vohra 1. Auflage 2008. Taschenbuch. xiv, 224 S. Paperback ISBN 978 3 540 77595 9 Format (B x L): 15,5 x 23,5 cm Gewicht: 373 g Weitere Fachgebiete > EDV,
More informationAJAX and JSON. Day 8
AJAX and JSON Day 8 Overview HTTP as a data exchange protocol Components of AJAX JSON and XML XMLHttpRequest Object Updating the HTML document References Duckett, chapter 8 http://www.w3schools.com/ajax/default.asp
More informationPRAjax PHP Reflected Ajax Developer Manual
PRAjax PHP Reflected Ajax Developer Manual Index PRAjax PHP Reflected Ajax... 1 Index... 2 What is PRAjax?... 3 PRAjax in short... 3 Schematic overview... 4 Introduction... 5 Requirements... 5 Installation...
More informationLEARN HOW TO USE CA PPM REST API in 2 Minutes!
LEARN HOW TO USE CA PPM REST API in 2 Minutes! WANT TO LEARN MORE ABOUT CA PPM REST API? If you are excited about the updates to the REST API in CA PPM V14.4 and would like to explore some of the REST
More informationNetworking & The Web. HCID 520 User Interface Software & Technology
Networking & The HCID 520 User Interface Software & Technology Uniform Resource Locator (URL) http://info.cern.ch:80/ 1991 HTTP v0.9 Uniform Resource Locator (URL) http://info.cern.ch:80/ Scheme/Protocol
More informationLesson 12: JavaScript and AJAX
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
More informationCopyright Descriptor Systems, Course materials may not be reproduced in whole or in part without prior written consent of Joel Barnum
Ajax The notion of asynchronous request processing using the XMLHttpRequest object has been around for several years, but the term "AJAX" was coined by Jesse James Garrett of Adaptive Path. You can read
More informationJSON. Dr. Kanda Runapongsa Saikaew Computer Engineering Department
JSON Dr. Kanda Runapongsa Saikaew Computer Engineering Department http://twitter.com/krunapon Agenda What is JSON? JSON vs. XML JSON Tutorial JSON and AJAX Using JSON with Yahoo! Web Services Using JSON
More informationJquery.ajax Call Returns Status Code Of 200 But Fires Jquery Error
Jquery.ajax Call Returns Status Code Of 200 But Fires Jquery Error The request returns http 200 OK, but the xhr status is 0, error. jquery Ajax Request to get JSON data fires error event to make an ajax
More informationAjax. David Matuszek's presentation,
Ajax David Matuszek's presentation, http://www.cis.upenn.edu/~matuszek/cit597-2007/index.html Oct 20, 2008 The hype Ajax (sometimes capitalized as AJAX) stands for Asynchronous JavaScript And XML Ajax
More informationCSC 443: Web Programming
1 CSC 443: Web Programming Haidar Harmanani Department of Computer Science and Mathematics Lebanese American University Byblos, 1401 2010 Lebanon AJAX 2 Asynchronous JavaScript and XML First mentioned
More informationCSC 405 Computer Security. Web Security
CSC 405 Computer Security Web Security Alexandros Kapravelos akaprav@ncsu.edu (Derived from slides by Giovanni Vigna and Adam Doupe) 1 The XMLHttpRequest Object Microsoft developers working on Outlook
More informationController/server communication
Controller/server communication Mendel Rosenblum Controller's role in Model, View, Controller Controller's job to fetch model for the view May have other server communication needs as well (e.g. authentication
More informationLos Angeles Cancer Surveillance Program. Links and Slides google Rich Pinder USC.
Rich Pinder Los Angeles Cancer Surveillance Program Links and Slides google Rich Pinder USC rpinder@usc.edu NAACCR Annual Meeting Incorporating realtime geocoding systems into data entry routines Presented
More informationCSC Javascript
CSC 4800 Javascript See book! Javascript Syntax How to embed javascript between from an external file In an event handler URL - bookmarklet
More informationPure JavaScript Client
Pure JavaScript Client This is a message-receiving client for Apache ESME that is written entirely in Javascript. This very first cut of a client was created as a proof-ofconcept to show that a very simple
More informationJavaScript CS 4640 Programming Languages for Web Applications
JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation
More informationiframe programming with jquery jquery Summit 2011
iframe programming with jquery jquery Summit 2011 who invited this guy? name s ben strange last name work at disqus co-author, Third-party JavaScript disqus? dis cuss dĭ-skŭs' third-party commenting platform
More informationCOMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)
COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017) RAMANA ISUKAPALLI RAMANA@CS.COLUMBIA.EDU 1 LECTURE-1 Course overview See http://www.cs.columbia.edu/~ramana Overview of HTML Formatting, headings,
More informationCSCE 120: Learning To Code
CSCE 120: Learning To Code Module 11.0: Consuming Data I Introduction to Ajax This module is designed to familiarize you with web services and web APIs and how to connect to such services and consume and
More informationModule 5: Javascript, Cookies COM 420
Module 5: Javascript, Cookies COM 420 What is the real Internet Lab 1 Review Many Nesting Problems How to check your code Why is nesting Important Recap how grades work in the class Re-Submitting and updating
More informationjquery and AJAX
jquery and AJAX http://www.flickr.com/photos/pmarkham/3165964414/ Dynamic HTML (DHTML) Manipulating the web page's structure is essential for creating a highly responsive UI Two main approaches Manipulate
More informationAJAX Programming Overview. Introduction. Overview
AJAX Programming Overview Introduction Overview In the world of Web programming, AJAX stands for Asynchronous JavaScript and XML, which is a technique for developing more efficient interactive Web applications.
More information1 Announcements (0:00 2:00) 2
Contents 1 Announcements (0:00 2:00) 2 2 Ajax (2:00 105:00) 2 2.1 Introduction.............................. 2 2.2 Data-driven Websites......................... 2 2.3 Getting Started............................
More information1 Explain the following in brief, with respect to usage of Ajax
PES Institute of Technology, Bangalore South Campus (Formerly PES School of Engineering) (Hosur Road, 1KM before Electronic City, Bangalore-560 100) INTERNAL TEST (SCHEME AND SOLUTION) 1 Subject Name:
More informationWeb 2.0 and Security
Web 2.0 and Security Web 2.0 and Security 1. What is Web 2.0? On the client: Scripting the XMLHttpRequest object On the server: REST Web Services Mash-ups ups of Web Services used together to create novel
More informationAJAX IN THE CLASSROOM
AJAX IN THE CLASSROOM Thom Luce, Ohio University, luce@ohio.edu ABSTRACT The recent explosion of Web 2.0 applications has changed user s expectations regarding the web experience. Users now expect web
More informationWeb Security, Summer Term 2012
IIG University of Freiburg Web Security, Summer Term 2012 Cross Site Scripting - XSS Dr. E. Benoist Sommer Semester Web Security, Summer Term 2012 5 Cross Site Scripting 1 Table of Contents Presentation:
More information