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
PPSX
JQuery Comprehensive Overview
PPT
J query intro_29thsep_alok
PDF
State of jQuery and Drupal
PDF
Introduction to jQuery (Ajax Exp 2007)
PDF
Advanced jQuery (Ajax Exp 2007)
PDF
jQuery in the [Aol.] Enterprise
Introduction to j_query
JQuery Comprehensive Overview
J query intro_29thsep_alok
State of jQuery and Drupal
Introduction to jQuery (Ajax Exp 2007)
Advanced jQuery (Ajax Exp 2007)
jQuery in the [Aol.] Enterprise

What's hot (19)

PDF
jQuery State of the Union - Yehuda Katz
PPT
J query b_dotnet_ug_meet_12_may_2012
PDF
Jquery presentation
PPTX
JsViews - Next Generation jQuery Templates
PDF
JavaScript Library Overview (Ajax Exp West 2007)
PPTX
JavaScript and jQuery Basics
PDF
handout-05b
PPTX
PDF
jQuery: Nuts, Bolts and Bling
PPTX
JQuery
PDF
jQuery Introduction
PPTX
Harness jQuery Templates and Data Link
PDF
Introduction to jQuery (Ajax Exp 2006)
PPT
HTML5 Introduction by Dhepthi L
PDF
jQuery for beginners
PDF
jQuery - write less, do more javascript toolkit
PPTX
J query
jQuery State of the Union - Yehuda Katz
J query b_dotnet_ug_meet_12_may_2012
Jquery presentation
JsViews - Next Generation jQuery Templates
JavaScript Library Overview (Ajax Exp West 2007)
JavaScript and jQuery Basics
handout-05b
jQuery: Nuts, Bolts and Bling
JQuery
jQuery Introduction
Harness jQuery Templates and Data Link
Introduction to jQuery (Ajax Exp 2006)
HTML5 Introduction by Dhepthi L
jQuery for beginners
jQuery - write less, do more javascript toolkit
J query
Ad

Viewers also liked (8)

PDF
jQuery Effects
PPTX
JQuery Presentation
PPTX
JQuery
PDF
Introducing jQuery
PPT
Jquery presentation
PPT
jQuery Beginner
PPTX
jQuery presentation
PPTX
jQuery Best Practice
jQuery Effects
JQuery Presentation
JQuery
Introducing jQuery
Jquery presentation
jQuery Beginner
jQuery presentation
jQuery Best Practice
Ad

Similar to Introduction to j query (20)

PPT
J query presentation
PPT
J query presentation
PPT
jQuery For Beginners - jQuery Conference 2009
PDF
Introduction to jQuery
PPT
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02
PPTX
J Query The Write Less Do More Javascript Library
PPTX
Getting started with jQuery
PPTX
Getting Started with jQuery
PPT
jQuery Introduction/ jquery basic concept
PPT
Jquery PPT_Finalfgfgdfgdr5tryeujkhdwappt
PDF
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
PPTX
jQuery - the world's most popular java script library comes to XPages
PPT
JQuery introduction
PPTX
Web technologies-course 11.pptx
PPTX
Upstate CSCI 450 jQuery
PPT
JS Libraries and jQuery Overview
PPTX
A Rich Web experience with jQuery, Ajax and .NET
PPTX
JQuery_and_Ajax.pptx
PPT
Intro to jQuery - Tulsa Ruby Group
J query presentation
J query presentation
jQuery For Beginners - jQuery Conference 2009
Introduction to jQuery
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02
J Query The Write Less Do More Javascript Library
Getting started with jQuery
Getting Started with jQuery
jQuery Introduction/ jquery basic concept
Jquery PPT_Finalfgfgdfgdr5tryeujkhdwappt
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery - the world's most popular java script library comes to XPages
JQuery introduction
Web technologies-course 11.pptx
Upstate CSCI 450 jQuery
JS Libraries and jQuery Overview
A Rich Web experience with jQuery, Ajax and .NET
JQuery_and_Ajax.pptx
Intro to jQuery - Tulsa Ruby Group

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