SlideShare a Scribd company logo
How I Learned
              To Stop Worrying
              and Love jQuery
David Giard, Sogeti USA
     C# MVP
     MCTS, MCSD, MCSE, MCDBA
DavidGiard.com
@DavidGiard
B
E
F
O
R
E
A
F
T
E
R
JavaScript in your page
• <script type="text/javascript">
   …
  </script>

• <script type="text/javascript“
   src=“xxx.js">
  </script>
JavaScript: The Good Parts
• Interactive web pages
• Fast
• Ajax
JavaScript: The Bad Parts
• Cross-browser issues
• Cross-platform issues
JavaScript Frameworks
•   jQuery
     jQuery
•   Prototype
•   Dojo
•   Mootools
•   ExtJs
•   etc…
jQuery
•   JavaScript Abstraction
•   Cross-Browser
•   Built-In Functions
•   Fast
•   Unobtrusive
•   Popular
•   Ships with Visual Studio 2010 and 2012
jQuery Popularity




Source: http://royal.pingdom.com
jQuery Popularity




Source: http://royal.pingdom.com
jQuery Popularity
•   Twitter.com
•   Wikipedia.org
•   MLB.com
•   Amazon.com
•   Bing.com
•   Microsoft.com
•   Bit.ly
•   ESPN.com
•   Digg.com
•   Reddit.com
•   Netflix.com
•   WordPress.com
Unobtrusive JavaScript
• Obtrusive
  <a href=“” onclick=“DoSomething();”>
  Click Me
  </a>

• Unobtrusive
  <script type="text/javascript">
    $(document).ready(function(){
      $(“#Link1”).click(function(){
   DoSomething();
   });
  </script>
  <a href=“” id=“Link1”>
   Click Me
  </a>
Enable jQuery
• Download from jQuery.com
• <script
     type="text/javascript"
     src="scripts/jquery-1.8.3.min.js"></script>
Content Delivery Network
• <script
   type="text/javascript"
   src=“http://ajax.microsoft.com/ajax/jquery/jquery-1.8.3.min.js">
  </script>


• <script
   type="text/javascript"
   src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
  </script>

• <script
   type="text/javascript"
   src="http://code.jquery.com/jquery-1.8.3.min.js ">
  </script>
Non-Minified JavaScript
/*!
 * jQuery JavaScript Library v1.8.2
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2012 jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
 */
(function( window, undefined ) {
var
// A central reference to the root jQuery(document)
rootjQuery,

// The deferred used on DOM ready
Minified JavaScript
(function(a,b){function G(a){var b=F[a]={};return
p.each(a.split(s),function(a,c){b[c]=!0}),b}function
J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-
$1").toLowerCase();d=a.getAttribute(e);if(typeof
d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d
)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in
a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}fu
nction ba(){return!1}function bb(){return!0}function
bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do
a=a[b];while(a&&a.nodeType!==1);return a}function
bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var
e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return
a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return
a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return
p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var
b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.creat
eElement(b.pop());return c}function bC(a,b){return
a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}f
Document Object Model (DOM)
<html>
 <head>
  <title>My Page</title>
  <script
    type="text/javascript“
    src="http://code.jquery.com/jquery-1.7.1.min.js ">
                                     Document
  </script>
 </head>
 <body>        Head                                      Body
  <div>
    <p>
     Title a <a href="Page2.htm">link</a> Div
      This          Script                                      Div
    </p>
  </div>
  <div>                                   P                     UL
    Colors:
    <ul>
      <li>Red</li>
                                          A              LI     LI    LI
      <li>Orange</li>
      <li>Yellow</li>
    </ul>
  </div>
 </body>
</html>
Getting an Element
<script type="text/javaScript">
  var id = "Div1";
  var myDiv = document.GetElementById(id);
</script>
…
<div id="Div1">
  …
</div>
Cross-Browser
• Javascript
var id = "Div1";
var elm = null;
 if (document.getElementById)
 {
   elm = document.getElementById(id);
 }
 else if (document.all)
 {
   elm = document.all[id];
 }
 else if (document.layers)
 {
   elm = document.layers[id];
 }

• jQuery
var elm = $("#Div1");
jQuery Syntax
•   jQuery keyword
•   Selectors
•   Events
•   Functions / Methods
“jQuery” Keyword
•   jQuery
•   $
•   Represents the jQuery object
•   Indicates what follows is jQuery
Selectors
• Returns a set of objects
• Call method on each object
• Bind event to each object
CSS Selectors
h2 {
       font-family: "Calibri";               Tag name
       font-size: 66pt;
       font-weight: bold;
}
.FootNote {
       font-family: "Calibri";              Class name
       font-size: 18pt;
       font-weight: bold;
}
#MyElement {
       font-family: “Times New Roman";      Element ID
       font-color: red;
}
div#MyDiv {
       font-family: “Arial";             Combine selectors
       font-size: 48pt;
}
jQuery Selectors
• $(selector)
• where selector is:
Selector   Select by…      Example
 "#xxx"    Id              $("#MyDiv")
 ".xxx"    className       $(".MyClass")
 "xxx"     element type    $("a")
   xxx     variable name   $(document)
(document).ready
$(document).ready(function(){
     …
});
Events
$(document).ready(function(){
    $("#MyDiv").click(function(){
     …
    });
});
Methods
$(document).ready(function(){
    $(“#MyDiv”).click(function(){
     $(“a”).attr(“target”, “_blank”);
    });
});
Methods
$(document).ready(function(){
    $(“#MyDiv”).click(function(){
     $(“a”).attr(“target”, “_blank”);
    });
});
Methods
$(function(){
    $(“#MyDiv”).click(function(){
     $(“a”).attr(“target”, “_blank”);
    });
});
Combining Selectors
• Containership
  $(‘selector1 selector2’)
  Ex:
      $(‘div a’)
• Narrow scope
  $(‘Selector1Selector2’)
  Ex:
      $(‘a#MyLink’)
Set-based Selectors
•   $("div:first")
•   $("div:last")
•   $("div:even")
•   $("div:odd")
Ajax
• Call web service from jQuery
Ajax
$.ajax({
      url: "CustomerWs.asmx/GetCustomerName",
      dataType: "text",
      type: "POST",
      data: {},
      error: function (err) {
         // Code to run when error returned
      },
      success: function (data) {
         // Code to run when successfully returned
      }
Plug-Ins
• jQuery is extensible!
• jQueryUI
jQuery UI
Help!
• docs.jquery.com
• api.jquery.com
• jqueryui.com/demos
More resources
• http://codylindley.com/jqueryselectors/
• http://www.paulstovell.com/jquerypad
David Giard
• DavidGiard.com
• TechnologyAndFriends.com
• @DavidGiard.com
How I Learned to Stop Worrying and Love jQuery (Jan 2013)

More Related Content

PPTX
J query
PDF
jQuery for beginners
PPTX
Jquery Complete Presentation along with Javascript Basics
PDF
jQuery Loves Developers - Oredev 2009
PPTX
SharePoint and jQuery Essentials
PDF
jQuery Introduction
PPTX
Unobtrusive javascript with jQuery
PDF
Introduction to jQuery
J query
jQuery for beginners
Jquery Complete Presentation along with Javascript Basics
jQuery Loves Developers - Oredev 2009
SharePoint and jQuery Essentials
jQuery Introduction
Unobtrusive javascript with jQuery
Introduction to jQuery

What's hot (20)

PPTX
jQuery Presentation
PPT
jQuery introduction
PDF
jQuery Features to Avoid
PPTX
JavaScript and jQuery Basics
PDF
Styling Components with JavaScript: MelbCSS Edition
PDF
Styling components with JavaScript
PDF
Learn css3
PPT
PDF
DirectToWeb 2.0
PPTX
Getting the Most Out of jQuery Widgets
PDF
PPTX
SharePoint Cincy 2012 - jQuery essentials
PDF
22 j query1
PPT
J query intro_29thsep_alok
PPTX
Introduction to jQuery
PDF
jQuery in the [Aol.] Enterprise
PPTX
Intro to jQuery
PDF
jQuery Essentials
PPTX
Harness jQuery Templates and Data Link
PPTX
JsViews - Next Generation jQuery Templates
jQuery Presentation
jQuery introduction
jQuery Features to Avoid
JavaScript and jQuery Basics
Styling Components with JavaScript: MelbCSS Edition
Styling components with JavaScript
Learn css3
DirectToWeb 2.0
Getting the Most Out of jQuery Widgets
SharePoint Cincy 2012 - jQuery essentials
22 j query1
J query intro_29thsep_alok
Introduction to jQuery
jQuery in the [Aol.] Enterprise
Intro to jQuery
jQuery Essentials
Harness jQuery Templates and Data Link
JsViews - Next Generation jQuery Templates
Ad

Viewers also liked (20)

PPTX
Calling Watson to Ward 8 Stat
PPTX
Gang announcements 2010 06
PPT
Word Coach - Pitt Sept 08
PDF
A Solver Manager for energy systems planning within a Stochastic Optimization...
PPT
Comparative study and non comparative study
DOC
Global lesson Survey
DOCX
ACHPER QR Code Activity
PPT
Beths Powerpoint
PPT
Conference Information 2008 Final
PPTX
Gang announcements 2011 07
PPT
SEO Goes Natural and Social
PDF
XML Compression Benchmark
PDF
The Business of Mobile Apps
PPT
Paresi mestresangelsmora
PPTX
Share Point Customization Delivered
PDF
Jack Thurston talk at EU budget and CAP conference: Prague, 11 December 2008
PPTX
Aσφάλεια στο διαδίκτυο. Μια πρώτη προσέγγιση.
PPT
the great eight
PDF
GraphREL: A Relational Graph Query Processor
PDF
What Is Social Media Optimization?
Calling Watson to Ward 8 Stat
Gang announcements 2010 06
Word Coach - Pitt Sept 08
A Solver Manager for energy systems planning within a Stochastic Optimization...
Comparative study and non comparative study
Global lesson Survey
ACHPER QR Code Activity
Beths Powerpoint
Conference Information 2008 Final
Gang announcements 2011 07
SEO Goes Natural and Social
XML Compression Benchmark
The Business of Mobile Apps
Paresi mestresangelsmora
Share Point Customization Delivered
Jack Thurston talk at EU budget and CAP conference: Prague, 11 December 2008
Aσφάλεια στο διαδίκτυο. Μια πρώτη προσέγγιση.
the great eight
GraphREL: A Relational Graph Query Processor
What Is Social Media Optimization?
Ad

Similar to How I Learned to Stop Worrying and Love jQuery (Jan 2013) (20)

PPT
J query b_dotnet_ug_meet_12_may_2012
PDF
Introduction to jQuery
PPTX
How to increase Performance of Web Application using JQuery
PPTX
Starting with jQuery
PPT
J query module1
PPTX
Web technologies-course 11.pptx
PPTX
J111111111111111111111111111111111111111query.pptx
PPTX
jQuery
PPTX
J Query The Write Less Do More Javascript Library
PPTX
UNIT 1 (7).pptx
PPT
jQuery Tips Tricks Trivia
PDF
Learning jquery-in-30-minutes-1195942580702664-3
PPTX
JQuery
PPT
J query lecture 1
PDF
Javascript libraries
PDF
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
PPT
Intro to jQuery
PPT
J query presentation
PPT
J query presentation
PDF
fuser interface-development-using-jquery
J query b_dotnet_ug_meet_12_may_2012
Introduction to jQuery
How to increase Performance of Web Application using JQuery
Starting with jQuery
J query module1
Web technologies-course 11.pptx
J111111111111111111111111111111111111111query.pptx
jQuery
J Query The Write Less Do More Javascript Library
UNIT 1 (7).pptx
jQuery Tips Tricks Trivia
Learning jquery-in-30-minutes-1195942580702664-3
JQuery
J query lecture 1
Javascript libraries
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
Intro to jQuery
J query presentation
J query presentation
fuser interface-development-using-jquery

More from David Giard (20)

PPTX
Data Visualization - CodeMash 2022
PPTX
Azure data factory
PPTX
Azure functions
PPTX
University of Texas lecture: Data Science Tools in Microsoft Azure
PPTX
University of Texas, Data Science, March 29, 2018
PPTX
Intro to cloud and azure
PPTX
Azure and deep learning
PPTX
Azure and Deep Learning
PPTX
Custom vision
PPTX
Cloud and azure and rock and roll
PPTX
Own your own career advice from a veteran consultant
PPTX
You and Your Tech Community
PPTX
Microsoft Azure IoT overview
PPTX
Cloud and azure and rock and roll
PPTX
Big Data on azure
PPTX
Microsoft azure without microsoft
PPTX
Azure mobile apps
PPTX
Building a TV show with Angular, Bootstrap, and Web Services
PPTX
Effective Data Visualization
PPTX
Angular2 and TypeScript
Data Visualization - CodeMash 2022
Azure data factory
Azure functions
University of Texas lecture: Data Science Tools in Microsoft Azure
University of Texas, Data Science, March 29, 2018
Intro to cloud and azure
Azure and deep learning
Azure and Deep Learning
Custom vision
Cloud and azure and rock and roll
Own your own career advice from a veteran consultant
You and Your Tech Community
Microsoft Azure IoT overview
Cloud and azure and rock and roll
Big Data on azure
Microsoft azure without microsoft
Azure mobile apps
Building a TV show with Angular, Bootstrap, and Web Services
Effective Data Visualization
Angular2 and TypeScript

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
cuic standard and advanced reporting.pdf
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
Teaching material agriculture food technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Machine learning based COVID-19 study performance prediction
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Big Data Technologies - Introduction.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
cuic standard and advanced reporting.pdf
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Network Security Unit 5.pdf for BCA BBA.
Understanding_Digital_Forensics_Presentation.pptx
Teaching material agriculture food technology
MYSQL Presentation for SQL database connectivity
Machine learning based COVID-19 study performance prediction
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...

How I Learned to Stop Worrying and Love jQuery (Jan 2013)

  • 1. How I Learned To Stop Worrying and Love jQuery David Giard, Sogeti USA C# MVP MCTS, MCSD, MCSE, MCDBA DavidGiard.com @DavidGiard
  • 4. JavaScript in your page • <script type="text/javascript"> … </script> • <script type="text/javascript“ src=“xxx.js"> </script>
  • 5. JavaScript: The Good Parts • Interactive web pages • Fast • Ajax
  • 6. JavaScript: The Bad Parts • Cross-browser issues • Cross-platform issues
  • 7. JavaScript Frameworks • jQuery jQuery • Prototype • Dojo • Mootools • ExtJs • etc…
  • 8. jQuery • JavaScript Abstraction • Cross-Browser • Built-In Functions • Fast • Unobtrusive • Popular • Ships with Visual Studio 2010 and 2012
  • 11. jQuery Popularity • Twitter.com • Wikipedia.org • MLB.com • Amazon.com • Bing.com • Microsoft.com • Bit.ly • ESPN.com • Digg.com • Reddit.com • Netflix.com • WordPress.com
  • 12. Unobtrusive JavaScript • Obtrusive <a href=“” onclick=“DoSomething();”> Click Me </a> • Unobtrusive <script type="text/javascript"> $(document).ready(function(){ $(“#Link1”).click(function(){ DoSomething(); }); </script> <a href=“” id=“Link1”> Click Me </a>
  • 13. Enable jQuery • Download from jQuery.com • <script type="text/javascript" src="scripts/jquery-1.8.3.min.js"></script>
  • 14. Content Delivery Network • <script type="text/javascript" src=“http://ajax.microsoft.com/ajax/jquery/jquery-1.8.3.min.js"> </script> • <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"> </script> • <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js "> </script>
  • 15. Non-Minified JavaScript /*! * jQuery JavaScript Library v1.8.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) */ (function( window, undefined ) { var // A central reference to the root jQuery(document) rootjQuery, // The deferred used on DOM ready
  • 16. Minified JavaScript (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"- $1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d )?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}fu nction ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,function(a,d){return p.inArray(a,b)>=0===c})}function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.creat eElement(b.pop());return c}function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}f
  • 17. Document Object Model (DOM) <html> <head> <title>My Page</title> <script type="text/javascript“ src="http://code.jquery.com/jquery-1.7.1.min.js "> Document </script> </head> <body> Head Body <div> <p> Title a <a href="Page2.htm">link</a> Div This Script Div </p> </div> <div> P UL Colors: <ul> <li>Red</li> A LI LI LI <li>Orange</li> <li>Yellow</li> </ul> </div> </body> </html>
  • 18. Getting an Element <script type="text/javaScript"> var id = "Div1"; var myDiv = document.GetElementById(id); </script> … <div id="Div1"> … </div>
  • 19. Cross-Browser • Javascript var id = "Div1"; var elm = null; if (document.getElementById) { elm = document.getElementById(id); } else if (document.all) { elm = document.all[id]; } else if (document.layers) { elm = document.layers[id]; } • jQuery var elm = $("#Div1");
  • 20. jQuery Syntax • jQuery keyword • Selectors • Events • Functions / Methods
  • 21. “jQuery” Keyword • jQuery • $ • Represents the jQuery object • Indicates what follows is jQuery
  • 22. Selectors • Returns a set of objects • Call method on each object • Bind event to each object
  • 23. CSS Selectors h2 { font-family: "Calibri"; Tag name font-size: 66pt; font-weight: bold; } .FootNote { font-family: "Calibri"; Class name font-size: 18pt; font-weight: bold; } #MyElement { font-family: “Times New Roman"; Element ID font-color: red; } div#MyDiv { font-family: “Arial"; Combine selectors font-size: 48pt; }
  • 24. jQuery Selectors • $(selector) • where selector is: Selector Select by… Example "#xxx" Id $("#MyDiv") ".xxx" className $(".MyClass") "xxx" element type $("a") xxx variable name $(document)
  • 26. Events $(document).ready(function(){ $("#MyDiv").click(function(){ … }); });
  • 27. Methods $(document).ready(function(){ $(“#MyDiv”).click(function(){ $(“a”).attr(“target”, “_blank”); }); });
  • 28. Methods $(document).ready(function(){ $(“#MyDiv”).click(function(){ $(“a”).attr(“target”, “_blank”); }); });
  • 29. Methods $(function(){ $(“#MyDiv”).click(function(){ $(“a”).attr(“target”, “_blank”); }); });
  • 30. Combining Selectors • Containership $(‘selector1 selector2’) Ex: $(‘div a’) • Narrow scope $(‘Selector1Selector2’) Ex: $(‘a#MyLink’)
  • 31. Set-based Selectors • $("div:first") • $("div:last") • $("div:even") • $("div:odd")
  • 32. Ajax • Call web service from jQuery
  • 33. Ajax $.ajax({ url: "CustomerWs.asmx/GetCustomerName", dataType: "text", type: "POST", data: {}, error: function (err) { // Code to run when error returned }, success: function (data) { // Code to run when successfully returned }
  • 34. Plug-Ins • jQuery is extensible! • jQueryUI
  • 37. More resources • http://codylindley.com/jqueryselectors/ • http://www.paulstovell.com/jquerypad
  • 38. David Giard • DavidGiard.com • TechnologyAndFriends.com • @DavidGiard.com

Editor's Notes