Molecular Biomedical Informatics 分子生醫資訊實驗室 Social Web Design & Research 社群網站設計 & 研究 Social Web Design & Research 1.

Slides:



Advertisements
Similar presentations
Molecular Biomedical Informatics Web Programming 1.
Advertisements

Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Bring Life to Your Web Pages with JavaScript and HTML5 Ole Ildsgaard Hougaard -
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Web Programming 網際網路程式設計 1 Darby Chang 張天豪 Web Programming 網際網路程式設計.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Social Web Design 社群網站設計 1 Darby Chang 張天豪 Social Web Design 社群網站設計.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Web Programming 網際網路程式設計 1 Darby Chang 張天豪 Web Programming 網際網路程式設計.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
Server-Side vs. Client-Side Scripting Languages
Chapter 16 Dynamic HTML and Animation The Web Warrior Guide to Web Design Technologies.
HTML Recall that HTML is static in that it describes how a page is to be displayed, but it doesn’t provide for interaction or animation. A page created.
物件導向程式 授課教師 : 王耀德 研究室 : 靜宜大學 二研 105 電話 : (04) # Web site:
Computer Science 103 Chapter 4 Advanced JavaScript.
Chapter 9 Introduction to the Document Object Model (DOM) JavaScript, Third Edition.
Development of mobile applications using PhoneGap and HTML 5
Molecular Biomedical Informatics 分子生醫資訊實驗室 Social Web Design & Research 社群網站設計 & 研究 Social Web Design & Research 1.
Molecular Biomedical Informatics 分子生醫資訊實驗室 Web Programming 網際網路程式設計 1.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Social Web Design 社群網站設計 1 Darby Chang 張天豪 Social Web Design 社群網站設計.
JavaScript Demo Presented by … Jaisingh Sumit jain Sudhindra Taran Deep arora.
Definition from Wikipedia.  The Prototype JavaScript Framework  implemented as a single file of JavaScript code  named prototype.js (
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
JavaScript CMPT 281. Outline Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages.
DHTML - Introduction Introduction to DHTML, the DOM, JS review.
JavaScript Teppo Räisänen LIIKE/OAMK HTML, CSS, JavaScript HTML defines the structure CSS defines the layout JavaScript is used for scripting It.
A really fairly simple guide to: mobile browser-based application development (part 4, JQuery & DOM) Chris Greenhalgh G54UBI / Chris Greenhalgh.
Working with Objects Creating a Dynamic Web Page.
CITS1231 Web Technologies JavaScript and Document Object Model.
JavaScript, Fourth Edition
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
An Introduction to JavaScript Summarized from Chapter 6 of “Web Programming: Building Internet Applications”, 3 rd Edition.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
DHTML - Introduction Chapter Introduction to DHTML, the DOM, JS review.
Social Web Design 社群網站設計 1 Darby Chang 張天豪 Social Web Design 社群網站設計.
Cs332a_chapt10.ppt CS332A Advanced HTML Programming DHTML Dynamic Hypertext Markup Language A term describing a series of technologies Not a stand-a-lone.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
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.
Javascript JavaScript is what is called a client-side scripting language:  a programming language that runs inside an Internet browser (a browser is also.
1 What is JQuery. jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax* interactions.
Understanding JavaScript and Coding Essentials Lesson 8.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
JavaScript & Introduction to AJAX
Lesson 30: JavaScript and DHTML Fundamentals. Objectives Define and contrast client-side and server-side technologies used to create dynamic content for.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
The Web Wizard’s Guide To DHTML and CSS Chapter 2 A Review of CSS2 and JavaScript.
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
Open Solutions for a Changing World™ Eddy Kleinjan Copyright 2005, Data Access WordwideNew Techniques for Building Web Applications June 6-9, 2005 Key.
Build in Objects In JavaScript, almost "everything" is an object.
Javascript and Dynamic Web Pages: Client Side Processing
Human Computer Interaction
Intro to JavaScript CS 1150 Spring 2017.
Unit 6 part 3 Test Javascript Test.
Web Design and Development
Introduction to DHTML, the DOM, JS review
JavaScript.
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

Molecular Biomedical Informatics 分子生醫資訊實驗室 Social Web Design & Research 社群網站設計 & 研究 Social Web Design & Research 1

JavaScript 2 Social Web Design & Research

JavaScript Executed by browser –completely different to Java –script language ( 腳本語言 ) So, it is just a programming language –for example, it can accumulate from one to ten –notice that it is executed by browser, which means no internet connection is required Its survival is a miracle –heard of Netscape? –Code Rush: Netscape Mozilla 紀錄片 (中文字 幕)Code Rush: Netscape Mozilla 紀錄片 (中文字 幕) Social Web Design & Research 3

Its advantage: integration with web When integrating with web, the most important thing is to show the result document.getElementById('foo').value='bar'; –document is an object of Document Object Model (DOM) –getElementById () is a method of document, which returns a DOM object –value is a attribute of an input object, where #foo is a You may consult HTML and CSS references for available properties and here for objects and methodshere Social Web Design & Research 4

How to select.foo objects? JavaScript getElementsByClass function function getElementsByClass(searchClass, domNode, tagName) { if (domNode == null) domNode = document; if (tagName == null) tagName = '*'; var el = new Array(); var tags = domNode.getElementsByTagName(tagName); var sc = " "+searchClass+" "; for (i=0, j=0; i<tags.length; ++i) { var tc = " " + tags[i].className + " "; if (tc.indexOf(sc) != -1) el[j++] = tags[i]; } return el; } Painful Social Web Design & Research 5

jQuery A Javascript library that every web site should use What is a library (module)? If many people do the same things, these things should become a library The advantage is that code becomes simple and understandable –jQuery('.foo').val('bar'); The disadvantage is that you have to learn more functions, but totally worthy –Main Page - jQuery JavaScript LibraryMain Page - jQuery JavaScript Library Social Web Design & Research 6

jQuery('.foo').css('color','red'); Social Web Design & Research 7 Understand this, and you know almost all fancy transitions Remember the CSS Zen Garden?CSS Zen Garden

More advanced function, animate() jQuery('.foo').animate({ 'margin-left': '100px', }, 2000, function(){ // animation completed }); Social Web Design & Research 8

9 In addition to ‘show the result’, there is another important things while integrating with web

Input (event) All web transitions are caused by events (such as clicking a button). This is the so-called event-driven programming ( 事 件導向 ) –not specific for web programming, windows programming ( 視窗 程式設計 ) and any programing in a multi-tasking environment ( 多工 ) are based on such a concept jQuery('#foo').click(function(){…}); –jQuerify is a good tool to test jQueryjQuerify –suppose that #foo is a –click is an event (.click() - jQuery API).click() - jQuery API –Here we used the trick of anonymous function. Please be familiar with it since this field uses it a lot. Social Web Design & Research 10

JavaScript references JavaScript Garden Learn jQuery & JAVASCRIPT for free Some interesting concepts widely used, but not unique, in JavaScript –anonymous function, callback function, closure, functional programming ( 那些 Functional Programming 教我的事 ) 那些 Functional Programming 教我的事 Notice that they are for JavaScript rather than for web programing with JavaScript Social Web Design & Research 11

Any Questions? Social Web Design & Research 12

Develop an app with these techniques WebView Various frameworks –box2dwebbox2dweb Cross-platform Social Web Design & Research 13

Today’s assignment 今天的任務 Social Web Design & Research 14

Make your web site dynamic Implement actions with HTML, CSS and JavaScript Reference –8 Layout Solutions To Improve Your Designs8 Layout Solutions To Improve Your Designs –40 Super-Neat JavaScript Plugins40 Super-Neat JavaScript Plugins –45+ New jQuery Techniques For Good User Experience45+ New jQuery Techniques For Good User Experience Your web site ( will be checked not before 23:59 3/12 (Tue). You may send a report (such as some important modifications) to me in case I did not notice your features. me Social Web Design & Research 15

Appendix 附錄 16 Social Web Design & Research

If we have time, I want to discuss… Any web effects you want to learn? JavaScript Garden Social Web Design & Research 17