Top Banner
JavaScript Tools and Frameworks Faves php|tek, May 26, 2011
21

JavaScript Tools and Frameworks Faves

Nov 28, 2014

Download

Technology

Anna Filina

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: JavaScript Tools and Frameworks Faves

JavaScript Tools and Frameworks Favesphp|tek, May 26, 2011

Page 2: JavaScript Tools and Frameworks Faves

Anna Filina

PHP Quebec - user group, organizer

ConFoo - non for profit Web conference, organizer

FooLab Inc. - IT solutions for businesses, founder

I write code

Page 3: JavaScript Tools and Frameworks Faves

Content

jQuery and plugins

Plupload

RaphaelJS

Page 4: JavaScript Tools and Frameworks Faves

jQuery:Framework

Page 5: JavaScript Tools and Frameworks Faves

FeaturesEvent handling

DOM traversing & manipulation

Ajax

Animations

jQuery UI

Interactions

Widgets

Theming

Page 6: JavaScript Tools and Frameworks Faves

Reasons

Easy to learn and to use

Fast and lightweight

Well documented

Many features and plugins

Big community

Page 7: JavaScript Tools and Frameworks Faves

Example: Image Cycle

$('#cycle').cycle({ fx: 'scrollLeft', speed: 'fast', timeout: 3000, pager: '#cycle-nav'});

http://conf.local/js-faves/web/1-jquery-cycle.html

Page 8: JavaScript Tools and Frameworks Faves

Example: Popup

$('a.popup').nyroModal();$.nyroModalData('E-mail sent');

http://conf.local/js-faves/web/2-jquery-popup.html

Page 9: JavaScript Tools and Frameworks Faves

Example: jQueryUI Tabs<div id="tabs"> <ul> <li><a href="#tab1">Tab 1</a></li> <li><a href="#tab2">Tab 2</a></li> </ul> <div id="tabs1"></div> <div id="tabs2"></div></div>

$('#tabs').tabs();

http://conf.local/js-faves/web/3-jquery-tabs.html

Page 10: JavaScript Tools and Frameworks Faves

Scenarios

Twitter: display user profile in side-bar

GitHub: slide navigation for code

Facebook: autoload posts on scroll

New York Times: top stories cycle

Create user-customizable interfaces

Page 11: JavaScript Tools and Frameworks Faves

Plupload:File upload queue

Page 12: JavaScript Tools and Frameworks Faves

Features

Upload multiple files

Upload chunks

HTML4 , HTML5, Gears, Silverlight, Flash, BrowserPlus

Queue widget with upload progress

Page 13: JavaScript Tools and Frameworks Faves

Reasons

Highly customizable

Chooses runtime based on client capabilities

Integration with jQuery UI

Page 14: JavaScript Tools and Frameworks Faves

Example

$('#uploader').plupload({ runtimes: 'html5,browserplus,gears', url: 'upload.php', chunk_size:'1mb', rename: true, max_file_count: 20}

http://conf.local/js-faves/web/4-plupload.html

Page 15: JavaScript Tools and Frameworks Faves

Scenarios

Flickr: trip photos

Slideshare: conference organizers

Dropbox

Freshbooks (idea): upload and OCR receipts

Magazine: articles

Visual instructions for assembly line

Page 16: JavaScript Tools and Frameworks Faves

RaphaelJS:Vector graphics

Page 17: JavaScript Tools and Frameworks Faves

Features

SVG, VML

Draw

Animate

Handle events

Drag and drop

Page 18: JavaScript Tools and Frameworks Faves

Reasons

Chooses SVG or VML based on browser

Easy to learn and to use

Clean syntax

Page 19: JavaScript Tools and Frameworks Faves

Example

var pathString = 'M 288 216 L 288 126 L 342 126 L 342 216 L 288 216';var p = paper.path(pathString);p.attr({ 'fill': '#FDF5CE', 'cursor': 'pointer', 'stroke': '#666', 'stroke-width': 2});

http://conf.local/js-faves/web/5-raphaeljs.html

Page 20: JavaScript Tools and Frameworks Faves

Scenarios

Maps

Interactive condo plans

Annotate images with instructions

NASDAQ: stock quotes

Flowcharts

Entire web application