SlideShare ist ein Scribd-Unternehmen logo
1 von 15
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

Weitere ähnliche Inhalte

Was ist angesagt?

jQuery State of the Union - Yehuda Katz
jQuery State of the Union - Yehuda KatzjQuery State of the Union - Yehuda Katz
jQuery State of the Union - Yehuda KatzMarakana Inc.
 
J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012ghnash
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentationMevin Mohan
 
JsViews - Next Generation jQuery Templates
JsViews - Next Generation jQuery TemplatesJsViews - Next Generation jQuery Templates
JsViews - Next Generation jQuery TemplatesBorisMoore
 
JavaScript Library Overview (Ajax Exp West 2007)
JavaScript Library Overview (Ajax Exp West 2007)JavaScript Library Overview (Ajax Exp West 2007)
JavaScript Library Overview (Ajax Exp West 2007)jeresig
 
JavaScript and jQuery Basics
JavaScript and jQuery BasicsJavaScript and jQuery Basics
JavaScript and jQuery BasicsKaloyan Kosev
 
jQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and BlingjQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and BlingDoug Neiner
 
Harness jQuery Templates and Data Link
Harness jQuery Templates and Data LinkHarness jQuery Templates and Data Link
Harness jQuery Templates and Data LinkBorisMoore
 
Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)jeresig
 
jQuery - write less, do more javascript toolkit
jQuery - write less, do more javascript toolkit jQuery - write less, do more javascript toolkit
jQuery - write less, do more javascript toolkit Girish Venkatachalam
 

Was ist angesagt? (19)

jQuery State of the Union - Yehuda Katz
jQuery State of the Union - Yehuda KatzjQuery State of the Union - Yehuda Katz
jQuery State of the Union - Yehuda Katz
 
J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012J query b_dotnet_ug_meet_12_may_2012
J query b_dotnet_ug_meet_12_may_2012
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentation
 
JsViews - Next Generation jQuery Templates
JsViews - Next Generation jQuery TemplatesJsViews - Next Generation jQuery Templates
JsViews - Next Generation jQuery Templates
 
JavaScript Library Overview (Ajax Exp West 2007)
JavaScript Library Overview (Ajax Exp West 2007)JavaScript Library Overview (Ajax Exp West 2007)
JavaScript Library Overview (Ajax Exp West 2007)
 
JavaScript and jQuery Basics
JavaScript and jQuery BasicsJavaScript and jQuery Basics
JavaScript and jQuery Basics
 
handout-05b
handout-05bhandout-05b
handout-05b
 
jQuery
jQueryjQuery
jQuery
 
jQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and BlingjQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and Bling
 
JQuery
JQueryJQuery
JQuery
 
jQuery Introduction
jQuery IntroductionjQuery Introduction
jQuery Introduction
 
Introductory css and j query
Introductory css and j queryIntroductory css and j query
Introductory css and j query
 
Harness jQuery Templates and Data Link
Harness jQuery Templates and Data LinkHarness jQuery Templates and Data Link
Harness jQuery Templates and Data Link
 
Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)
 
HTML5 Introduction by Dhepthi L
HTML5 Introduction by Dhepthi LHTML5 Introduction by Dhepthi L
HTML5 Introduction by Dhepthi L
 
jQuery for beginners
jQuery for beginnersjQuery for beginners
jQuery for beginners
 
Jquery
JqueryJquery
Jquery
 
jQuery - write less, do more javascript toolkit
jQuery - write less, do more javascript toolkit jQuery - write less, do more javascript toolkit
jQuery - write less, do more javascript toolkit
 
J query
J queryJ query
J query
 

Andere mochten auch

Andere mochten auch (8)

jQuery Effects
jQuery EffectsjQuery Effects
jQuery Effects
 
JQuery Presentation
JQuery PresentationJQuery Presentation
JQuery Presentation
 
JQuery
JQueryJQuery
JQuery
 
Introducing jQuery
Introducing jQueryIntroducing jQuery
Introducing jQuery
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentation
 
jQuery Beginner
jQuery BeginnerjQuery Beginner
jQuery Beginner
 
jQuery presentation
jQuery presentationjQuery presentation
jQuery presentation
 
jQuery Best Practice
jQuery Best Practice jQuery Best Practice
jQuery Best Practice
 

Ähnlich wie Introduction to j query

jQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPagesjQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPagesMark Roden
 
jQuery (MeshU)
jQuery (MeshU)jQuery (MeshU)
jQuery (MeshU)jeresig
 
Starting with jQuery
Starting with jQueryStarting with jQuery
Starting with jQueryAnil Kumar
 
Jquery dojo slides
Jquery dojo slidesJquery dojo slides
Jquery dojo slideshelenmga
 
jQuery (BostonPHP)
jQuery (BostonPHP)jQuery (BostonPHP)
jQuery (BostonPHP)jeresig
 
Top 45 jQuery Interview Questions and Answers | Edureka
Top 45 jQuery Interview Questions and Answers | EdurekaTop 45 jQuery Interview Questions and Answers | Edureka
Top 45 jQuery Interview Questions and Answers | EdurekaEdureka!
 
JavaScript Library Overview
JavaScript Library OverviewJavaScript Library Overview
JavaScript Library Overviewjeresig
 
jQuery Learning
jQuery LearningjQuery Learning
jQuery LearningUzair Ali
 
jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)jeresig
 
J Query(04 12 2008) Foiaz
J Query(04 12 2008) FoiazJ Query(04 12 2008) Foiaz
J Query(04 12 2008) Foiaztestingphase
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQueryAlek Davis
 
Game jump: frontend introduction #1
Game jump: frontend introduction #1Game jump: frontend introduction #1
Game jump: frontend introduction #1Sebastian Pożoga
 

Ähnlich wie Introduction to j query (20)

jQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPagesjQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPages
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
jQuery (MeshU)
jQuery (MeshU)jQuery (MeshU)
jQuery (MeshU)
 
jQuery in 15 minutes
jQuery in 15 minutesjQuery in 15 minutes
jQuery in 15 minutes
 
Starting with jQuery
Starting with jQueryStarting with jQuery
Starting with jQuery
 
Jquery
JqueryJquery
Jquery
 
Jquery
JqueryJquery
Jquery
 
Jquery dojo slides
Jquery dojo slidesJquery dojo slides
Jquery dojo slides
 
22 j query1
22 j query122 j query1
22 j query1
 
jQuery (BostonPHP)
jQuery (BostonPHP)jQuery (BostonPHP)
jQuery (BostonPHP)
 
J query1
J query1J query1
J query1
 
Top 45 jQuery Interview Questions and Answers | Edureka
Top 45 jQuery Interview Questions and Answers | EdurekaTop 45 jQuery Interview Questions and Answers | Edureka
Top 45 jQuery Interview Questions and Answers | Edureka
 
JavaScript Library Overview
JavaScript Library OverviewJavaScript Library Overview
JavaScript Library Overview
 
jQuery Learning
jQuery LearningjQuery Learning
jQuery Learning
 
jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)jQuery (DrupalCamp Toronto)
jQuery (DrupalCamp Toronto)
 
J Query(04 12 2008) Foiaz
J Query(04 12 2008) FoiazJ Query(04 12 2008) Foiaz
J Query(04 12 2008) Foiaz
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
JQuery Overview
JQuery OverviewJQuery Overview
JQuery Overview
 
Game jump: frontend introduction #1
Game jump: frontend introduction #1Game jump: frontend introduction #1
Game jump: frontend introduction #1
 
Jquery News Packages
Jquery News PackagesJquery News Packages
Jquery News Packages
 

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