Building a Rich Internet Application with jQuery Ben Dewey twentysix New York Fill this space.

Slides:



Advertisements
Similar presentations
Diego Guidi - DotNetMarche. DOM tree is clunky to use No multiple handlers per event No high-level functions Browser incompatibilities = jQuery to the.
Advertisements

JavaScript – Quiz #8 Lecture Code:
Getting Started with jQuery. 1. Introduction to jQuery 2. Selection and DOM manipulation Contents 2.
The jQuery library. What is jQuery ? A javascript lightweight library Is very easy to use Is powerful Is cross-browser compatible Downloadable from jQuery.com,
CSCI 3100 Tutorial 6 Web Development Tools 1 Cuiyun GAO 1.
Programming Club IIT Kanpur. Work environment Before you begin coding,always set up your work environment to your needs IDE Notepad++ Sublime Text 2.
CT-376 jQuery Most popular javascript library today Latest version:
JQuery CS 380: Web Programming. What is jQuery? jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling,
SE-2840 Dr. Mark L. Hornick1 jQuery. jQuery is a library of JavaScript functions Helps minimize the amount of JavaScript you have to write in order to:
Introduction to jQuery (for Drupal) Amit Asaravala “aasarava” on drupal.org.
JQuery A Javascript Library Hard things made eas(ier) Norman White.
JQuery & SharePoint San Antonio Users Group – September Meeting September 22, 2009 Microsoft SharePoint Server.
JQuery The Way to JavaScript and Rich Internet Applications.
JQUERY/AJAX ALIREZA KHATAMIAN DELARAM YAZDANSEPAS.
School of Computing and Information Systems CS 371 Web Application Programming jQuery.
Fall 2012 CSC9010 Web Technologies Web Tool Presentation Randy Escoto.
Vishal Kumar 06131A1258. Why you’re going to love jQuery!
ICS 665 Jesse Abdul. jQuery UI Overview  jQuery UI javascript library Includes all UI component functionality  jQuery UI CSS framework Includes standard.
JQuery. What is jQuery? jQuery is a fast, small, and feature-rich JavaScript library that simplifies HTML document traversing and manipulation event handling.
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
By Ronald Lopez and Bryan Cabalo. Outline jQuery UI overview Animation and special effects Themable widgets Versions and browser compatibility jQuery.
Fundamentals, DOM, Events, AJAX, UI Doncho Minkov Telerik Corporation
Presented at NCDevCon 2011 by: Denard Springle. Freelance Software Systems Engineer Rich internet and mobile applications Hardware, network and storage.
JQUERY – UI & THEMES "WRITE LESS, DO MORE" Built in interface elements.
PhpXperts What is jQuery Javascript Library Fast and concise Simplifies the interaction between HTML and JavaScript.
Nguyen Ich Cuong.  Course duration: 45’  Purpose: Present Introduction to JQuery  Targeted attendees: NICorp Trainee  Tests/quiz: Yes - 10’
JQuery March 09 th,2009 Create by
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
JQuery Adding behaviour…. Lecture Plan Review of last lesson Adding behaviour –click, mouseover Animation –fade, slideDown Navigation –parent, find, next.
13. jQuery See the official documentation at  See the terse API documentation at
INTRODUCTION TO HTML5 Using jQuery with HTML5. Introducing jQuery  Although it is not a part of any W3C or WHATWG specification, jQuery performs an important.
Conor Russomanno & Elizabeth Umbrino. A popular free Javascript Library Released in January 2006 At BarCamp, an international network of user-generated.
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.
CHAPTER 5 jQuery อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Unleash the Power of jQuery Doncho Minkov Telerik Software Academy academy.telerik.com Senior Technical Trainer
Fundamentals, Ajax, Templates, UI Doncho Minkov Telerik Corporation
JQuery Introduction © Copyright 2014, Fred McClurg All Rights Reserved.
LOGO sparcs.org 1 jQuery Tutorial Presenter ㅎㅇㅎㅇ.
JavaScript Library. What is jQuery jQuery is a lightweight JavaScript library. The purpose is to make it easier to use JavaScript code on your website.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
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.
Web Programming Language Week 9 Dr. Ken Cosh Introducing jQuery.
Modifying HTML attributes and CSS values. Learning Objectives By the end of this lecture, you should be able to: – Select based on a class (as opposed.
Intro to jQuery. What is jQuery? A JavaScript library Lightweight (about 31KB for the minified version) Simplifies HTML document traversing (DOM), event.
Unit 13 –JQuery Basics Instructor: Brent Presley.
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Week 3: Introduction to jQuery and Adv. Javascript.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
JQuery The Write Less, Do More, JavaScript Library.
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
JQuery.
JQuery Fundamentals Introduction Tutorial Videos
-By Yogita Nirmal.
Tek Raj Chhetri Code for Humans not for machine.
Introduction to Web programming
User Interface Design and Usability jQuery, jQuery UI & jQuery Plugins
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
JQUERY Online TRAINING AT GOLOGICA
Fundamentals, DOM, Events, AJAX, UI
The Cliff Notes Version
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
JQuery with ASP.NET.
Introduction to jQuery
..
Javascript and JQuery SRM DSC.
E-commerce Applications Development
Web Programming Language
Presentation transcript:

Building a Rich Internet Application with jQuery Ben Dewey twentysix New York Fill this space with whatever you want (graphic, logo, whatever)

We thank the following companies for their gracious sponsorship Platinum Sponsors Gold Sponsor

Assumptions Basic knowledge of –.NET – HTML – CSS – Javascript Who has used jQuery?

Overview What is jQuery Basic jQuery Demos Creating a RESTful WCF Service AJAX calls with WCF and jQuery Wrap-up/Q&A

What is jQuery “jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.” Alleviates the pains of cross browser development For this presentation we’re using jQuery version 1.4.2

Features in jQuery Selectors – No more getElementById() Wrapped Set Operations Events – Keeps event binding out of markup Plugin Extensibility – jQuery UI Project – ThemeRoller

Selectors in jQuery Powerful Selector Engine (Sizzle) – $(“.myTable”) // by css Class – $(“#nameTextBox”) // by Id – $(“ul”) // by tag name – $(“ul li”) // element descendent – $(“ul”).find(“li”) // more element descendent – $(“li”, list) // also element descendent – $(“ul > li”) // element child (direct descendent) – $(“input:checkbox”) // filter – $(“a[href=#Overview]”) // attributes – $(“a[href$=.aspx]”) // attributes Ends With More Selectors see

Wrapped Set Object jQuery Wrapped Set Object – Every selector returns a Set (an object that acts as an array) jQuery Wrapped Set Operations $(“.myTable td:odd”).css(‘background’, ‘gray’); – Common Operations $().html().text().val().attr().append().empty() $().css().addClass().removeClass().hasClass().offset().height().width().scrollTop().scrollLeft().show().hide() $().find().is().has().not().filter().parent().closest().next() $().live().bind().click().dblclick().hover().toggle().blur().keydown().keyup().resize().mouseover().mousedown()

Wrapped Set Object Chaining jQuery Wrapped Set Operation Chaining – $(“.myDiv”).css(‘background’, ‘gray’).addClass(‘dottedBorder’); When building your own function always return the set back for chaining $.fn.turnRed = function() { return this.each(function() { $(this).css(‘color’, ‘red’); }); }; Usage: $(‘#myDiv’).turnRed().addClass(‘blueBackground’); $.fn.turnRed = function() { return this.each(function() { $(this).css(‘color’, ‘red’); }); }; Usage: $(‘#myDiv’).turnRed().addClass(‘blueBackground’);

Events in jQuery Traditional Event Attributes in HTML Event Binding occurs in script header tag – Can go into and external.js file for cleanliness and reuse $(document).ready(function() { $(‘.myLink’).click(function(e) { e.preventDefault(); $(‘.myDiv’).show(); }); $(document).ready(function() { $(‘.myLink’).click(function(e) { e.preventDefault(); $(‘.myDiv’).show(); }); Show my Div Notice! $(document).ready Instead of Notice! $(document).ready Instead of

jQuery/Events and Callbacks $(“.myLink”).click(function(e) { alert(this.href); // this is usually the context, // here it’s the link }); $(“.myLink”).click(function(e) { alert(this.href); // this is usually the context, // here it’s the link }); $(“.myLink”).hover(function(e) { $(this).addClass(‘redLink’); // sometimes theirs two callbacks }, function(e) { $(this).removeClass(‘redLink’); }); $(“.myLink”).hover(function(e) { $(this).addClass(‘redLink’); // sometimes theirs two callbacks }, function(e) { $(this).removeClass(‘redLink’); }); // AJAX – use GET to read google results $.get(“ {q : “jQuery”}, function(html) { alert(this); // the jquery ajax object alert(html); // the google html results }); // AJAX – use GET to read google results $.get(“ {q : “jQuery”}, function(html) { alert(this); // the jquery ajax object alert(html); // the google html results }); $(“.myLink”).click(myLinkClick); // don’t have to be anonymous/inline function myLinkClick() { alert(this.href); } $(“.myLink”).click(myLinkClick); // don’t have to be anonymous/inline function myLinkClick() { alert(this.href); }

jQuery UI / Plugins jQuery UI Project has many nice plugins to use right out of the boxhttp://ui.jquery.com jQuery.com has great documentation for creating your own plugin ( Common settings are used by default, first parameter provides options if needed – $(‘.myList’).tabs(); // default – $(‘.myList’).tabs( {option1:true, option2:’.handle’} );

Current jQuery UI Widgets – Accordion – Autocomplete – Datepicker – Dialog (LightBox) – Progressbar – Slider – Tabs Effects – Blind – Clip – Drop – Explode – Fold – Puff – Slide – Scale – Size – Pulsate – Bounce – Highlight – Shake – Transfer As of version 1.8rc3

ThemeRoller jQuery has a very nice CSS Design app for use with their UI Plugins (

Getting Started All you need to get started is the latest jQuery file Include in your head tag jQueryUI.com contains a page to download a customizable and minified package.

Basic jQuery Demos

RIA Application with jQuery Automobile Administration Site

Context Bobby Bolivia’s Used Car Website Administration Pages Features – List Automobiles – Filter – Delete Automobile

Process Create Project Add jQuery js Add Reference to Data Model Add Reference to System.ServiceModel.Web (v3.5) Setup WCF Service – Remove system.serviceModel from web.config – Apply the WebScriptServiceHostFactory Call $.getJSON

Links Google – jQuery StackOverflow.com – jQuery

New York City Spring March 27, 2010

Thank You