CSCI 3100 Tutorial 8 Web Development Tools 1

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

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.
MWD1001 Website Production Using JavaScript with Forms.
ENHANCE YOUR DASHBOARD WITH JQUERY
CSCI 3100 Tutorial 6 Web Development Tools 1 Cuiyun GAO 1.
Web Applications Development Using Coldbox Platform Eddie Johnston.
Electrical and Computer Engineering PeopleFinder Vitaly Gordievsky Alex Trefonas Scott Richard Matt Beckford Comprehensive Design Review.
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
JavaScript, Third Edition
UWWD In our quest to eliminate bad websites, we present…. HALLELUJAH!!
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
The Web Wizard’s Guide To JavaScript Chapter 5 More Image Swapping.
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.
© 2011 Delmar, Cengage Learning Chapter 11 Adding Media and Interactivity with Flash and Spry.
Additional Topics. Tutorial #9 Review – Forms Forms Legend and fieldset Fields Text Password Radio buttons, check box, text area, select lists Buttons.
JavaScript & jQuery the missing manual Chapter 11
GIS technologies and Web Mapping Services
UNIT 8 DRAWING WITH THE HTML5 CANVAS ELEMENTS AND FORMS.
Server-side Scripting Powering the webs favourite services.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
Google Maps API. Static Maps send an HTTP GET request receive an image (PNG, GIF, JPEG) no javascript needed encode params in URL example:
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
Programming Games Basic HTML5 audio example. Catch-up. Work on basic video. Homework: Complete basic video.
Ajax Technology for the Web Nic Shulver, FCET, Staffordshire University Introduction What is it? Pros and Cons Why is it important? Traditional Client-Server.
HTML5 – The Power of HTML5 – The Power of Thomas Lewis HTML5 Principal Technical Evangelist Microsoft | asimplepixel.tumblr.com.
13. jQuery See the official documentation at  See the terse API documentation at
Creating an Animated Web Page
XP Tutorial 4 New Perspectives on JavaScript, Comprehensive1 Working with Objects Creating an Animated Web Page.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Jquery Nasrullah. Jquery jQuery is a JavaScript Library. jQuery greatly simplifies JavaScript programming. jQuery is easy to learn.
JavaScript – Quiz #9 Lecture Code:
ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong
ECE 3553 Final Project by Brian Robl. What is Eventor? A simple, yet effective, website for event planning and searching.  Influence from Facebook Events.
Animation & Effects Using JQuery. What is jQuery? jQuery is a lightweight, JavaScript library. The purpose of jQuery is to make it much easier to use.
Session: 1. © Aptech Ltd. 2Introduction to the Web / Session 1  Explain the evolution of HTML  Explain the page structure used by HTML  List the drawbacks.
Ryan MacDowell Marko Popović.  Currently it takes too much time and effort to understand how, where, and when people spend their money  Create a web.
Department of Computer Science Internet Performance Measurements using Firefox Extensions Scot L. DeDeo Professor Craig Wills.
Cs332a_chapt10.ppt CS332A Advanced HTML Programming DHTML Dynamic Hypertext Markup Language A term describing a series of technologies Not a stand-a-lone.
 Computer use language to communicate  A web browser will read these tags and translate it into what you actually see  Viewing Code of ESPN WebsiteESPN.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Form Processing Week Four. Form Processing Concepts The principal tool used to process Web forms stored on UNIX servers is a CGI (Common Gateway Interface)
1 What is JQuery. jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax* interactions.
Dawn Pedersen. What is JavaScript? JavaScript is the basis for both jQuery and Spry applications JavaScript is referred to as a client-side scripting.
ANIMATION FOR THE WEB. WHAT ARE WEB ANIMATIONS? Web animations are often saved as GIF, CSS, SVG, WebGL or video Ranges from simple animations (hover effects)
Unit 13 –JQuery Basics Instructor: Brent Presley.
New and Improved Financial Aid Help Service System for Clark Atlanta University By Shannon Parker.
IE Developer Tools Jonathan Seitel Program Manager.
Chapter 6 Murach's JavaScript and jQuery, C6© 2012, Mike Murach & Associates, Inc.Slide 1.
The Open Bluetooth Networking Game Development Platform Final Year Project Demonstration Carol & Marcus.
1/7/2016www.infocampus.co.in1. 1/7/2016www.infocampus.co.in2 Web Development training gives you and all-round training in both the design and the development.
CSCI 3100 Tutorial 2 Web Development Tools 1 HTML 5 & CSS 3 1.
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
PhoneGap, Processing.
The Web Wizard’s Guide To JavaScript
Mapping for the interwebs
Google Web Toolkit Tutorial
Chapter 4: Scalable Vector Graphics (SVG)
Animation for the Web.
Tracking and Booking Taxi
Application with Cross-Platform GUI
The Web Wizard’s Guide To JavaScript
JQuery with ASP.NET.
Fluency with Information Technology
Exercise 1 Modify some parameters in the histogram.js and see what would happen (one by one) 20 in Line 2  in Line 3  in Line 15  .9.
Types of Spatial Data Sites
Javascript and JQuery SRM DSC.
Introduction to JavaScript & jQuery
Murach's JavaScript and jQuery (3rd Ed.)
Engine and functionalities
Presentation transcript:

CSCI 3100 Tutorial 8 Web Development Tools 1 Junjie Hu jjhu@cse.cuhk.edu.hk Department of Computer Science and Engineering The Chinese University of Hong Kong

Objective of This Tutorial Learn to improve the front-end of your website: Use jQuery and JavaScript tricks for efficient coding Use Google Maps/Charts for good data visualization Use Facebook plugins to connect your service with social network Use WebGL for building fancy and realistic user interface

Outline More About JavaScript JQuery Google Maps API Google Charts API Facebook Plugins WebGL and THREE.js

JS: Event & Console.log Use event handler for user interaction Use console.log to check the identifiers Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/webtools1.html

JS: Time Interval Use setInterval keep invoking your function in every time interval. See also: clearInterval(), setTimeout(), clearTimeout() Demo: http://appsrv.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/interval.html

JS: Detect Different Browsers & Platforms Use navigator.userAgent and navigator.platform to detect the browser and platform users use. Demo: http://appsrv.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/detect.html

JQuery Include: Find documents HERE: Learn jQuery HERE: <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> Find documents HERE: http://api.jquery.com/ Learn jQuery HERE: https://learn.jquery.com/ http://www.w3schools.com/jQuery/

JQuery Easy object accessing Easy Ajax Easy event handling JavaScript Code Easy object accessing Easy Ajax Easy event handling Html Code PHP Code Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/webtools1.html

Google Map API Find documents HERE: Learn Google Map API HERE: https://developers.google.com/maps/documentation/javascript/reference Learn Google Map API HERE: https://developers.google.com/maps/documentation/javascript/tutorial Obtained API Key: https://developers.google.com/maps/documentation/javascript/tutorial#api_key

Google Map API Include GoogleMapAPI: <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyArVnl6S_GKJYWE47fAs 0FOijS3UawFF0Y&sensor=false"></script> Insert GoogleMap into your website: JavaScript Code Html Code Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/googlemap.html

Google Map API Create event handler for Map Using google.maps.event.addListener Find the click location on the map from event.latLng Add markers using new google.maps.Marker Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/googlemap.html

Google Map API Add Controls to the Map Change the styles of the Map You can modify controls, set their positions, drawing custom controls https://developers.google.com/maps/docu mentation/javascript/controls Change the styles of the Map https://developers.google.com/maps/docu mentation/javascript/styling Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/googlemap2.html

Google Map API You can add your own information window for markers https://developers.google.co m/maps/documentation/javas cript/infowindows Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/googlemap3.html

Google Map API Use panorama More info: https://developers.google.com/maps/documentation/javascript/streetview Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/googlemap4.html

Google Map API Convert address to geographic coordinates Use geocoder More info: https://developers.google.c om/maps/documentation/j avascript/geocoding Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/googlemap5.html

Google Chart API Visualize data on your websites https://google-developers.appspot.com/chart/interactive/docs/gallery

Google Chart API Draw an pie chart Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/googlechart.html

Google Chart API Draw an column chart Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/googlechart2.html

Facebook Plugins Plugins allowing Like / Share buttons Documents: https://developers.facebook.com/docs/plugins/ Unlike other JavaScript libs, Facebook does not use standalone lib files To include Facebook plugins:

Facebook Plugins Add like buttons and share buttons with HTML tags Demo: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/facebook.html

WebGL and THREE.js WebGL is a JavaScript API for creating 3D scene. The syntax is similar to openGL THREE.js is a JavaScript API for creating 3D scene using HTML5 canvas ,WebGL and SVG Much easier to use

THREE.js Use THREE.js to build a 3D scene and insert objects into the scene. Camera perspective setting Geometry and material setting Change rendering parameters to create animation Documents: http://threejs.org/docs/ DEMO: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1/webgl.html

References All code in this tutorial can be found HERE: Other links: http://www.cse.cuhk.edu.hk/csci3100/tutorial/webtools1.zip Other links: http://jquery.com/ https://developers.google.com/maps/documentation/javascript/tutorial https://developers.google.com/chart/?hl=zh-tw https://developers.facebook.com/docs/plugins/ http://learningwebgl.com/blog/?page_id=1217 http://threejs.org/