SlideShare ist ein Scribd-Unternehmen logo
1 von 56
Downloaden Sie, um offline zu lesen
Introduction to jQuery
    Write less, do more!


    Girish Venkatachalam
            Chennai
      girish1729@gmail.com

     December 8, 2007
Basic web interface architecture




                                      Figure: basic building blocks


        HTML provides content



Girish Venkatachalam (entrepreneur)          Introduction to jQuery   December 8, 2007   2 / 22
Basic web interface architecture




                                      Figure: basic building blocks


        HTML provides content
        CSS provides appearance, placement and layout


Girish Venkatachalam (entrepreneur)          Introduction to jQuery   December 8, 2007   2 / 22
Basic web interface architecture




                                      Figure: basic building blocks


        HTML provides content
        CSS provides appearance, placement and layout
        Javascript provides dynamism and defines behavior
Girish Venkatachalam (entrepreneur)          Introduction to jQuery   December 8, 2007   2 / 22
html tree structure




        Every html node forms part of a tree with html as root node




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   3 / 22
html tree structure




        Every html node forms part of a tree with html as root node
        You can traverse the tree easily since it has a fixed structure



Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   3 / 22
html tree structure




        Every html node forms part of a tree with html as root node
        You can traverse the tree easily since it has a fixed structure
        Every node has attributes and optionally child nodes


Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   3 / 22
A simple html example

<html>
  <head>
      <title> A simple example </title>
  </head>
  <body>
      <h1 align=quot;centerquot;> Hello world html </h1>
      <p> How are you? </p>
  </body>
</html>

        Fundamental building block of all web apps




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   5 / 22
A simple html example

<html>
  <head>
      <title> A simple example </title>
  </head>
  <body>
      <h1 align=quot;centerquot;> Hello world html </h1>
      <p> How are you? </p>
  </body>
</html>

        Fundamental building block of all web apps
        Javascript to manipulate DOM elements


Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   5 / 22
A simple html example

<html>
  <head>
      <title> A simple example </title>
  </head>
  <body>
      <h1 align=quot;centerquot;> Hello world html </h1>
      <p> How are you? </p>
  </body>
</html>

        Fundamental building block of all web apps
        Javascript to manipulate DOM elements
        Cascading style sheets (CSS) for appearance

Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   5 / 22
A simple html example

<html>
  <head>
      <title> A simple example </title>
  </head>
  <body>
      <h1 align=quot;centerquot;> Hello world html </h1>
      <p> How are you? </p>
  </body>
</html>

     Fundamental building block of all web apps
     Javascript to manipulate DOM elements
     Cascading style sheets (CSS) for appearance
 Learning html is a must before we do web programming!
Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   5 / 22
What is CSS?




       html supplies the content



Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   6 / 22
What is CSS?




                                                           CSS determines the beauty

       html supplies the content



Girish Venkatachalam (entrepreneur)   Introduction to jQuery           December 8, 2007   6 / 22
What is CSS?




                                                           CSS determines the beauty

       html supplies the content

        What remains?
Girish Venkatachalam (entrepreneur)   Introduction to jQuery           December 8, 2007   6 / 22
Intro to javascript




What about the behavior?


Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   7 / 22
Intro to javascript




What about the behavior?
That is where a programming language like javascript comes in.
Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   7 / 22
Document Object Model




What is the role of DOM in web programming?


        Animations


Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   8 / 22
Document Object Model




What is the role of DOM in web programming?


        Animations
        jQuery does a marvelous job of DOM manipulations
Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   8 / 22
jQuery fundament




        Tiniest js/AJAX toolkit around




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   9 / 22
jQuery fundament




        Tiniest js/AJAX toolkit around
        Very very very powerful




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   9 / 22
jQuery fundament




        Tiniest js/AJAX toolkit around
        Very very very powerful
        Extremely well maintained with 100s of plugins




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   9 / 22
jQuery fundament




        Tiniest js/AJAX toolkit around
        Very very very powerful
        Extremely well maintained with 100s of plugins
        Abstracts out portability issues and javascript gunk



Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   9 / 22
A jQuery code sample


$(document).ready(function() {
    $(’a’).hover(function() {
        $(this).hide(’slow’);
    });
});


        Neat eh?




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   11 / 22
A jQuery code sample


$(document).ready(function() {
    $(’a’).hover(function() {
        $(this).hide(’slow’);
    });
});


        Neat eh?
        This is all it takes for an animation using jQuery




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   11 / 22
A jQuery code sample


$(document).ready(function() {
    $(’a’).hover(function() {
        $(this).hide(’slow’);
    });
});


        Neat eh?
        This is all it takes for an animation using jQuery
        You have to add it between the ’script’ tag you always use for
        javascript


Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   11 / 22
A jQuery code sample


$(document).ready(function() {
    $(’a’).hover(function() {
        $(this).hide(’slow’);
    });
});


        Neat eh?
        This is all it takes for an animation using jQuery
        You have to add it between the ’script’ tag you always use for
        javascript
        After all jQuery is also javascript

Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   11 / 22
A jQuery code sample


$(document).ready(function() {
    $(’a’).hover(function() {
        $(this).hide(’slow’);
    });
});


        Neat eh?
        This is all it takes for an animation using jQuery
        You have to add it between the ’script’ tag you always use for
        javascript
        After all jQuery is also javascript
        Without its disadvantages and ugliness. . .
Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   11 / 22
Another jQuery sample

$(document).ready(function (){
       $(’a’).hover(function (){
           $(this).hide(’slow’);
        },function(){
           $(this).show(’fast’);
    });
});


        This sample builds on the previous example




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   13 / 22
Another jQuery sample

$(document).ready(function (){
       $(’a’).hover(function (){
           $(this).hide(’slow’);
        },function(){
           $(this).show(’fast’);
    });
});


        This sample builds on the previous example
        This is all it takes for an animation using jQuery (once again)



Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   13 / 22
Another jQuery sample

$(document).ready(function (){
       $(’a’).hover(function (){
           $(this).hide(’slow’);
        },function(){
           $(this).show(’fast’);
    });
});


        This sample builds on the previous example
        This is all it takes for an animation using jQuery (once again)
        But it is not just animations. . .


Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   13 / 22
Exploring jQuery

jQuery’s power comes from its powerful selectors, easy DOM and
CSS manipulations, mouse and keyboard event handling and excellent
support for AJAX programming.




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   14 / 22
Exploring jQuery

jQuery’s power comes from its powerful selectors, easy DOM and
CSS manipulations, mouse and keyboard event handling and excellent
support for AJAX programming.

        John Resig achieved something revolutionary by leaving out the
        inessentials and keeping things small




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   14 / 22
Exploring jQuery

jQuery’s power comes from its powerful selectors, easy DOM and
CSS manipulations, mouse and keyboard event handling and excellent
support for AJAX programming.

        John Resig achieved something revolutionary by leaving out the
        inessentials and keeping things small
        This has led to a subculture of jQuery plugins - extensions are
        available for nearly every web design task you can think of




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   14 / 22
Exploring jQuery

jQuery’s power comes from its powerful selectors, easy DOM and
CSS manipulations, mouse and keyboard event handling and excellent
support for AJAX programming.

        John Resig achieved something revolutionary by leaving out the
        inessentials and keeping things small
        This has led to a subculture of jQuery plugins - extensions are
        available for nearly every web design task you can think of
        We shall take a peek at some of the extensions




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   14 / 22
jQuery plugins

       jScrollPane




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   15 / 22
jQuery plugins

       jScrollPane
       Field plugin




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   15 / 22
jQuery plugins

       jScrollPane
       Field plugin
       Extra selectors




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   15 / 22
jQuery plugins

       jScrollPane
       Field plugin
       Extra selectors
       Visual jQuery




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   15 / 22
jQuery plugins

       jScrollPane
       Field plugin
       Extra selectors
       Visual jQuery
       Cycle plugin




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   15 / 22
jQuery plugins

       jScrollPane
       Field plugin
       Extra selectors
       Visual jQuery
       Cycle plugin
       jqPuzzle




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   15 / 22
jQuery plugins

       jScrollPane
       Field plugin
       Extra selectors
       Visual jQuery
       Cycle plugin
       jqPuzzle
       jTip for balloon tips (tooltip)




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   15 / 22
jQuery plugins

       jScrollPane
       Field plugin
       Extra selectors
       Visual jQuery
       Cycle plugin
       jqPuzzle
       jTip for balloon tips (tooltip)
       Impromptu




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   15 / 22
jQuery plugins

       jScrollPane                                         Embed videos (You can
       Field plugin                                        watch mpeg videos )
       Extra selectors
       Visual jQuery
       Cycle plugin
       jqPuzzle
       jTip for balloon tips (tooltip)
       Impromptu




Girish Venkatachalam (entrepreneur)   Introduction to jQuery          December 8, 2007   15 / 22
jQuery plugins

       jScrollPane                                         Embed videos (You can
       Field plugin                                        watch mpeg videos )
       Extra selectors                                     Datepicker plugin
       Visual jQuery
       Cycle plugin
       jqPuzzle
       jTip for balloon tips (tooltip)
       Impromptu




Girish Venkatachalam (entrepreneur)   Introduction to jQuery          December 8, 2007   15 / 22
jQuery plugins

       jScrollPane                                         Embed videos (You can
       Field plugin                                        watch mpeg videos )
       Extra selectors                                     Datepicker plugin
       Visual jQuery                                       UI for drag and drop
       Cycle plugin
       jqPuzzle
       jTip for balloon tips (tooltip)
       Impromptu




Girish Venkatachalam (entrepreneur)   Introduction to jQuery          December 8, 2007   15 / 22
jQuery plugins

       jScrollPane                                         Embed videos (You can
       Field plugin                                        watch mpeg videos )
       Extra selectors                                     Datepicker plugin
       Visual jQuery                                       UI for drag and drop
       Cycle plugin                                        Confirm plugin
       jqPuzzle
       jTip for balloon tips (tooltip)
       Impromptu




Girish Venkatachalam (entrepreneur)   Introduction to jQuery          December 8, 2007   15 / 22
jQuery plugins

       jScrollPane                                         Embed videos (You can
       Field plugin                                        watch mpeg videos )
       Extra selectors                                     Datepicker plugin
       Visual jQuery                                       UI for drag and drop
       Cycle plugin                                        Confirm plugin
       jqPuzzle                                            Form handing
       jTip for balloon tips (tooltip)
       Impromptu




Girish Venkatachalam (entrepreneur)   Introduction to jQuery          December 8, 2007   15 / 22
jQuery plugins

       jScrollPane                                         Embed videos (You can
       Field plugin                                        watch mpeg videos )
       Extra selectors                                     Datepicker plugin
       Visual jQuery                                       UI for drag and drop
       Cycle plugin                                        Confirm plugin
       jqPuzzle                                            Form handing
       jTip for balloon tips (tooltip)                     Keyboard shortcut handling
       Impromptu




Girish Venkatachalam (entrepreneur)   Introduction to jQuery           December 8, 2007   15 / 22
jQuery plugins

       jScrollPane                                         Embed videos (You can
       Field plugin                                        watch mpeg videos )
       Extra selectors                                     Datepicker plugin
       Visual jQuery                                       UI for drag and drop
       Cycle plugin                                        Confirm plugin
       jqPuzzle                                            Form handing
       jTip for balloon tips (tooltip)                     Keyboard shortcut handling
       Impromptu                                           And much much more...




Girish Venkatachalam (entrepreneur)   Introduction to jQuery           December 8, 2007   15 / 22
Advanced jQuery I




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   16 / 22
Advanced jQuery I

jQuery can work with AJAX and other javascript libraries seamlessly




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   16 / 22
Advanced jQuery I

jQuery can work with AJAX and other javascript libraries seamlessly

jQuery can obviate the need for using javascript directly for most
common web app/UI development needs.




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   16 / 22
Advanced jQuery II

$(document).ready(function() {
   $(quot;#ratingquot;).append(quot;Please rate: quot;);
   for ( var i = 1; i <= 5; i++ )
     $(quot;#ratingquot;).append(quot;<a href=’#’>quot; + i + quot;</a> quot;);
   $(quot;#rating aquot;).click(function(e){
   $.post(quot;rate.phpquot;, {rating: $(this).html()},
           function(xml) { $(quot;#ratingquot;).html(
         quot;Thanks for rating, current average: quot; +
         $(quot;averagequot;, xml).text() +
         quot;, number of votes: quot; +
         $(quot;countquot;, xml).text()
       ); });
     return false; }); });

Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   18 / 22
Further study

More selectors and advanced use is gained by experience

$(’#fooid’).onblur();

$(’.fooclass’).onmousever();

$(’div#fooid’).find();

$(’h1’).css(’text-transform’,’underline’);

$(’div’).addClass(’colorful’);




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   20 / 22
Further study

More selectors and advanced use is gained by experience

$(’#fooid’).onblur();

$(’.fooclass’).onmousever();

$(’div#fooid’).find();

$(’h1’).css(’text-transform’,’underline’);

$(’div’).addClass(’colorful’);



Possibilities are endless!
Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   20 / 22
Questions?

Discussion and questions?
        http://jquery.com
    1


        http://visualjquery.com
    2


        http://www.alistapart.com
    3


        http://www.csszengarden.com
    4




Girish Venkatachalam (entrepreneur)   Introduction to jQuery   December 8, 2007   22 / 22

Weitere ähnliche Inhalte

Was ist angesagt?

J Query(04 12 2008) Foiaz
J Query(04 12 2008) FoiazJ Query(04 12 2008) Foiaz
J Query(04 12 2008) Foiaztestingphase
 
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.
 
Getting the Most Out of jQuery Widgets
Getting the Most Out of jQuery WidgetsGetting the Most Out of jQuery Widgets
Getting the Most Out of jQuery Widgetsvelveeta_512
 
Lesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayLesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayCodecademy Ren
 
Lesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayLesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayCodecademy Ren
 
jQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and BlingjQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and BlingDoug Neiner
 
Reactive Type-safe WebComponents
Reactive Type-safe WebComponentsReactive Type-safe WebComponents
Reactive Type-safe WebComponentsMartin Hochel
 
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
How I Learned to Stop Worrying and Love jQuery (Jan 2013)How I Learned to Stop Worrying and Love jQuery (Jan 2013)
How I Learned to Stop Worrying and Love jQuery (Jan 2013)David Giard
 
Harness jQuery Templates and Data Link
Harness jQuery Templates and Data LinkHarness jQuery Templates and Data Link
Harness jQuery Templates and Data LinkBorisMoore
 
Why and How to Use Virtual DOM
Why and How to Use Virtual DOMWhy and How to Use Virtual DOM
Why and How to Use Virtual DOMDaiwei Lu
 
Write Less Do More
Write Less Do MoreWrite Less Do More
Write Less Do MoreRemy Sharp
 
Html dom & j query
Html dom & j queryHtml dom & j query
Html dom & j queryhafeez1216
 
jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009Remy Sharp
 
Organizing Code with JavascriptMVC
Organizing Code with JavascriptMVCOrganizing Code with JavascriptMVC
Organizing Code with JavascriptMVCThomas Reynolds
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQueryZeeshan Khan
 

Was ist angesagt? (20)

J Query(04 12 2008) Foiaz
J Query(04 12 2008) FoiazJ Query(04 12 2008) Foiaz
J Query(04 12 2008) Foiaz
 
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 intro_29thsep_alok
J query intro_29thsep_alokJ query intro_29thsep_alok
J query intro_29thsep_alok
 
Getting the Most Out of jQuery Widgets
Getting the Most Out of jQuery WidgetsGetting the Most Out of jQuery Widgets
Getting the Most Out of jQuery Widgets
 
Lesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ayLesson 203 18 sep13-1500-ay
Lesson 203 18 sep13-1500-ay
 
The jQuery Library
The  jQuery LibraryThe  jQuery Library
The jQuery Library
 
Lesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ayLesson 202 02 oct13-1800-ay
Lesson 202 02 oct13-1800-ay
 
jQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and BlingjQuery: Nuts, Bolts and Bling
jQuery: Nuts, Bolts and Bling
 
Reactive Type-safe WebComponents
Reactive Type-safe WebComponentsReactive Type-safe WebComponents
Reactive Type-safe WebComponents
 
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
How I Learned to Stop Worrying and Love jQuery (Jan 2013)How I Learned to Stop Worrying and Love jQuery (Jan 2013)
How I Learned to Stop Worrying and Love jQuery (Jan 2013)
 
Framework dead
Framework deadFramework dead
Framework dead
 
Harness jQuery Templates and Data Link
Harness jQuery Templates and Data LinkHarness jQuery Templates and Data Link
Harness jQuery Templates and Data Link
 
Why and How to Use Virtual DOM
Why and How to Use Virtual DOMWhy and How to Use Virtual DOM
Why and How to Use Virtual DOM
 
Write Less Do More
Write Less Do MoreWrite Less Do More
Write Less Do More
 
Html dom & j query
Html dom & j queryHtml dom & j query
Html dom & j query
 
Jquery
JqueryJquery
Jquery
 
jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009
 
Organizing Code with JavascriptMVC
Organizing Code with JavascriptMVCOrganizing Code with JavascriptMVC
Organizing Code with JavascriptMVC
 
J query
J queryJ query
J query
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 

Ähnlich wie jQuery - write less, do more javascript toolkit

Starting with jQuery
Starting with jQueryStarting with jQuery
Starting with jQueryAnil Kumar
 
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
Jquery Jquery
Jquery eginni
 
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiJ Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiMuhammad Ehtisham Siddiqui
 
jQuery Fundamentals
jQuery FundamentalsjQuery Fundamentals
jQuery FundamentalsGil Fink
 
J query presentation
J query presentationJ query presentation
J query presentationakanksha17
 
J query presentation
J query presentationJ query presentation
J query presentationsawarkar17
 
jQuery and_drupal
jQuery and_drupaljQuery and_drupal
jQuery and_drupalBlackCatWeb
 
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsJquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsEPAM Systems
 
jQuery (MeshU)
jQuery (MeshU)jQuery (MeshU)
jQuery (MeshU)jeresig
 
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02careersblog
 

Ähnlich wie jQuery - write less, do more javascript toolkit (20)

jQuery Intro
jQuery IntrojQuery Intro
jQuery Intro
 
jQuery
jQueryjQuery
jQuery
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
Starting with jQuery
Starting with jQueryStarting with jQuery
Starting with jQuery
 
jQuery
jQueryjQuery
jQuery
 
Jquery
JqueryJquery
Jquery
 
Jquery 2
Jquery 2Jquery 2
Jquery 2
 
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
 
Jquery
Jquery Jquery
Jquery
 
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham SiddiquiJ Query (Complete Course) by Muhammad Ehtisham Siddiqui
J Query (Complete Course) by Muhammad Ehtisham Siddiqui
 
jQuery Fundamentals
jQuery FundamentalsjQuery Fundamentals
jQuery Fundamentals
 
J query presentation
J query presentationJ query presentation
J query presentation
 
J query presentation
J query presentationJ query presentation
J query presentation
 
Inside jQuery (2011)
Inside jQuery (2011)Inside jQuery (2011)
Inside jQuery (2011)
 
jQuery and_drupal
jQuery and_drupaljQuery and_drupal
jQuery and_drupal
 
jQuery Basic API
jQuery Basic APIjQuery Basic API
jQuery Basic API
 
Jquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript BasicsJquery Complete Presentation along with Javascript Basics
Jquery Complete Presentation along with Javascript Basics
 
jQuery (MeshU)
jQuery (MeshU)jQuery (MeshU)
jQuery (MeshU)
 
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02
Jqueryforbeginnersjqueryconference2009 090914063709 Phpapp02
 
J query training
J query trainingJ query training
J query training
 

Kürzlich hochgeladen

Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageMatteo Carbone
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfPaul Menig
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Centuryrwgiffor
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdfRenandantas16
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Delhi Call girls
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communicationskarancommunications
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Dave Litwiller
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMANIlamathiKannappan
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Servicediscovermytutordmt
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Neil Kimberley
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Roland Driesen
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Roland Driesen
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsP&CO
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear RegressionRavindra Nath Shukla
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesDipal Arora
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756dollysharma2066
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxWorkforce Group
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...Aggregage
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒anilsa9823
 

Kürzlich hochgeladen (20)

Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
Grateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdfGrateful 7 speech thanking everyone that has helped.pdf
Grateful 7 speech thanking everyone that has helped.pdf
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf0183760ssssssssssssssssssssssssssss00101011 (27).pdf
0183760ssssssssssssssssssssssssssss00101011 (27).pdf
 
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
Best VIP Call Girls Noida Sector 40 Call Me: 8448380779
 
Pharma Works Profile of Karan Communications
Pharma Works Profile of Karan CommunicationsPharma Works Profile of Karan Communications
Pharma Works Profile of Karan Communications
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 
A DAY IN THE LIFE OF A SALESMAN / WOMAN
A DAY IN THE LIFE OF A  SALESMAN / WOMANA DAY IN THE LIFE OF A  SALESMAN / WOMAN
A DAY IN THE LIFE OF A SALESMAN / WOMAN
 
Call Girls in Gomti Nagar - 7388211116 - With room Service
Call Girls in Gomti Nagar - 7388211116  - With room ServiceCall Girls in Gomti Nagar - 7388211116  - With room Service
Call Girls in Gomti Nagar - 7388211116 - With room Service
 
Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023Mondelez State of Snacking and Future Trends 2023
Mondelez State of Snacking and Future Trends 2023
 
Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...Boost the utilization of your HCL environment by reevaluating use cases and f...
Boost the utilization of your HCL environment by reevaluating use cases and f...
 
Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...Ensure the security of your HCL environment by applying the Zero Trust princi...
Ensure the security of your HCL environment by applying the Zero Trust princi...
 
Value Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and painsValue Proposition canvas- Customer needs and pains
Value Proposition canvas- Customer needs and pains
 
Regression analysis: Simple Linear Regression Multiple Linear Regression
Regression analysis:  Simple Linear Regression Multiple Linear RegressionRegression analysis:  Simple Linear Regression Multiple Linear Regression
Regression analysis: Simple Linear Regression Multiple Linear Regression
 
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best ServicesMysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
Mysore Call Girls 8617370543 WhatsApp Number 24x7 Best Services
 
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Majnu Ka Tilla, Delhi Contact Us 8377877756
 
Cracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptxCracking the Cultural Competence Code.pptx
Cracking the Cultural Competence Code.pptx
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In Greater Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒VIP Call Girls In Saharaganj ( Lucknow  ) 🔝 8923113531 🔝  Cash Payment (COD) 👒
VIP Call Girls In Saharaganj ( Lucknow ) 🔝 8923113531 🔝 Cash Payment (COD) 👒
 

jQuery - write less, do more javascript toolkit

  • 1. Introduction to jQuery Write less, do more! Girish Venkatachalam Chennai girish1729@gmail.com December 8, 2007
  • 2. Basic web interface architecture Figure: basic building blocks HTML provides content Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 2 / 22
  • 3. Basic web interface architecture Figure: basic building blocks HTML provides content CSS provides appearance, placement and layout Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 2 / 22
  • 4. Basic web interface architecture Figure: basic building blocks HTML provides content CSS provides appearance, placement and layout Javascript provides dynamism and defines behavior Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 2 / 22
  • 5. html tree structure Every html node forms part of a tree with html as root node Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 3 / 22
  • 6. html tree structure Every html node forms part of a tree with html as root node You can traverse the tree easily since it has a fixed structure Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 3 / 22
  • 7. html tree structure Every html node forms part of a tree with html as root node You can traverse the tree easily since it has a fixed structure Every node has attributes and optionally child nodes Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 3 / 22
  • 8. A simple html example <html> <head> <title> A simple example </title> </head> <body> <h1 align=quot;centerquot;> Hello world html </h1> <p> How are you? </p> </body> </html> Fundamental building block of all web apps Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 5 / 22
  • 9. A simple html example <html> <head> <title> A simple example </title> </head> <body> <h1 align=quot;centerquot;> Hello world html </h1> <p> How are you? </p> </body> </html> Fundamental building block of all web apps Javascript to manipulate DOM elements Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 5 / 22
  • 10. A simple html example <html> <head> <title> A simple example </title> </head> <body> <h1 align=quot;centerquot;> Hello world html </h1> <p> How are you? </p> </body> </html> Fundamental building block of all web apps Javascript to manipulate DOM elements Cascading style sheets (CSS) for appearance Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 5 / 22
  • 11. A simple html example <html> <head> <title> A simple example </title> </head> <body> <h1 align=quot;centerquot;> Hello world html </h1> <p> How are you? </p> </body> </html> Fundamental building block of all web apps Javascript to manipulate DOM elements Cascading style sheets (CSS) for appearance Learning html is a must before we do web programming! Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 5 / 22
  • 12. What is CSS? html supplies the content Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 6 / 22
  • 13. What is CSS? CSS determines the beauty html supplies the content Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 6 / 22
  • 14. What is CSS? CSS determines the beauty html supplies the content What remains? Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 6 / 22
  • 15. Intro to javascript What about the behavior? Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 7 / 22
  • 16. Intro to javascript What about the behavior? That is where a programming language like javascript comes in. Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 7 / 22
  • 17. Document Object Model What is the role of DOM in web programming? Animations Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 8 / 22
  • 18. Document Object Model What is the role of DOM in web programming? Animations jQuery does a marvelous job of DOM manipulations Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 8 / 22
  • 19. jQuery fundament Tiniest js/AJAX toolkit around Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 9 / 22
  • 20. jQuery fundament Tiniest js/AJAX toolkit around Very very very powerful Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 9 / 22
  • 21. jQuery fundament Tiniest js/AJAX toolkit around Very very very powerful Extremely well maintained with 100s of plugins Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 9 / 22
  • 22. jQuery fundament Tiniest js/AJAX toolkit around Very very very powerful Extremely well maintained with 100s of plugins Abstracts out portability issues and javascript gunk Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 9 / 22
  • 23. A jQuery code sample $(document).ready(function() { $(’a’).hover(function() { $(this).hide(’slow’); }); }); Neat eh? Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 11 / 22
  • 24. A jQuery code sample $(document).ready(function() { $(’a’).hover(function() { $(this).hide(’slow’); }); }); Neat eh? This is all it takes for an animation using jQuery Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 11 / 22
  • 25. A jQuery code sample $(document).ready(function() { $(’a’).hover(function() { $(this).hide(’slow’); }); }); Neat eh? This is all it takes for an animation using jQuery You have to add it between the ’script’ tag you always use for javascript Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 11 / 22
  • 26. A jQuery code sample $(document).ready(function() { $(’a’).hover(function() { $(this).hide(’slow’); }); }); Neat eh? This is all it takes for an animation using jQuery You have to add it between the ’script’ tag you always use for javascript After all jQuery is also javascript Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 11 / 22
  • 27. A jQuery code sample $(document).ready(function() { $(’a’).hover(function() { $(this).hide(’slow’); }); }); Neat eh? This is all it takes for an animation using jQuery You have to add it between the ’script’ tag you always use for javascript After all jQuery is also javascript Without its disadvantages and ugliness. . . Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 11 / 22
  • 28. Another jQuery sample $(document).ready(function (){ $(’a’).hover(function (){ $(this).hide(’slow’); },function(){ $(this).show(’fast’); }); }); This sample builds on the previous example Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 13 / 22
  • 29. Another jQuery sample $(document).ready(function (){ $(’a’).hover(function (){ $(this).hide(’slow’); },function(){ $(this).show(’fast’); }); }); This sample builds on the previous example This is all it takes for an animation using jQuery (once again) Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 13 / 22
  • 30. Another jQuery sample $(document).ready(function (){ $(’a’).hover(function (){ $(this).hide(’slow’); },function(){ $(this).show(’fast’); }); }); This sample builds on the previous example This is all it takes for an animation using jQuery (once again) But it is not just animations. . . Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 13 / 22
  • 31. Exploring jQuery jQuery’s power comes from its powerful selectors, easy DOM and CSS manipulations, mouse and keyboard event handling and excellent support for AJAX programming. Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 14 / 22
  • 32. Exploring jQuery jQuery’s power comes from its powerful selectors, easy DOM and CSS manipulations, mouse and keyboard event handling and excellent support for AJAX programming. John Resig achieved something revolutionary by leaving out the inessentials and keeping things small Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 14 / 22
  • 33. Exploring jQuery jQuery’s power comes from its powerful selectors, easy DOM and CSS manipulations, mouse and keyboard event handling and excellent support for AJAX programming. John Resig achieved something revolutionary by leaving out the inessentials and keeping things small This has led to a subculture of jQuery plugins - extensions are available for nearly every web design task you can think of Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 14 / 22
  • 34. Exploring jQuery jQuery’s power comes from its powerful selectors, easy DOM and CSS manipulations, mouse and keyboard event handling and excellent support for AJAX programming. John Resig achieved something revolutionary by leaving out the inessentials and keeping things small This has led to a subculture of jQuery plugins - extensions are available for nearly every web design task you can think of We shall take a peek at some of the extensions Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 14 / 22
  • 35. jQuery plugins jScrollPane Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 36. jQuery plugins jScrollPane Field plugin Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 37. jQuery plugins jScrollPane Field plugin Extra selectors Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 38. jQuery plugins jScrollPane Field plugin Extra selectors Visual jQuery Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 39. jQuery plugins jScrollPane Field plugin Extra selectors Visual jQuery Cycle plugin Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 40. jQuery plugins jScrollPane Field plugin Extra selectors Visual jQuery Cycle plugin jqPuzzle Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 41. jQuery plugins jScrollPane Field plugin Extra selectors Visual jQuery Cycle plugin jqPuzzle jTip for balloon tips (tooltip) Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 42. jQuery plugins jScrollPane Field plugin Extra selectors Visual jQuery Cycle plugin jqPuzzle jTip for balloon tips (tooltip) Impromptu Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 43. jQuery plugins jScrollPane Embed videos (You can Field plugin watch mpeg videos ) Extra selectors Visual jQuery Cycle plugin jqPuzzle jTip for balloon tips (tooltip) Impromptu Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 44. jQuery plugins jScrollPane Embed videos (You can Field plugin watch mpeg videos ) Extra selectors Datepicker plugin Visual jQuery Cycle plugin jqPuzzle jTip for balloon tips (tooltip) Impromptu Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 45. jQuery plugins jScrollPane Embed videos (You can Field plugin watch mpeg videos ) Extra selectors Datepicker plugin Visual jQuery UI for drag and drop Cycle plugin jqPuzzle jTip for balloon tips (tooltip) Impromptu Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 46. jQuery plugins jScrollPane Embed videos (You can Field plugin watch mpeg videos ) Extra selectors Datepicker plugin Visual jQuery UI for drag and drop Cycle plugin Confirm plugin jqPuzzle jTip for balloon tips (tooltip) Impromptu Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 47. jQuery plugins jScrollPane Embed videos (You can Field plugin watch mpeg videos ) Extra selectors Datepicker plugin Visual jQuery UI for drag and drop Cycle plugin Confirm plugin jqPuzzle Form handing jTip for balloon tips (tooltip) Impromptu Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 48. jQuery plugins jScrollPane Embed videos (You can Field plugin watch mpeg videos ) Extra selectors Datepicker plugin Visual jQuery UI for drag and drop Cycle plugin Confirm plugin jqPuzzle Form handing jTip for balloon tips (tooltip) Keyboard shortcut handling Impromptu Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 49. jQuery plugins jScrollPane Embed videos (You can Field plugin watch mpeg videos ) Extra selectors Datepicker plugin Visual jQuery UI for drag and drop Cycle plugin Confirm plugin jqPuzzle Form handing jTip for balloon tips (tooltip) Keyboard shortcut handling Impromptu And much much more... Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 15 / 22
  • 50. Advanced jQuery I Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 16 / 22
  • 51. Advanced jQuery I jQuery can work with AJAX and other javascript libraries seamlessly Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 16 / 22
  • 52. Advanced jQuery I jQuery can work with AJAX and other javascript libraries seamlessly jQuery can obviate the need for using javascript directly for most common web app/UI development needs. Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 16 / 22
  • 53. Advanced jQuery II $(document).ready(function() { $(quot;#ratingquot;).append(quot;Please rate: quot;); for ( var i = 1; i <= 5; i++ ) $(quot;#ratingquot;).append(quot;<a href=’#’>quot; + i + quot;</a> quot;); $(quot;#rating aquot;).click(function(e){ $.post(quot;rate.phpquot;, {rating: $(this).html()}, function(xml) { $(quot;#ratingquot;).html( quot;Thanks for rating, current average: quot; + $(quot;averagequot;, xml).text() + quot;, number of votes: quot; + $(quot;countquot;, xml).text() ); }); return false; }); }); Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 18 / 22
  • 54. Further study More selectors and advanced use is gained by experience $(’#fooid’).onblur(); $(’.fooclass’).onmousever(); $(’div#fooid’).find(); $(’h1’).css(’text-transform’,’underline’); $(’div’).addClass(’colorful’); Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 20 / 22
  • 55. Further study More selectors and advanced use is gained by experience $(’#fooid’).onblur(); $(’.fooclass’).onmousever(); $(’div#fooid’).find(); $(’h1’).css(’text-transform’,’underline’); $(’div’).addClass(’colorful’); Possibilities are endless! Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 20 / 22
  • 56. Questions? Discussion and questions? http://jquery.com 1 http://visualjquery.com 2 http://www.alistapart.com 3 http://www.csszengarden.com 4 Girish Venkatachalam (entrepreneur) Introduction to jQuery December 8, 2007 22 / 22