Libraries and APIs CMPT 281. Overview Basics of libraries and APIs Rich internet applications Examples – Scriptaculous – JQuery.

Slides:



Advertisements
Similar presentations
Silverlight is a cross-browser, cross-platform plug-in* * An auxiliary program that works with a software package to enhance its capability. For example,
Advertisements

ENHANCE YOUR DASHBOARD WITH JQUERY
ESRI Geoportal Extension 10 November 2010 Out-of-the-box capabilities and additional options.
AJAX Technologies KAUNAS UNIVERSITY OF TECHNOLOGY MODULE: INFORMATION TECHNOLOGY GROUP: IF - 4/9 GROUP: VENTILIATORIAI
Scoil an Léinn Eolais agus na Leabharlannaíochta UCD UCD School of Information and Library Studies OJAX: A Web 2.0 search user interface Judith Wusteman.
© 2007 IBM Corporation IBM Emerging Technologies Enabling an Accessible Web 2.0 Becky Gibson Web Accessibility Architect.
High Performance Faceted Interfaces Using S2S Eric Rozell, Tetherless World Constellation.
It’s always better live. MSDN Events Developing ASP.NET AJAX Controls with Silverlight.
-Uday Dhokale.  What is it ??? Prototype is a JavaScript Framework that aims to ease development of dynamic web applications.  Features a unique, easy-to-use.
Development of mobile applications using PhoneGap and HTML 5
More APIs: Web Services CMPT 281. Announcements Project milestone Lab: – Web services examples.
XML on the Web: is it still relevant? O'Neil D. Delpratt.
By Ronald Lopez and Bryan Cabalo. Outline jQuery UI overview Animation and special effects Themable widgets Versions and browser compatibility jQuery.
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
1-July-2002cse142-Shortcuts Tutorial © 2002 University of Washington1 Shortcuts Tutorial CSE 142, Summer 2002 Computer Programming 1
Chapter 11 Adding Media and Interactivity. Flash is a software program that allows you to create low-bandwidth, high-quality animations and interactive.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
RIA & Adobe Flex Yunhui Fu 11/05/2008. What’s RIA RIA (Rich Internet Applications) –web applications which look and perform like desktop applications.
Ajax-based startpage Web top Personal web portal Page aggregator –Netvibes, My Yahoo!, iGoogle, Page Flakes, Wakooz, and Microsoft Live. –Personalize.
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Build Great Web Application 'Fast and Easy'
Day 17. » Client side and Server side » Since PHP is Server side and can output anything we want, we can output to JS. » With JS libraries, we can create.
Interacting with a Web Page using JavaScript Mat Kelly GTAI Presentation January 10, 2014.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
UFIEWT-20-3 Advanced Topics in Web Development Prakash Chatterjee / Paul Matthews Room 3P16
Grid Chemistry System Architecture Overview Akylbek Zhumabayev.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 1 - (Re) Introducing JavaScript Modern JavaScript Design And Develop Copyright © 2012 by.
Attention.. evangelism. ajax. evangelism. ajax. attention?
UFCEWT-20-3 Advanced Topics in Web Development Prakash Chatterjee / Paul Matthews / Julia Dawson Room 3P16
Abelian Kingdom Andrew, Kelvin and Peter. What is it? A web (browser) game MORPG on Google map Login with Facebook Interact with your friends And the.
Wijmo Troy Taylor. What is Wijmo? -Wijmo is a kit of over 40 UI widgets, optimized for client-side web development. -HTML5 -jQuery -CSS3 -SVG.
Virtual Earth Map Control V4 MARK MAGLIOCCO Phillydotnet.org 11/21/2006
HTML5 AND THE FUTURE JAVASCRIPT PLATFORM Marcelo Lopez Ruiz Senior Software Design Engineer Microsoft Corporation.
Types of Spatial Data Sites Data portals: Find and download data –Humboldt County, National Atlas “Atlases”: General information –GoogleMaps, MapQuest.
If I wanted to Simulate the Next Screen… TEMPLATES, COMPONENTS, AND INCREMENTAL IMPROVEMENT.
Ajax for Dynamic Web Development Gregory McChesney.
Shell Interface Shell Interface Functions Data. Graphical Interface Graphical Interface Command-line Interface Command-line Interface Experiments Private.
Ajax VS Flex A comparison based on shopping cart implementation PoHsu Yeh py2157.
2013 National Scout Jamboree Injury Map Ryan Stanley, Graduate Research Assistant West Virginia GIS Technical.
© 2011 LabKey Software ExtJS Migration Plan Ben Bimber, Ph.D. LabKey Software.
1 What is JQuery. jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax* interactions.
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.
Prof. James A. Landay University of Washington Spring 2008 Web Interface Design, Prototyping, and Implementation Rich Internet Applications: AJAX, Server.
PHP and AJAX. Servers and Clients For many years we tried to move as much as possible to the server. Weak clients, poor bandwidth, browser compatibility..
LECTURE #4: JQUERY AND FORM VALIDATION Josh Kaine Josh Kaine 4/1/2016.
X2R Spec 1. Change log DateVersionPeopleNote 2013/11/01V0.0.1Chien-Wei Yu, Anderson Ou First draft, add X2R files spec. 2013/12/16V0.0.2Anderson Ou, Doc.
Using the Google Docs word processor Skills: familiarity with Google Docs, creating and sharing text document on the Internet Concepts: stand-alone applications.
The web, reloaded..  I. What is Web 2.0?  II. Technologies and examples of applications  III. Building Web 2.0 applications.
INNOV-16: Rich User Interface for the Web???? AJAX to the Rescue Ken Wilner VP of Technology Progress Software.
Web Application Development Process
JQuery Fundamentals Introduction Tutorial Videos
January Webinar: How to Integrate FileCatalyst Java Applets
50 Performance Tricks to Make your HTML5 apps and sites Faster
MIS Professor Sandvig MIS 324 Professor Sandvig
Google Web Toolkit Tutorial
Ben Bimber, Ph.D. LabKey Software
User working in web-browser
The Cliff Notes Version
Customizing and extending ArcGIS Web App Templates
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
COP 3813 Intro to Internet Computing
AJAX Impact on Telecom It’s not just for web sites anymore.
MIS Professor Sandvig MIS 324 Professor Sandvig
Part 8 Q36 to Q40 of National 5 Prelim
Types of Spatial Data Sites
Choosing between Silverlight and AJAX
Types of Spatial Data Sites
Introduction to JavaScript & jQuery
MIS Professor Sandvig MIS 424 Professor Sandvig
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

Libraries and APIs CMPT 281

Overview Basics of libraries and APIs Rich internet applications Examples – Scriptaculous – JQuery

What is a library? A collection of software modules that provides services to another program A way to extend the functionality of a programming language A way to modularize software development Application Library A Library B

What is an API? “Application Programming Interface” The set of functions or commands that is made available by a library

Why libraries for web development? To improve the interactive experience Many tasks are difficult with just HTML/CSS – e.g., poor set of interface widgets – Libraries allow reuse of good solutions – “javascript libraries” Many web services exist on the internet – External libraries with a different delivery model – e.g., Google Maps, Flickr, WeatherBug

All libraries have an API

JavaScript Libraries

Prototypewww.prototypejs.org/ script.aculo.usscript.aculo.us/ Yahoo! User Interface Librarydeveloper.yahoo.com/yui/ Dojodojotoolkit.org/ jQueryjquery.com/ MooToolsmootools.net/ Raphaelraphaeljs.net

What do JS libraries do? Animation effects User interface widgets JS programming shortcuts Graphics AJAX – Asynchronous Javascript And XML...and more, depending on the library

But, beware... Libraries can make things more complex They can change the way JS works They may not be complete or well supported They can be difficult to learn (examples!) So, don’t depend on them! – e.g., only use plain JS on the final exam, unless asked to use a library

How to use JS libraries Same principle as external JS: Some libraries are stored on your site: Some libraries are accessed from their home:

Example: effects in Scriptaculous

Using Scriptaculous Docs: 1. Download the libraries – 2. Put them where your page can see them – e.g., a libraries/ directory 3. Load them into your page – Note that ‘scriptaculous’ depends on ‘prototype’ 4. Use the functions in the API

The Scriptaculous API

Core effects new Effect.EffectName(element, params, [options]); Example: new Effect.Opacity(‘element_id', { duration: 2.0, from: 1.0, to: 0.5 });

Scriptaculous effects demo

Example: effects in JQuery

Using JQuery (see docs.jquery.com/Tutorials:Getting_Started_with_jQuery) 1. No download required 3. Load the library into your page 4. Use the functions in the API

JQuery effects demo

Effects without libraries?