SlideShare a Scribd company logo
JS Libraries & jQuery overview by Aleksandr Motsjonov [email_address]
Agenda Demo  –   Teaser Chapter I  – JS Libraries Chapter II  – What is jQuery Chapter III  – Deep into the Code Demo  – Full Version
Demo  – Teaser
Chapter I  –   JS Libraries
JS Libraries Reasons.  Why JS Libraries in the first place? Lot of them.  Question of choose . Some   interesting   stuff .
Less  code More  free time More  money left Easier  to write Why JS Libraries?
Why JS Libraries? JS Lib as  cross browser  abstraction layer Less  headache Less  bugs Less  time spend More  money left
Why JS Libraries? No  need to  reinvent the wheel. Methods like selectByClassName All other utility  methods already  written (Plug-ins)
Which one to choose? There is a lot of JS Libraries.  (pull) Who uses JS libs? jQuery?
Choose of JS Library Everyone have right to choose  whatever  she likes. I respect other libs and criticism about jQuery.
Choose of JS Library Different needs – different JS libs. Working with  DOM OOP  Abstraction UI  Toolkit Ajax  framework General  Purpose
Choose of JS Library Why  I choose  jQuery? Honestly I’ve been starting with  Prototype  =) http://www.rsdn.ru/article/inet/jQuery.xml
 
Last things about JS libs ECMAScript  5.0 Google  AJAX Libraries API http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
Chapter II  –   What is jQuery Now You will know  who  and  why  need to  choose jQuery.
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. Write less, do more. http://jquery.com/ Author :  John Resig Last Release:  v. 1.3.2 Size (production):  19kb
jQuery Inside  the Code Outside  the Code Additional  Bonuses
What jQuery has Inside Code? DOM  Manipulation Node/Attributes Modification Traversing CSS  Queries A jax Simple Visual  Effects Utility  methods Custom  Plug-ins  development
Outside code  - Popularity Who  Uses jQuery? Most popular sites:  Google, Amazon, IBM, Twitter, Dell, NBC, BBC, Digg, Intel, Oracle, Slashdot, Technorati, SourceForge, GitHub, Science, New York Post, FeedBurner, … OpenSource projects:  Mozilla, WordPress, Drupal, Trac, Joomla, Symfony, Zend Framework, PEAR, …
Outside code  - Popularity Big Community 3200  messages in Google Groups 2600  Plug-ins in central repository Countless   number of tutorials and articles   Books
Additional Bonuses
Additional Bonuses  - Performance
 
Additional Bonuses Browser Compatibility F ire f ox 2.0+ I nternet  E xplorer 6.0+ S afari 3+ O pera 9+ C hrome 1+ Known Issues in (FF 1.o, IE 1-5, Safari 1-2, Opera 1-8, lynx =) jQuery  Loves other Libraries =) noConflict() Don’t touch standard Objects (Object, String, itc.)
Chapter III  – Meet the jQuery Code
Deep into the Code CSS  Query D OM E vents A jax O ther
Basics jQuery  Object  concept Almost everything in jQuery  is   jQuery Objects.  Every jQuery method you call from such objects. Almost every method  return jQuery object. You can make chains with it.
$ is the Mother of jQuery $  - is shorthand for  jQuery  object/function – main object, which need to be called to use jQuery.  $  can be called with 4 types of arguments: HTML Text. For  creating  new DOM element (returns jQuery object) CSS Selector.   For  searching and retrieving  existing DOM elements. DOM element. For wrapping it with jQuery to get jQuery object. Function. Shorthand for document onDOMLoad event handler.
$ - Examples
CSS as Query language for DOM tree jQuery (like many other JS Libraries) uses CSS  as Query language  to get DOM elements.  Main method to make CSS Queries is $(), but  there is   also methods , which arguments also CSS statement. $()  could return 0 , 1 or many elements, which match CSS statement. No exceptions.
Main methodology of jQuery Get  ( Find ) some jQuery elem. Do  something with it.
CSS  Support  CSS  1 CSS  2 CSS   3  (subset) Custom  CSS  selectors
CSS Selectors in Action Basic Hierarchy Basic Filters Content Filters Visibility Filters Attribute Filters Child Filters Forms Form Filters
Basic Selectors
Hierarchy Selectors
Basic Filters
Content Filters
Visibility Filters
Attribute Filters
Child Filters
Forms
Form Filters
DOM Traversing Filtering Finding Chaining
DOM Traversing  - Filtering
DOM Traversing  - Finding
Chaining
Attributes
DOM Manipulation append preppend after before appendTo preppendTo insertAfter insertBefore wrap wrap All wrap Inner replaceWith replaceAll
DOM Manipulation
CSS
Positioning
Height and Width
Events
Events
Ajax Function:  success, beforeSend, complete, dataFilter, error, xhr  Boolean:  async, cache, ifModified, processData, global String, Object:  contentType, data, dataType, jsonp, password, scriptCharset, type, url, username
Ajax
Other Effects show(), hide(), slideDown(), fadeIn(), animate() Utilities jQuery.support, .each(), .map(), .inArray(), .unique(), .isFunction(), .isArray() .get(i), .eq(i), .index()
Demo  – Full Version
The  End.

More Related Content

PPTX
Internet and Web Technology (CLASS-9) [React.js] | NIC/NIELIT Web Technology
PPTX
Advanced Object Oriented JavaScript (prototype, closure, scope, design patterns)
KEY
PPTX
FFW Gabrovo PMG - jQuery
PPTX
FFW Gabrovo PMG - JavaScript 1
PPT
jQuery introduction
PDF
Learn css3
PDF
Fields, entities, lists, oh my!
Internet and Web Technology (CLASS-9) [React.js] | NIC/NIELIT Web Technology
Advanced Object Oriented JavaScript (prototype, closure, scope, design patterns)
FFW Gabrovo PMG - jQuery
FFW Gabrovo PMG - JavaScript 1
jQuery introduction
Learn css3
Fields, entities, lists, oh my!

What's hot (20)

PPTX
Getting Started with jQuery
PPT
jQuery Learning
PDF
JavaScript - Chapter 12 - Document Object Model
PDF
Interacting with the DOM (JavaScript)
PPTX
Internet and Web Technology (CLASS-6) [BOM]
PPTX
Object Oriented JavaScript - II
PDF
Drupalize your data use entities
PPTX
Javascript inside Browser (DOM)
PPTX
Beginning jQuery
PDF
Introduction to html & css
PPT
OOP in JavaScript
KEY
MongoDB at ZPUGDC
PPTX
Locators in selenium - BNT 09
PPT
J Query
PPTX
Getting Started with Web
PPTX
Ruby On Rails Intro
PPTX
Introduction to jQuery
PDF
Getting started-with-oracle-so a-ii
PPTX
Javascript Basics by Bonny
Getting Started with jQuery
jQuery Learning
JavaScript - Chapter 12 - Document Object Model
Interacting with the DOM (JavaScript)
Internet and Web Technology (CLASS-6) [BOM]
Object Oriented JavaScript - II
Drupalize your data use entities
Javascript inside Browser (DOM)
Beginning jQuery
Introduction to html & css
OOP in JavaScript
MongoDB at ZPUGDC
Locators in selenium - BNT 09
J Query
Getting Started with Web
Ruby On Rails Intro
Introduction to jQuery
Getting started-with-oracle-so a-ii
Javascript Basics by Bonny
Ad

Similar to JS Libraries and jQuery Overview (20)

PPT
J query presentation
PPT
J query presentation
PDF
Introduction to jQuery
PDF
jQuery Interview Questions By ScholarHat.pdf
PPT
jQuery Introduction/ jquery basic concept
PPT
jQuery For Beginners - jQuery Conference 2009
PDF
Jquery, write less do more by weLaika
PPT
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02
PPTX
J Query The Write Less Do More Javascript Library
PPT
Jquery PPT_Finalfgfgdfgdr5tryeujkhdwappt
PPTX
Getting started with jQuery
PPTX
Web technologies-course 11.pptx
PPT
JQuery introduction
PPTX
J query resh
PDF
jQuery for beginners
KEY
Inside jQuery (2011)
PPTX
A to Z about JQuery - Become Newbie to Expert Java Developer
PPTX
Starting with jQuery
J query presentation
J query presentation
Introduction to jQuery
jQuery Interview Questions By ScholarHat.pdf
jQuery Introduction/ jquery basic concept
jQuery For Beginners - jQuery Conference 2009
Jquery, write less do more by weLaika
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02
J Query The Write Less Do More Javascript Library
Jquery PPT_Finalfgfgdfgdr5tryeujkhdwappt
Getting started with jQuery
Web technologies-course 11.pptx
JQuery introduction
J query resh
jQuery for beginners
Inside jQuery (2011)
A to Z about JQuery - Become Newbie to Expert Java Developer
Starting with jQuery
Ad

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation theory and applications.pdf
PPTX
Machine Learning_overview_presentation.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Cloud computing and distributed systems.
PPTX
A Presentation on Artificial Intelligence
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PPT
Teaching material agriculture food technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
cuic standard and advanced reporting.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Electronic commerce courselecture one. Pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation theory and applications.pdf
Machine Learning_overview_presentation.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Spectral efficient network and resource selection model in 5G networks
Digital-Transformation-Roadmap-for-Companies.pptx
Machine learning based COVID-19 study performance prediction
Assigned Numbers - 2025 - Bluetooth® Document
Cloud computing and distributed systems.
A Presentation on Artificial Intelligence
NewMind AI Weekly Chronicles - August'25-Week II
Teaching material agriculture food technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Review of recent advances in non-invasive hemoglobin estimation
cuic standard and advanced reporting.pdf
A comparative analysis of optical character recognition models for extracting...
The AUB Centre for AI in Media Proposal.docx
Electronic commerce courselecture one. Pdf

JS Libraries and jQuery Overview

  • 1. JS Libraries & jQuery overview by Aleksandr Motsjonov [email_address]
  • 2. Agenda Demo – Teaser Chapter I – JS Libraries Chapter II – What is jQuery Chapter III – Deep into the Code Demo – Full Version
  • 3. Demo – Teaser
  • 4. Chapter I – JS Libraries
  • 5. JS Libraries Reasons. Why JS Libraries in the first place? Lot of them. Question of choose . Some interesting stuff .
  • 6. Less code More free time More money left Easier to write Why JS Libraries?
  • 7. Why JS Libraries? JS Lib as cross browser abstraction layer Less headache Less bugs Less time spend More money left
  • 8. Why JS Libraries? No need to reinvent the wheel. Methods like selectByClassName All other utility methods already written (Plug-ins)
  • 9. Which one to choose? There is a lot of JS Libraries. (pull) Who uses JS libs? jQuery?
  • 10. Choose of JS Library Everyone have right to choose whatever she likes. I respect other libs and criticism about jQuery.
  • 11. Choose of JS Library Different needs – different JS libs. Working with DOM OOP Abstraction UI Toolkit Ajax framework General Purpose
  • 12. Choose of JS Library Why I choose jQuery? Honestly I’ve been starting with Prototype =) http://www.rsdn.ru/article/inet/jQuery.xml
  • 13.  
  • 14. Last things about JS libs ECMAScript 5.0 Google AJAX Libraries API http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
  • 15. Chapter II – What is jQuery Now You will know who and why need to choose jQuery.
  • 16. 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. Write less, do more. http://jquery.com/ Author : John Resig Last Release: v. 1.3.2 Size (production): 19kb
  • 17. jQuery Inside the Code Outside the Code Additional Bonuses
  • 18. What jQuery has Inside Code? DOM Manipulation Node/Attributes Modification Traversing CSS Queries A jax Simple Visual Effects Utility methods Custom Plug-ins development
  • 19. Outside code - Popularity Who Uses jQuery? Most popular sites: Google, Amazon, IBM, Twitter, Dell, NBC, BBC, Digg, Intel, Oracle, Slashdot, Technorati, SourceForge, GitHub, Science, New York Post, FeedBurner, … OpenSource projects: Mozilla, WordPress, Drupal, Trac, Joomla, Symfony, Zend Framework, PEAR, …
  • 20. Outside code - Popularity Big Community 3200 messages in Google Groups 2600 Plug-ins in central repository Countless number of tutorials and articles  Books
  • 22. Additional Bonuses - Performance
  • 23.  
  • 24. Additional Bonuses Browser Compatibility F ire f ox 2.0+ I nternet E xplorer 6.0+ S afari 3+ O pera 9+ C hrome 1+ Known Issues in (FF 1.o, IE 1-5, Safari 1-2, Opera 1-8, lynx =) jQuery Loves other Libraries =) noConflict() Don’t touch standard Objects (Object, String, itc.)
  • 25. Chapter III – Meet the jQuery Code
  • 26. Deep into the Code CSS Query D OM E vents A jax O ther
  • 27. Basics jQuery Object concept Almost everything in jQuery is jQuery Objects. Every jQuery method you call from such objects. Almost every method return jQuery object. You can make chains with it.
  • 28. $ is the Mother of jQuery $ - is shorthand for jQuery object/function – main object, which need to be called to use jQuery. $ can be called with 4 types of arguments: HTML Text. For creating new DOM element (returns jQuery object) CSS Selector. For searching and retrieving existing DOM elements. DOM element. For wrapping it with jQuery to get jQuery object. Function. Shorthand for document onDOMLoad event handler.
  • 30. CSS as Query language for DOM tree jQuery (like many other JS Libraries) uses CSS as Query language to get DOM elements. Main method to make CSS Queries is $(), but there is also methods , which arguments also CSS statement. $() could return 0 , 1 or many elements, which match CSS statement. No exceptions.
  • 31. Main methodology of jQuery Get ( Find ) some jQuery elem. Do something with it.
  • 32. CSS Support CSS 1 CSS 2 CSS 3 (subset) Custom CSS selectors
  • 33. CSS Selectors in Action Basic Hierarchy Basic Filters Content Filters Visibility Filters Attribute Filters Child Filters Forms Form Filters
  • 41. Forms
  • 43. DOM Traversing Filtering Finding Chaining
  • 44. DOM Traversing - Filtering
  • 45. DOM Traversing - Finding
  • 48. DOM Manipulation append preppend after before appendTo preppendTo insertAfter insertBefore wrap wrap All wrap Inner replaceWith replaceAll
  • 50. CSS
  • 55. Ajax Function: success, beforeSend, complete, dataFilter, error, xhr Boolean: async, cache, ifModified, processData, global String, Object: contentType, data, dataType, jsonp, password, scriptCharset, type, url, username
  • 56. Ajax
  • 57. Other Effects show(), hide(), slideDown(), fadeIn(), animate() Utilities jQuery.support, .each(), .map(), .inArray(), .unique(), .isFunction(), .isArray() .get(i), .eq(i), .index()
  • 58. Demo – Full Version