* Lecture 26 Manifest Asynchrony

Slides:



Advertisements
Similar presentations
JQUERY/AJAX ALIREZA KHATAMIAN DELARAM YAZDANSEPAS.
Advertisements

Multiple Tiers in Action
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
Server-side Scripting Powering the webs favourite services.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
Client side web programming Introduction Jaana Holvikivi, DSc. School of ICT.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
the acronym for Asynchronous JavaScript and XML.
Ajax for Dynamic Web Development Gregory McChesney.
CS50 Week 9 Sam Green ’
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
JQuery Fundamentals Introduction Tutorial Videos
Dreamweaver – Setting up a Site and Page Layouts
Not a Language but a series of techniques
12/04/12 JQuery I took these slides from the site because they were pretty good looking. Instructions for editing school and department titles: Select.
Google Web Toolkit Tutorial
Loops BIS1523 – Lecture 10.
Application with Cross-Platform GUI
AJAX.
Getting web pages First we need to get the webpage by issuing a HTTP request. The best option for this is the requests library that comes with Anaconda:
Cookies and Sessions in PHP
A Pentana Solutions Presentation
Cookies BIS1523 – Lecture 23.
Server Side Programming Overview And file system basics
Introduction to Databases with MAMP/LAMP/WAMP thrown in!
CSU CT 310, Web Development ©Ross Beveridge
CT Web Development, Colorado State University
* Lecture 12 Mapping, Map Reduction Summing integers,
HTML5 Drawing Canvas and Video
Handling Files In particular, uploading files.
Tables from Arrays of Objects Exploding Strings
Content Management and WordPress
CSE 154 Lecture 22: AJAX.
Web Browser server client 3-Tier Architecture Apache web server PHP
HTML Basics & Context & IDEs & Server Basics & Online Notes
AJAX Robin Burke ECT 360.
* Lecture 22 Images * Course logo spider web photograph from Morguefile openstock photograph by Gabor Karpati, Hungary.
Introduction to AJAX and the migration toward applications
MySQL Tables and Relations 101
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
Asynchronous Javascript And XML
* Lecture 5 PHP Basics * Course logo spider web photograph from Morguefile openstock photograph by Gabor Karpati, Hungary.
Querying Client Information Forms and Passing Data,
* jQuery * Course logo spider web photograph from Morguefile openstock photograph by Gabor Karpati, Hungary.
Authentication Stepped Up Persistent User Data Protected Content.
Unfortunately I did not record the beginning of this lecture.
JavaScript & jQuery AJAX.
Secure Web Programming
Form Validation, Part 2 (with jQuery, HTML5, and CSS)
Server Side Programming Overview And file system basics
E-commerce Applications Development
Chengyu Sun California State University, Los Angeles
HTML Basics & Context & IDEs & Server Basics & Online Notes
Lecture 4 Cascading Style Sheep.
DR. JOHN ABRAHAM PROFESSOR UTPA
Chengyu Sun California State University, Los Angeles
Loops and Conditionals Generating , Reading files.
JavaScript.
Client-Server Model: Requesting a Web Page
Chengyu Sun California State University, Los Angeles
Alternatives to our approach
Introduction to Web programming
© 2017, Mike Murach & Associates, Inc.
Cross Site Request Forgery (CSRF)
Presentation transcript:

* Lecture 26 Manifest Asynchrony * Course logo spider web photograph from Morguefile openstock photograph by Gabor Karpati, Hungary.

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz Plant a Seed New way to think about a webpage. Initially, only a ’seed’ is sent from the server to the client browser. In that seed is the AJAX code to then grow a ‘tree’ – in other words a full page. Not always the best answer, BUT you should know how to do this for cases where it is appropriate. 11/9/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz Learn By Example When loading, the animals make their sounds in some random order with delays between 1 and 10 seconds. 11/9/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz It Starts With a Seed Table ‘animals’ contains only header 11/9/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Where Animals Come From From an AJAX call of course. Get used to the idea that the seed is general. As in this example, the seed has no idea how many items may be added to the table/page/list etc. 11/9/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

All About the JavaScript Need a JavaScript function to kickoff the process of ‘growing the tree’. Here is that function using jQuery 11/9/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

Adding Rows to the Table Notice something special is going on in order to get sounds for each animal. 11/9/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz AJAX begets AJAX AJAX is used to get the list of animals AJAX to get each animal sound. Getting used to the result of one AJAX call in turn causing a variable number of additional AJAX calls may take just a little getting used to. 11/9/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz To Return a Sound Which animal is being passed into the call. To highlight asynchronous nature of AJAX animal sounds wait a random interval before responding. 11/9/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz

CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz Inside AJAX Sound Call Target is the table data element ID that is updated by AJAX call. 11/9/2018 CSU CT 310 Web Development ©Ross Beveridge & Jamie Ruiz