SlideShare a Scribd company logo
Introduction
                                              to
                                           jQuery




                                                                      Presented by:
                                                                       Rashid Azar
                            © 2005 KPIT Cummins Infosystems Limited


We value our relationship
Agenda

What is jQuery?

Extenting jQuery – Understanding Plugins

How jQuery works

Get jQuery on your page

Walk through a real world example




2     December 18, 2012                     Presented By: Rashid Azar
What is jQuery?

jQuery is JavaScript




3     December 18, 2012   Presented By: Rashid Azar
What is jQuery?

With javascript show a hidden element

       if (browserType == "gecko" )
                         document.poppedLayer =
                         eval('document.getElementById(”HiddenDIV")');
       else if (browserType == "ie")
                         document.poppedLayer =
                         eval('document.getElementById(”HiddenDIV")');
       else
                 document.poppedLayer =
                         eval('document.layers[”HiddenDIV"]');
document.poppedLayer.style.visibility = "visible";




4     December 18, 2012                                        Presented By: Rashid Azar
What is jQuery?

Show a hidden DIV using jQuery

       $(“#hiddenDIV”).show()




5    December 18, 2012            Presented By: Rashid Azar
What is jQuery?

jQuery is JavaScript

It is a light weight library

Easy and fast HTML DOM selection

Built to work on all modern browsers
 (IE6+, FF 2.0+, Safari 3.0+, Opera 9+, Chrome 1.0+)

It is Open Source




6     December 18, 2012                                Presented By: Rashid Azar
Benefits of jQuery?

jQuery is Extensible
    Thousands of plugins available
    Create/release your own plugin


jQuery works with other libraries
    Dojo
    Prototype
    Mootools




7      December 18, 2012              Presented By: Rashid Azar
Who is using jQuery?

Google

Amazon

IBM

Microsoft

Twitter

Dell




8       December 18, 2012   Presented By: Rashid Azar
Setting up jQuery?

Include jQuery on the page
    Download latest from jQuery.com
    <script src="jquery-1.9.2.min.js" type="text/javascript></script>


Include the latest from Google AJAX Libraries API
    <script
    src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.2/jquery.min.js"
    type="text/javascript"></script>




9       December 18, 2012                                                Presented By: Rashid Azar
Setting up jQuery?

Set jQuery to run when the DOM is loaded

     $(document).ready(function(){
             //put your jQuery code here.
         });




10        December 18, 2012                 Presented By: Rashid Azar
Setting up jQuery?




                         $(“div”).show();




11   December 18, 2012                      Presented By: Rashid Azar
Setting up jQuery?



                    $(“div”)
               $(“div#intro h2”)
            $(“div.section > child”)
     $(“a[href=‘http://www.jquery.com’]”)
               $(“ul#nav li:first”)




12     December 18, 2012            Presented By: Rashid Azar
How jQuery is structured?

Core
     .each(), .length(), .eq(), .get(), .index()
Selectors
     #id, .class, element, :first, [attribute=value]
Attributes
     .removeAttr(), .addClass(), .hasClass(), .toggleClass(), .html()
Traversing
     .not(), .add (), .children(), .next(), .siblings()
Manipulation
     .append(), .after(), .wrap(), .replaceWith(), .empty()
CSS
     .width(), .innerHeight(), .height(), .outerHeight(), .css()




13       December 18, 2012                                              Presented By: Rashid Azar
How jQuery is structured?

Events
     .ready(), .hover(), .toggle(), .blur(), .mouseout()
AJAX
     .ajax(), .load(), .getJSON(), .get(), .post()
Effects
     .hide(), .show(), .toggle(), .slideUp(), .slideDown()




14      December 18, 2012                                    Presented By: Rashid Azar
Thank You




15   December 18, 2012               Presented By: Rashid Azar

More Related Content

PPTX
Introduction to j_query
Basavaraj Hampali
 
PPSX
JQuery Comprehensive Overview
Mohamed Loey
 
PPT
J query intro_29thsep_alok
SPRITLE SOFTWARE PRIVATE LIMIT ED
 
PDF
State of jQuery and Drupal
jeresig
 
PDF
Introduction to jQuery (Ajax Exp 2007)
jeresig
 
PDF
Advanced jQuery (Ajax Exp 2007)
jeresig
 
PDF
jQuery in the [Aol.] Enterprise
Dave Artz
 
Introduction to j_query
Basavaraj Hampali
 
JQuery Comprehensive Overview
Mohamed Loey
 
J query intro_29thsep_alok
SPRITLE SOFTWARE PRIVATE LIMIT ED
 
State of jQuery and Drupal
jeresig
 
Introduction to jQuery (Ajax Exp 2007)
jeresig
 
Advanced jQuery (Ajax Exp 2007)
jeresig
 
jQuery in the [Aol.] Enterprise
Dave Artz
 

What's hot (19)

PDF
jQuery State of the Union - Yehuda Katz
Marakana Inc.
 
PPT
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
PDF
Jquery presentation
Mevin Mohan
 
PPTX
JsViews - Next Generation jQuery Templates
BorisMoore
 
PDF
JavaScript Library Overview (Ajax Exp West 2007)
jeresig
 
PPTX
JavaScript and jQuery Basics
Kaloyan Kosev
 
PDF
handout-05b
tutorialsruby
 
PPTX
jQuery
Dileep Mishra
 
PDF
jQuery: Nuts, Bolts and Bling
Doug Neiner
 
PPTX
JQuery
Jacob Nelson
 
PDF
jQuery Introduction
Arwid Bancewicz
 
PPTX
Harness jQuery Templates and Data Link
BorisMoore
 
PDF
Introduction to jQuery (Ajax Exp 2006)
jeresig
 
PPT
HTML5 Introduction by Dhepthi L
SPRITLE SOFTWARE PRIVATE LIMIT ED
 
PDF
jQuery for beginners
Siva Arunachalam
 
PDF
jQuery - write less, do more javascript toolkit
Girish Venkatachalam
 
PPTX
J query
David Giard
 
jQuery State of the Union - Yehuda Katz
Marakana Inc.
 
J query b_dotnet_ug_meet_12_may_2012
ghnash
 
Jquery presentation
Mevin Mohan
 
JsViews - Next Generation jQuery Templates
BorisMoore
 
JavaScript Library Overview (Ajax Exp West 2007)
jeresig
 
JavaScript and jQuery Basics
Kaloyan Kosev
 
handout-05b
tutorialsruby
 
jQuery: Nuts, Bolts and Bling
Doug Neiner
 
JQuery
Jacob Nelson
 
jQuery Introduction
Arwid Bancewicz
 
Harness jQuery Templates and Data Link
BorisMoore
 
Introduction to jQuery (Ajax Exp 2006)
jeresig
 
HTML5 Introduction by Dhepthi L
SPRITLE SOFTWARE PRIVATE LIMIT ED
 
jQuery for beginners
Siva Arunachalam
 
jQuery - write less, do more javascript toolkit
Girish Venkatachalam
 
J query
David Giard
 
Ad

Viewers also liked (8)

PDF
jQuery Effects
Adelon Zeta
 
PPTX
JQuery Presentation
Sony Jain
 
PPTX
JQuery
Rahul Jain
 
PDF
Introducing jQuery
Wildan Maulana
 
PPT
Jquery presentation
Narendra Dabhi
 
PPT
jQuery Beginner
kumar gaurav
 
PPTX
jQuery presentation
Mahesh Reddy
 
PPTX
jQuery Best Practice
chandrashekher786
 
jQuery Effects
Adelon Zeta
 
JQuery Presentation
Sony Jain
 
JQuery
Rahul Jain
 
Introducing jQuery
Wildan Maulana
 
Jquery presentation
Narendra Dabhi
 
jQuery Beginner
kumar gaurav
 
jQuery presentation
Mahesh Reddy
 
jQuery Best Practice
chandrashekher786
 
Ad

Similar to Introduction to j query (20)

PPTX
jQuery - the world's most popular java script library comes to XPages
Mark Roden
 
PDF
Introduction to jQuery
Nagaraju Sangam
 
PDF
jQuery (MeshU)
jeresig
 
PDF
jQuery in 15 minutes
Simon Willison
 
PPTX
Starting with jQuery
Anil Kumar
 
PPTX
Jquery
PaRa Vaishnav
 
PPT
Jquery
adm_exoplatform
 
PPTX
Jquery dojo slides
helenmga
 
PDF
22 j query1
Fajar Baskoro
 
PDF
jQuery (BostonPHP)
jeresig
 
PPTX
J query1
Manav Prasad
 
PDF
Top 45 jQuery Interview Questions and Answers | Edureka
Edureka!
 
PDF
JavaScript Library Overview
jeresig
 
PPT
jQuery Learning
Uzair Ali
 
PDF
jQuery (DrupalCamp Toronto)
jeresig
 
PPT
J Query(04 12 2008) Foiaz
testingphase
 
PPTX
Introduction to jQuery
Alek Davis
 
PPTX
JQuery Overview
Mahmoud Tolba
 
PDF
Game jump: frontend introduction #1
Sebastian Pożoga
 
PPT
Jquery PPT_Finalfgfgdfgdr5tryeujkhdwappt
shubhangimalas1
 
jQuery - the world's most popular java script library comes to XPages
Mark Roden
 
Introduction to jQuery
Nagaraju Sangam
 
jQuery (MeshU)
jeresig
 
jQuery in 15 minutes
Simon Willison
 
Starting with jQuery
Anil Kumar
 
Jquery dojo slides
helenmga
 
22 j query1
Fajar Baskoro
 
jQuery (BostonPHP)
jeresig
 
J query1
Manav Prasad
 
Top 45 jQuery Interview Questions and Answers | Edureka
Edureka!
 
JavaScript Library Overview
jeresig
 
jQuery Learning
Uzair Ali
 
jQuery (DrupalCamp Toronto)
jeresig
 
J Query(04 12 2008) Foiaz
testingphase
 
Introduction to jQuery
Alek Davis
 
JQuery Overview
Mahmoud Tolba
 
Game jump: frontend introduction #1
Sebastian Pożoga
 
Jquery PPT_Finalfgfgdfgdr5tryeujkhdwappt
shubhangimalas1
 

Introduction to j query

  • 1. Introduction to jQuery Presented by: Rashid Azar © 2005 KPIT Cummins Infosystems Limited We value our relationship
  • 2. Agenda What is jQuery? Extenting jQuery – Understanding Plugins How jQuery works Get jQuery on your page Walk through a real world example 2 December 18, 2012 Presented By: Rashid Azar
  • 3. What is jQuery? jQuery is JavaScript 3 December 18, 2012 Presented By: Rashid Azar
  • 4. What is jQuery? With javascript show a hidden element if (browserType == "gecko" ) document.poppedLayer = eval('document.getElementById(”HiddenDIV")'); else if (browserType == "ie") document.poppedLayer = eval('document.getElementById(”HiddenDIV")'); else document.poppedLayer = eval('document.layers[”HiddenDIV"]'); document.poppedLayer.style.visibility = "visible"; 4 December 18, 2012 Presented By: Rashid Azar
  • 5. What is jQuery? Show a hidden DIV using jQuery $(“#hiddenDIV”).show() 5 December 18, 2012 Presented By: Rashid Azar
  • 6. What is jQuery? jQuery is JavaScript It is a light weight library Easy and fast HTML DOM selection Built to work on all modern browsers (IE6+, FF 2.0+, Safari 3.0+, Opera 9+, Chrome 1.0+) It is Open Source 6 December 18, 2012 Presented By: Rashid Azar
  • 7. Benefits of jQuery? jQuery is Extensible Thousands of plugins available Create/release your own plugin jQuery works with other libraries Dojo Prototype Mootools 7 December 18, 2012 Presented By: Rashid Azar
  • 8. Who is using jQuery? Google Amazon IBM Microsoft Twitter Dell 8 December 18, 2012 Presented By: Rashid Azar
  • 9. Setting up jQuery? Include jQuery on the page Download latest from jQuery.com <script src="jquery-1.9.2.min.js" type="text/javascript></script> Include the latest from Google AJAX Libraries API <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.2/jquery.min.js" type="text/javascript"></script> 9 December 18, 2012 Presented By: Rashid Azar
  • 10. Setting up jQuery? Set jQuery to run when the DOM is loaded $(document).ready(function(){         //put your jQuery code here.     }); 10 December 18, 2012 Presented By: Rashid Azar
  • 11. Setting up jQuery? $(“div”).show(); 11 December 18, 2012 Presented By: Rashid Azar
  • 12. Setting up jQuery? $(“div”) $(“div#intro h2”) $(“div.section > child”) $(“a[href=‘http://www.jquery.com’]”) $(“ul#nav li:first”) 12 December 18, 2012 Presented By: Rashid Azar
  • 13. How jQuery is structured? Core .each(), .length(), .eq(), .get(), .index() Selectors #id, .class, element, :first, [attribute=value] Attributes .removeAttr(), .addClass(), .hasClass(), .toggleClass(), .html() Traversing .not(), .add (), .children(), .next(), .siblings() Manipulation .append(), .after(), .wrap(), .replaceWith(), .empty() CSS .width(), .innerHeight(), .height(), .outerHeight(), .css() 13 December 18, 2012 Presented By: Rashid Azar
  • 14. How jQuery is structured? Events .ready(), .hover(), .toggle(), .blur(), .mouseout() AJAX .ajax(), .load(), .getJSON(), .get(), .post() Effects .hide(), .show(), .toggle(), .slideUp(), .slideDown() 14 December 18, 2012 Presented By: Rashid Azar
  • 15. Thank You 15 December 18, 2012 Presented By: Rashid Azar