Social Web Design 社群網站設計 1 Darby Chang 張天豪 Social Web Design 社群網站設計.

Slides:



Advertisements
Similar presentations
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Advertisements

Web Programming 網際網路程式設計 1 Darby Chang 張天豪 Web Programming 網際網路程式設計.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
WEB 2.0. What we are speaking about… Transformation of WEB, the WEB 2.0 –New generation of websites… –Importance of Open Data… –Importance of Users… –Web.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
6/3/2015eBiquity1 Tutorial on AJAX Anubhav Kale (akale1 AT cs DOT umbc DOT edu)
AJAX Presented by: Dickson Fu Dimas Ariawan Niels Andreassen Ryan Dial Jordan Nielson CMPUT 410 University of Alberta 2006.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
1 JavaScript & AJAX CS , Spring JavaScript.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Social Web Design & Research 社群網站設計 & 研究 Social Web Design & Research 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Social Web Design 社群網站設計 1 Darby Chang 張天豪 Social Web Design 社群網站設計.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Social Web Design & Research 社群網站設計 & 研究 Social Web Design & Research 1.
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Introduction to AJAX AJAX Keywords: JavaScript and XML
JavaScript & jQuery the missing manual Chapter 11
1 Ajax. 2 What’s Ajax? AJAX is a combination of a few technologies that has come together in the past few years AJAX used to be an acronym for Asynchronous.
Ruth Betcher Ruth Christie
CSCI 6962: Server-side Design and Programming Introduction to AJAX.
Lecture 12 – AJAX SFDV3011 – Advanced Web Development Reference: 1.
 2008 Pearson Education, Inc. All rights reserved Ajax-Enabled Rich Internet Applications.
AJAX Without the “J” George Lawniczak. What is Ajax?
JavaScript, Fourth Edition Chapter 12 Updating Web Pages with AJAX.
AJAX and Atlas in ASP.NET 2.0 William J. Steele MSDN Developer Evangelist Microsoft Corporation
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
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.
The Document Object Model. The Web B.D, A.D. They aren’t web pages, they’re document objects A web browser interprets structured information. A server.
Random Logic l Forum.NET l AJAX Behind the buzz word Forum.NET ● January 23, 2006.
Building Rich Web Applications with Ajax Linda Dailey Paulson IEEE – Computer, October 05 (Vol.38, No.10) Presented by Jingming Zhang.
Social Web Design 社群網站設計 1 Darby Chang 張天豪 Social Web Design 社群網站設計.
AJAX Compiled from “AJAX Programming” [Sang Shin] (Asynchronous JavaScript and XML)
Fall 2006 Florida Atlantic University Department of Computer Science & Engineering COP 4814 – Web Services Dr. Roy Levow Part 2 – Ajax Fundamentals.
AJAX 10 Most Common Mistakes. 1. Not giving immediate visual cues for clicking widgets. If something I'm clicking on is triggering Ajax actions, you have.
Web Technology Introduction AJAXAJAX. AJAX Outline  What is AJAX?  Benefits  Real world examples  How it works  Code review  Samples.
School of Computing and Information Systems CS 371 Web Application Programming AJAX.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
the acronym for Asynchronous JavaScript and XML.
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 James Kahng. Congrats Jack Guo for Angular entryentry This week’s coding challenge at end of talk.
JQuery and AJAX WEB Technologies : PHP Programming Language.
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.
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 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.
JavaScript & Introduction to AJAX
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
AJAX – Asynchronous JavaScript And XML By Kranthi Kiran Nuthi CIS 764 Kansas State University.
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?
Social Web Design 社群網站設計 1 Darby Chang 張天豪 Social Web Design 社群網站設計.
Ajax! Ajax Programming Ajax! Ajax Programming. Ajax! Ajax Programming Take a look at a typical desktop application (Spreadsheet app, etc.) The program.
Social Web Design 社群網站設計 1 Darby Chang 張天豪 Social Web Design 社群網站設計.
Ajax & Client-side Dynamic Web Gunwoo Park (Undergraduate)
Javascript and Dynamic Web Pages: Client Side Processing
JavaScript and Ajax (Ajax Tutorial)
Not a Language but a series of techniques
CS 371 Web Application Programming
Application with Cross-Platform GUI
AJAX.
AJAX.
CSE 154 Lecture 22: AJAX.
AJAX Robin Burke ECT 360.
ISC440: Web Programming 2 AJAX
Chengyu Sun California State University, Los Angeles
DR. JOHN ABRAHAM PROFESSOR UTPA
Chengyu Sun California State University, Los Angeles
Chengyu Sun California State University, Los Angeles
Presentation transcript:

Social Web Design 社群網站設計 1 Darby Chang 張天豪 Social Web Design 社群網站設計

Ajax 2 Asynchronous JAvascript XML 非同步的 JavaScript 與 XML 技術 Social Web Design 社群網站設計

Ajax Ajax is a combination of multiple existing technologies –use HTML+CSS for expression –use JavaScript to operate DOM objects for dynamic effects –use XML for data exchange –use XMLHttpRequest for asynchronous connection with web server –use JavaScript to bind them all Ajax does not refer to a single technology but to organically using a series of related technologies Social Web Design 社群網站設計 3

A Traditional Web App Social Web Design 社群網站設計 4 Tell users to fill HTML forms and to request the server for each form. The server receives and processes the requested form and response the result page.

Innovation from existing technologies The above process wastes much bandwidth, since usually the result page is very similar to the request page. Namely, most HTML code are the same in the two pages. –in short, only very tiny part need to update We have such technologies for a long time. For example, we have already used JavaScript to update partial page (such as a marquee) or used XML to transfer data (but not web page) –actually, if someone thought to use JavaScript to update web page according to the transferred data, he got Ajax  the importance of idea Social Web Design 社群網站設計 5

Ajax Social Web Design 社群網站設計 6 Update a little 只改一點點

Killer applications Traditional web mails – Modern web mails – –Ajax requires JavaScript, thus some kind web sites would provide a non-Ajax version that does not depend on JavaScript – 浅谈 Gmail 邮箱发展历史 浅谈 Gmail 邮箱发展历史 – 回顾 Gmail 历史 —— 猛击网页邮箱的 G 点! 回顾 Gmail 历史 —— 猛击网页邮箱的 G 点! BTW, Ajax is regarded invented in 1998 by the Outlook Web Access team of Microsoft  the importance of idea –AJAX - 维基百科AJAX - 维基百科 Social Web Design 社群網站設計 7

Other Google applications Google Google Calendar Google Calendar Google Docs Google Docs Google Maps Google Maps The so-called rich interface application (RIA). Since each time only a tiny part is updated, the content could be very complicated. The entire page wouldn’t be reloaded. –some are too rich to provide a non-Ajax version Social Web Design 社群網站設計 8

Common Ajax-dependent components Auto complete ( 自動完成 ) –Ajax Autocomplete for jQueryAjax Autocomplete for jQuery –FCBKcompleteFCBKcomplete –ajax autocomplete - Google 搜尋ajax autocomplete - Google 搜尋 Tooltip ( 工具提示 ) –40+ Tooltips Scripts With AJAX, JavaScript & CSS40+ Tooltips Scripts With AJAX, JavaScript & CSS –tooltip - Google 搜尋tooltip - Google 搜尋 Upload ( 上傳 ) – –upload - Google 搜尋upload - Google 搜尋 Human is slow. Leak a partial content for the users to read (or let them to input something) first. The response time of human is very enough for machines to do the actual work. Don’t waste such time. Social Web Design 社群網站設計 9

A simple Ajax example Design logic –users fill a HTML form and submit it –after submitting, the client does not wait the response of the server and the control returns to the users immediately  this behavior is the so-called asynchronous ( 非同步 ) –change the content to ‘loading’, which makes the users comfortable –after receiving the server response, display the results Social Web Design 社群網站設計 10

Reminding in HTML The design of HTML form should follow the conventions of the non-Ajax version, in case that you need a non-Ajax one Usually you need to set the id attribute of the DOM objects to update for manipulating them easily Social Web Design 社群網站設計 11

Reminding in JavaScript An event to activate the Ajax Get the input data Invoke the Ajax –set the data (some transformation may be needed) –the CGI URL – After Ajax, you got two asynchronous program flows –after submitting, display messages to make users comfortable –after server response, display the results Social Web Design 社群網站設計 12

Any Questions? Social Web Design 社群網站設計 13

Today’s assignment 今天的任務 Social Web Design 社群網站設計 14

Make your site more fluent Make your existing CGI functions to the Ajax version so that no page reload after form submission. If appropriate messages are provided, users would feel that all operations are immediate. Reference –Ajax – jQuery APIAjax – jQuery API –Ajaxload - Ajax loading gif generatorAjaxload - Ajax loading gif generator –Preloaders.net - AJAX loading GIF and APNG spinners, bars and 3D animations generatorPreloaders.net - AJAX loading GIF and APNG spinners, bars and 3D animations generator –5 Ways to Make Ajax Calls with jQuery5 Ways to Make Ajax Calls with jQuery Your web site ( will be checked not before 23:59 4/30 (Mon). You may send a report (such as some important modifications) to me in case I did not notice your features. Social Web Design 社群網站設計 15

Appendix 附錄 16 Social Web Design 社群網站設計

Not that hard, what you need to do is ProcessTechnologyExample Some place for users to input/operate HTML form 讚 Get/detect users’ input/operations Event jQuery("[type=text]").val(); jQuery("button").click(); Send data to serverHTTP request jQuery.ajax(); A server program to process the data CGI my $cgi = new CGI; $cgi->param(); Return the results to client CGI print; Receive the server results Event jQuery.ajax(success:function(data){ }); Display the resultsHTML jQuery().html() Social Web Design 社群網站設計 18

The time is enough, you can do it Is there any function in Facebook that you cannot do? There are still two months. With the onsite Q&A, your work is very promising Social Web Design 社群網站設計 19