SlideShare a Scribd company logo
1 of 64
Download to read offline
StarTechConf 2011




                          jQuery('#knowledge')
                            .appendTo('#you');
                                 Mike Hostetler
                                @mikehostetler
                           http://mike-hostetler.com

 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                           Who am I?
                          ¿Quién soy?




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          http://learn.appendto.com




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          The jQuery Project
                          El proyecto jQuery


 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                                jQuery Project - jquery.org
                             (Software Freedom Conservancy)


                            jQuery Core          jQuery UI

                             jquery.com        jqueryUI.com




                           jQuery Mobile           QUnit

                          jquerymobile.com       qunitjs.com



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                                             Using	
  jQuery
   ‣ jquery.com           Downloading / Descargar


   ‣ api.jquery.com           Documentation / Documentación


   ‣ forum.jquery.com             Community / Comunidad


   ‣ meetups.jquery.com Local Community / Comunidad local

   ‣ plugins.jquery.com             Extending / Extensión


   ‣ jqueryui.com           Project Supported UI Library


   ‣ jquerymobile.com             Project Supported Mobile Library




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                           Including jQuery
                          Incluyendo jQuery



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          http://jquery.com/download   https://github.com/jquery/jquery


                                          or use a CDN ...


 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                                    Source




                          Minified
 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011



                          Add the <script> tags ...
      <!DocType HTML>
      <html>
        <head>
          ....
        </head>
        <body>
           ....
           <script src="http://code.jquery.com/jquery-1.7.min.js"></script>
        </body>
      </html>




                            (Use http://html5boilerplate.com/)



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                           Your first jQuery
                          Su primera jQuery


 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011



        jQuery Function / Función de jQuery

      jQuery( );

      // That’s it




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011



                             The $

      // $ is an allowed variable in JavaScript

      window.jQuery = window.$ = jQuery;

      $ === jQuery // TRUE




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                           Finding Something
                          Para encontrar algo


 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Finding	
  Something
      // Select By ID / Selección por ID

      <div id=”foo”></div>
      <div></div>

      $(‘#foo’);

      <div id=”foo”></div>
      <div></div>




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Finding	
  Something
      // Select by class / Selección por ‘class’

      <div class=”myClass foo bar”></div>
      <div class=”baz myClass”></div>
      <div class=”bar”></div>

      $(‘.myClass’)

      <div class=”myClass foo bar”></div>
      <div class=”baz myClass”></div>
      <div class=”bar”></div>



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Finding	
  Something
      // Select by tag / Selección por ‘tag’
      <ul>
       <li>Apple</li>
       <li>Pear</li>
      </ul>

      $(“li”);

      <ul>
       <li>Apple</li>
       <li>Pear</li>
      </ul>

 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Finding	
  Something	
  in	
  Context
                          Encontrar	
  algo	
  en	
  su	
  contexto

   ‣ Entire Document / Documento completo
      $(‘div’)

   ‣ Scope your selector / Ámbito de su selección
      $(‘selector’, <context>)
      $(‘#table’).find(‘selector’)

   ‣ $(‘a’).click(function() {
            $(‘span’, this)...
      });




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Do Something
                           Hacer algo



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Do	
  Something
      <p>One</p>
      <p>Two</p>
      <p>Three</p>

      // Find Something / Encontrar algo
      $(‘p’)
      // Do Something / Hacer algo
      $(‘p’).hide();

      // Generic Syntax
      $(‘p’) . <Method Name> ( [PARAMETERS] );


 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Showing	
  and	
  Hiding
      // HTML
      <p>One</p>
      <p>Two</p>
      <p>Three</p>

      // Show the elements / Mostrar los elementos
      $(‘p’).show();

      // Hide the elements / Ocultar los elementos
      $(‘p’).hide();



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Showing	
  and	
  Hiding
      // HTML
      <p>One</p>
      <p>Two</p>
      <p>Three</p>

      // Show the elements / Mostrar los elementos
      $(‘p’).show();

      // Hide the elements / Ocultar los elementos
      $(‘p’).hide();



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Iteration	
  /	
  Iteración
      <p>One</p>
      <p>Two</p>
      <p>Three</p>

      $(‘p’).each(function() {
       // Operates on each p individually
       var rand;
       rand = Math.floor( Math.random() * 1 );
       if(rand > 1) {
         $(this).hide();
       }
      });

 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Iteration	
  /	
  Iteración
      <p>One</p>
      <p>Two</p>
      <p>Three</p>

      $(‘p’).each(function() {
       // Operates on each p individually
       var rand;
       rand = Math.floor( Math.random() * 1 );
       if(rand > 1) {
         $(this).hide();
       }
      });

 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Iteration	
  /	
  Iteración
      <p>One</p>
      <p>Two</p>
      <p>Three</p>

      $(‘p’).each(function() {
       // Operates on each p individually
       var rand;
       rand = Math.floor( Math.random() * 1 );
       if(rand > 1) {
         $(this).hide();
       }
      });

 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                                    Styling
      // HTML
      <p>One</p>
      <p class=”foo”>Two</p>
      <p>Three</p>

      $(‘p’).addClass(‘enabled’);

      $(‘p’).removeClass(‘foo’);

      $(‘p’).toggleClass(‘foo’);



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                                    Styling
      // HTML
      <p class=”enabled”>One</p>
      <p class=”enabled foo”>Two</p>
      <p class=”enabled”>Three</p>

      $(‘p’).addClass(‘enabled’);

      $(‘p’).removeClass(‘foo’);

      $(‘p’).toggleClass(‘foo’);



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                                    Styling
      // HTML
      <p class=”enabled”>One</p>
      <p class=”enabled”>Two</p>
      <p class=”enabled”>Three</p>

      $(‘p’).addClass(‘enabled’);

      $(‘p’).removeClass(‘foo’);

      $(‘p’).toggleClass(‘foo’);



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                                    Styling
      // HTML
      <p class=”enabled foo”>One</p>
      <p class=”enabled foo”>Two</p>
      <p class=”enabled foo”>Three</p>

      $(‘p’).addClass(‘enabled’);

      $(‘p’).removeClass(‘foo’);

      $(‘p’).toggleClass(‘foo’);



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                   Method Chaining
              Encadenamiento de métodos



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Method	
  Chaining
      // Good / Bueno
      $(‘tr:odd’).addClass(‘odd’).find(‘td.company’).addClass
      (‘companyName’);

      // Better / Mejor
      $(‘tr:odd’)
        .addClass(‘odd’)
        .find(‘td.company’)
          .addClass(‘companyName’)
        .end();



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Method	
  Chaining
      $(‘tr’)
       .filter(‘:odd’)
         .addClass(‘odd’)
       .end()
       .find(‘td.company’)
         .addClass(‘companyName’);




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                           DOM Manipulation
                          Manipulación del DOM



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




   Creating	
  Elements	
  /	
  Creación	
  de	
  elementos
      $("<div/>", {
       class: "test",
       text: "Click me!",
       click: function(){
         $(this).toggleClass("test");
       }
      });

      // Clicking toggles the class / Al hacer clic cambia la ‘class’
      <div class=”test”>Click me!</div>



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




          Inserting	
  Elements	
  /	
  Insertar	
  elementos
      // Before / Antes
      <p>Apple</p>
      <p>Orange</p>

      $(‘p’).after(‘<img src=”logo.png” />’);

      // After / Después
      <p>Apple</p>
      <img src=”logo.png />
      <p>Orange</p>
      <img src=”logo.png />


 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




          Inserting	
  Elements	
  /	
  Insertar	
  elementos
      // Before / Antes
      <p id=”apple”>Apple</p>
      <p id=”orange”>Orange</p>

      $(‘<img src=”apple.png” />’).prependTo(‘#apple’);
      $(‘<img src=”orange.png” />’).appendTo(‘#orange’);

      // After / Después
      <p id=”apple”><img src=”apple.png” />Apple</p>
      <p id=”orange”>Orange<img src=”orange.png” /></p>



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




     Removing	
  Elements	
  /	
  Remover	
  elementos
      // Before / Antes
      <div>
       <p>Red</p>
       <p>Green</p>
      </div>

      // Removing Elements Directly /
         Eliminación de los elementos directamente.
      $(‘p’).remove();

      // After / Después
      <div> </div>

 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




      Wrapping	
  Elements	
  /	
  Envolver	
  elementos
      // Before / Antes
      <p>Hello world</p>
      <p>Foo bar</p>

      $(‘p’).wrap(‘<div></div>’);

      // After / Después
      <div><p>Hello world</p></div>
      <div><p>Foo bar</p></div>




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Unwrapping	
  Elements
      // Before / Antes
      <div><p>Hello world</p></div>
      <div><p>Foo bar</p></div>

      // Individually / Individualmente
      $(‘p’).unwrap();

      // After / Después
      <p>Hello world</p>
      <p>Foo bar</p>




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




        Binding Events / Definir Eventos




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Click	
  Event	
  /	
  Evento	
  de	
  Clic
      // HTML
      <p>One</p>
      <p>Two</p>
      <p>Three</p>

      $(‘p’).click(function(event) {
       $(this).css(‘color’, ‘red’);
      });




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Click	
  Event	
  /	
  Evento	
  de	
  Clic
      // HTML
      <p>One</p>
      <p style=”color: red”>Two</p> // Clicked!
      <p>Three</p>

      $(‘p’).click(function(event) {
       $(this).css(‘color’, ‘red’);
      });




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




           Hover	
  Pseudo	
  Event	
  /	
  Evento	
  de	
  Hover	
  
      // HTML
      <p>One</p>
      <p>Two</p>
      <p>Three</p>

      $(‘p’).hover(function(event) {
       $(this).css(‘color’, ‘red’);
      }, function() {
       $(this).css(‘color’, ‘’);
      });




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




            Binding	
  &	
  Unbinding	
  /	
  Definir	
  &	
  liberar
      // HTML
      <p>One</p>
      <p>Two</p>
      <p>Three</p>

      // Add event / Agregar evento
      $(‘p’).bind(‘click’,function(event) {
       $(this).css(‘color’, ‘red’);
      });

      // Remove event / Quitar Evento
      $(‘p’).unbind(‘click’);

 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Binding	
  Events	
  with	
  .bind()
      // Binding an event / Definir Evento
      $('a.tab').bind('click',function(e){
       // event handling code
       $(this).css(‘color’, ‘red’);
      });

      // Unbinding an event / Liberar Evento
      $('a.tab').unbind('click');




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Binding	
  Events
      // Bind an event to execute once /
          Definar Evento que corra una sola vez
      $('a.tab').one('click',function(e){
        // event handling code
        $(this).css(‘color’,‘red’);
      });




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Ajax




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                Making	
  a	
  Request	
  /	
  Hacer	
  un	
  pedido
      $.get(‘page.php’, function(data) {
         $(data).appendTo(‘body’);
      }, ‘html’);

      var data = { fname: ‘Jonathan’ };
      $.post(‘page.php’, data, function(data) {
         $(data).appendTo(‘body’);
      }, ‘html’);




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Making	
  a	
  Request	
  with	
  JSON	
  
                           Hacer	
  un	
  pedido	
  de	
  JSON
      // Response / Respuesta
      {“names”: [“Jonathan”, “Mike”, “Rob”],
       “states”: {“NE” : “Nebraska”},
       “year” : “2011” }


      $.getJSON(‘page.php’, function(json) {
        $(‘body’).append( json.names[0] );
        $(‘body’).append( json.states.NE );
      });


 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Making	
  a	
  Request	
  JSON
      // Response
      { “names”: [“Jonathan”, “Mike”, “Rob”] }


      $.getJSON(‘page.php’, function(json) {
        $.each(json.names, function(i, val) {
          $(‘body’).append( val );
        });
      });




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Writing Your First Plugin
                          Escribe tu primer plugin



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Writing	
  your	
  first	
  Plugin
      // Function Namespace
      $.fn

      // Define / Definir
      $.fn.elementCount = function() {
        alert(‘Element count: ’ + this.length);
      };

      // Execute / Ejecutar
      $(‘p’).elementCount();



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




           Plugins	
  &	
  Iteration	
  /	
  Plugins	
  &	
  Iteración
      $.fn.elementCount = function() {
        // this is a jQuery Object
        this.each(function(i) {
          // this is the element
          $(this).html($(this).html() +‘ ‘+ i);
        });
      };


      $(‘p’).elementCount();



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Plugins	
  and	
  Chaining
      // Add support for chaining
      $.fn.elementCount = function() {
        return this.each(function(i) {
          $(this).html($(this).html() +‘ ‘+ i);
        });
      };


      $(‘p’).elementCount().addClass(‘active’);;




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          Plugins	
  and	
  Chaining
      // Plugin is required to return this
      $.fn.SantiagoAMil = function() {
        return this.each(function(i) {
          $(this).css(‘color’, ‘red’);
        });
      };


      $(‘p’).SantiagoAMil().addClass(‘fiesta’);




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          The Plugin Pattern
                          El patrón de Plugin



 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          The	
  Plugin	
  Pattern
      (function($) {
        $.fn.SantiagoAMil = function() {
          return this.each(function(i) {
            $(this).css(‘color’, ‘red’);
          });
        };
      })(jQuery);

      $(‘p’).SantiagoAMil();




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          The	
  Plugin	
  Pattern
      (function($, undefined) {
        $.fn.SantiagoAMil = function() {
          return this.each(function(i) {
            $(this).css(‘color’, ‘red’);
          });
        };
      })(jQuery);

      $(‘p’).SantiagoAMil();




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          The	
  Plugin	
  Pattern
      (function($) {
        $.fn.SantiagoAMil = function(color) {
          return this.each(function(i) {
            $(this).css(‘color’, color);
          });
        };
      })(jQuery);

      $(‘p’).SantiagoAMil(‘verde’);




 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                          The	
  Plugin	
  Pattern
      (function($) {
        $.fn.SantiagoAMil = function(color, begin) {
          if ( $.isFunction(begin) ) { begin(); }
          return this.each(function(i) {
             $(this).css(‘color’, color);
          });
        };
      })(jQuery);

      $(‘p’).SantiagoAMil(‘verde‘,
         begin: function() {alert(‘BEGIN!’)}
      );

 @mikehostetler

Tuesday, December 6, 11
StarTechConf 2011




                               Thank You!
                                ¡Gracias!
                                   @mikehostetler
                              http://mike-hostetler.com
                          http://learn.appendto.com
                              Questions? / ¿Preguntas?

 @mikehostetler

Tuesday, December 6, 11

More Related Content

What's hot

jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009Remy Sharp
 
jQuery Performance Tips and Tricks (2011)
jQuery Performance Tips and Tricks (2011)jQuery Performance Tips and Tricks (2011)
jQuery Performance Tips and Tricks (2011)Addy Osmani
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQueryGunjan Kumar
 
Jquery plugin development
Jquery plugin developmentJquery plugin development
Jquery plugin developmentMd. Ziaul Haq
 
Ciconf 2012 - Better than Ad-hoc
Ciconf 2012 - Better than Ad-hocCiconf 2012 - Better than Ad-hoc
Ciconf 2012 - Better than Ad-hocCalvin Froedge
 
JQuery plugin development fundamentals
JQuery plugin development fundamentalsJQuery plugin development fundamentals
JQuery plugin development fundamentalsBastian Feder
 
jQuery Anti-Patterns for Performance & Compression
jQuery Anti-Patterns for Performance & CompressionjQuery Anti-Patterns for Performance & Compression
jQuery Anti-Patterns for Performance & CompressionPaul Irish
 
Jquery Plugin
Jquery PluginJquery Plugin
Jquery PluginRavi Mone
 
Integrated Feature Management - Using Feature Flags - MidwestPHP
Integrated Feature Management - Using Feature Flags - MidwestPHPIntegrated Feature Management - Using Feature Flags - MidwestPHP
Integrated Feature Management - Using Feature Flags - MidwestPHPDana Luther
 
Super Awesome Interactions with jQuery
Super Awesome Interactions with jQuerySuper Awesome Interactions with jQuery
Super Awesome Interactions with jQueryZURB
 
Web Scraping using Diazo!
Web Scraping using Diazo!Web Scraping using Diazo!
Web Scraping using Diazo!pythonchile
 
Aula 2,3 e 4 Publicidade Online
Aula 2,3 e 4 Publicidade OnlineAula 2,3 e 4 Publicidade Online
Aula 2,3 e 4 Publicidade OnlineKarina Rocha
 
Maintainable JavaScript 2012
Maintainable JavaScript 2012Maintainable JavaScript 2012
Maintainable JavaScript 2012Nicholas Zakas
 
Contextual jQuery
Contextual jQueryContextual jQuery
Contextual jQueryDoug Neiner
 
Scalable JavaScript
Scalable JavaScriptScalable JavaScript
Scalable JavaScriptYnon Perek
 

What's hot (18)

jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009jQuery Loves Developers - Oredev 2009
jQuery Loves Developers - Oredev 2009
 
jQuery Performance Tips and Tricks (2011)
jQuery Performance Tips and Tricks (2011)jQuery Performance Tips and Tricks (2011)
jQuery Performance Tips and Tricks (2011)
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
Jquery plugin development
Jquery plugin developmentJquery plugin development
Jquery plugin development
 
Ciconf 2012 - Better than Ad-hoc
Ciconf 2012 - Better than Ad-hocCiconf 2012 - Better than Ad-hoc
Ciconf 2012 - Better than Ad-hoc
 
JQuery plugin development fundamentals
JQuery plugin development fundamentalsJQuery plugin development fundamentals
JQuery plugin development fundamentals
 
jQuery Anti-Patterns for Performance & Compression
jQuery Anti-Patterns for Performance & CompressionjQuery Anti-Patterns for Performance & Compression
jQuery Anti-Patterns for Performance & Compression
 
Jquery Plugin
Jquery PluginJquery Plugin
Jquery Plugin
 
Javascript in Plone
Javascript in PloneJavascript in Plone
Javascript in Plone
 
Integrated Feature Management - Using Feature Flags - MidwestPHP
Integrated Feature Management - Using Feature Flags - MidwestPHPIntegrated Feature Management - Using Feature Flags - MidwestPHP
Integrated Feature Management - Using Feature Flags - MidwestPHP
 
When?, Why? and What? of MongoDB
When?, Why? and What? of MongoDBWhen?, Why? and What? of MongoDB
When?, Why? and What? of MongoDB
 
Super Awesome Interactions with jQuery
Super Awesome Interactions with jQuerySuper Awesome Interactions with jQuery
Super Awesome Interactions with jQuery
 
Web Scraping using Diazo!
Web Scraping using Diazo!Web Scraping using Diazo!
Web Scraping using Diazo!
 
Aula 2,3 e 4 Publicidade Online
Aula 2,3 e 4 Publicidade OnlineAula 2,3 e 4 Publicidade Online
Aula 2,3 e 4 Publicidade Online
 
jQuery quick tuts
jQuery quick tutsjQuery quick tuts
jQuery quick tuts
 
Maintainable JavaScript 2012
Maintainable JavaScript 2012Maintainable JavaScript 2012
Maintainable JavaScript 2012
 
Contextual jQuery
Contextual jQueryContextual jQuery
Contextual jQuery
 
Scalable JavaScript
Scalable JavaScriptScalable JavaScript
Scalable JavaScript
 

Viewers also liked

Geek Revolution: StarTechConf 2013
Geek Revolution: StarTechConf 2013Geek Revolution: StarTechConf 2013
Geek Revolution: StarTechConf 2013LeanSight Consulting
 
Python Enterprise
Python EnterprisePython Enterprise
Python Enterprisepythonchile
 
Robert Nyman - HTML5 apis where no man has gone before startechconf
Robert Nyman - HTML5 apis where no man has gone before startechconfRobert Nyman - HTML5 apis where no man has gone before startechconf
Robert Nyman - HTML5 apis where no man has gone before startechconfStarTech Conference
 
Creadores de universos StartechConf 2013
Creadores de universos StartechConf 2013Creadores de universos StartechConf 2013
Creadores de universos StartechConf 2013Eduardo Diaz
 
Rey Bango - HTML5: polyfills and shims
Rey Bango -  HTML5: polyfills and shimsRey Bango -  HTML5: polyfills and shims
Rey Bango - HTML5: polyfills and shimsStarTech Conference
 
Tom Preston Werner - Optimize for happiness
Tom Preston Werner -  Optimize for happinessTom Preston Werner -  Optimize for happiness
Tom Preston Werner - Optimize for happinessStarTech Conference
 
Scott Chacon - Cuento de tres árboles
Scott Chacon - Cuento de tres árbolesScott Chacon - Cuento de tres árboles
Scott Chacon - Cuento de tres árbolesStarTech Conference
 

Viewers also liked (14)

Geek Revolution: StarTechConf 2013
Geek Revolution: StarTechConf 2013Geek Revolution: StarTechConf 2013
Geek Revolution: StarTechConf 2013
 
Python Enterprise
Python EnterprisePython Enterprise
Python Enterprise
 
Luis Meijueiro - Open Data
Luis Meijueiro - Open DataLuis Meijueiro - Open Data
Luis Meijueiro - Open Data
 
Pedro Fuentes - star techconf
Pedro Fuentes - star techconfPedro Fuentes - star techconf
Pedro Fuentes - star techconf
 
Jano Gonzalez - jruby
Jano Gonzalez - jrubyJano Gonzalez - jruby
Jano Gonzalez - jruby
 
Robert Nyman - HTML5 apis where no man has gone before startechconf
Robert Nyman - HTML5 apis where no man has gone before startechconfRobert Nyman - HTML5 apis where no man has gone before startechconf
Robert Nyman - HTML5 apis where no man has gone before startechconf
 
Creadores de universos StartechConf 2013
Creadores de universos StartechConf 2013Creadores de universos StartechConf 2013
Creadores de universos StartechConf 2013
 
Jonathan snook - fake-it
Jonathan snook - fake-itJonathan snook - fake-it
Jonathan snook - fake-it
 
Rey Bango - HTML5: polyfills and shims
Rey Bango -  HTML5: polyfills and shimsRey Bango -  HTML5: polyfills and shims
Rey Bango - HTML5: polyfills and shims
 
T.Pollak y C.Yaconi - Prey
T.Pollak y C.Yaconi - PreyT.Pollak y C.Yaconi - Prey
T.Pollak y C.Yaconi - Prey
 
Tom Preston Werner - Optimize for happiness
Tom Preston Werner -  Optimize for happinessTom Preston Werner -  Optimize for happiness
Tom Preston Werner - Optimize for happiness
 
Caridy patino - node-js
Caridy patino - node-jsCaridy patino - node-js
Caridy patino - node-js
 
Scott Chacon - Cuento de tres árboles
Scott Chacon - Cuento de tres árbolesScott Chacon - Cuento de tres árboles
Scott Chacon - Cuento de tres árboles
 
SSL instalado... ¿estamos realmente seguros?
SSL instalado... ¿estamos realmente seguros?SSL instalado... ¿estamos realmente seguros?
SSL instalado... ¿estamos realmente seguros?
 

Similar to Mike hostetler - jQuery knowledge append to you

international PHP2011_ilia alshanetsky_Hidden Features of PHP
international PHP2011_ilia alshanetsky_Hidden Features of PHPinternational PHP2011_ilia alshanetsky_Hidden Features of PHP
international PHP2011_ilia alshanetsky_Hidden Features of PHPsmueller_sandsmedia
 
How to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQueryHow to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQuerykolkatageeks
 
잘 알려지지 않은 Php 코드 활용하기
잘 알려지지 않은 Php 코드 활용하기잘 알려지지 않은 Php 코드 활용하기
잘 알려지지 않은 Php 코드 활용하기형우 안
 
What's new in HTML5, CSS3 and JavaScript, James Pearce
What's new in HTML5, CSS3 and JavaScript, James PearceWhat's new in HTML5, CSS3 and JavaScript, James Pearce
What's new in HTML5, CSS3 and JavaScript, James PearceSencha
 
Lone StarPHP 2013 - Building Web Apps from a New Angle
Lone StarPHP 2013 - Building Web Apps from a New AngleLone StarPHP 2013 - Building Web Apps from a New Angle
Lone StarPHP 2013 - Building Web Apps from a New AnglePablo Godel
 
Magento Imagine eCommerce Conference - February 2011 - Unit Testing with Magento
Magento Imagine eCommerce Conference - February 2011 - Unit Testing with MagentoMagento Imagine eCommerce Conference - February 2011 - Unit Testing with Magento
Magento Imagine eCommerce Conference - February 2011 - Unit Testing with Magentovarien
 
Magento's Imagine eCommerce Conference 2011 - Unit Testing with Magento
Magento's Imagine eCommerce Conference 2011 - Unit Testing with MagentoMagento's Imagine eCommerce Conference 2011 - Unit Testing with Magento
Magento's Imagine eCommerce Conference 2011 - Unit Testing with MagentoMagentoImagine
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5Adrian Olaru
 
Great Developers Steal
Great Developers StealGreat Developers Steal
Great Developers StealBen Scofield
 
Ext GWT 3.0 Advanced Templates
Ext GWT 3.0 Advanced TemplatesExt GWT 3.0 Advanced Templates
Ext GWT 3.0 Advanced TemplatesSencha
 
Brian Hogg - Web Apps using HTML5 and JS
Brian Hogg - Web Apps using HTML5 and JSBrian Hogg - Web Apps using HTML5 and JS
Brian Hogg - Web Apps using HTML5 and JS#DevTO
 
SharePoint & jQuery Guide - SPSNashville 2014
SharePoint & jQuery Guide - SPSNashville 2014SharePoint & jQuery Guide - SPSNashville 2014
SharePoint & jQuery Guide - SPSNashville 2014Mark Rackley
 
Prototype & jQuery
Prototype & jQueryPrototype & jQuery
Prototype & jQueryRemy Sharp
 
Designers Guide To jQuery
Designers Guide To jQueryDesigners Guide To jQuery
Designers Guide To jQuerySteve Krueger
 
Macruby - RubyConf Presentation 2010
Macruby - RubyConf Presentation 2010Macruby - RubyConf Presentation 2010
Macruby - RubyConf Presentation 2010Matt Aimonetti
 

Similar to Mike hostetler - jQuery knowledge append to you (20)

Changeyrmarkup
ChangeyrmarkupChangeyrmarkup
Changeyrmarkup
 
international PHP2011_ilia alshanetsky_Hidden Features of PHP
international PHP2011_ilia alshanetsky_Hidden Features of PHPinternational PHP2011_ilia alshanetsky_Hidden Features of PHP
international PHP2011_ilia alshanetsky_Hidden Features of PHP
 
How to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQueryHow to increase Performance of Web Application using JQuery
How to increase Performance of Web Application using JQuery
 
HTML5 - Yeah!
HTML5 - Yeah!HTML5 - Yeah!
HTML5 - Yeah!
 
잘 알려지지 않은 Php 코드 활용하기
잘 알려지지 않은 Php 코드 활용하기잘 알려지지 않은 Php 코드 활용하기
잘 알려지지 않은 Php 코드 활용하기
 
What's new in HTML5, CSS3 and JavaScript, James Pearce
What's new in HTML5, CSS3 and JavaScript, James PearceWhat's new in HTML5, CSS3 and JavaScript, James Pearce
What's new in HTML5, CSS3 and JavaScript, James Pearce
 
Lone StarPHP 2013 - Building Web Apps from a New Angle
Lone StarPHP 2013 - Building Web Apps from a New AngleLone StarPHP 2013 - Building Web Apps from a New Angle
Lone StarPHP 2013 - Building Web Apps from a New Angle
 
Magento Imagine eCommerce Conference - February 2011 - Unit Testing with Magento
Magento Imagine eCommerce Conference - February 2011 - Unit Testing with MagentoMagento Imagine eCommerce Conference - February 2011 - Unit Testing with Magento
Magento Imagine eCommerce Conference - February 2011 - Unit Testing with Magento
 
Magento's Imagine eCommerce Conference 2011 - Unit Testing with Magento
Magento's Imagine eCommerce Conference 2011 - Unit Testing with MagentoMagento's Imagine eCommerce Conference 2011 - Unit Testing with Magento
Magento's Imagine eCommerce Conference 2011 - Unit Testing with Magento
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
J query training
J query trainingJ query training
J query training
 
Great Developers Steal
Great Developers StealGreat Developers Steal
Great Developers Steal
 
Ext GWT 3.0 Advanced Templates
Ext GWT 3.0 Advanced TemplatesExt GWT 3.0 Advanced Templates
Ext GWT 3.0 Advanced Templates
 
jQuery Basic API
jQuery Basic APIjQuery Basic API
jQuery Basic API
 
Brian Hogg - Web Apps using HTML5 and JS
Brian Hogg - Web Apps using HTML5 and JSBrian Hogg - Web Apps using HTML5 and JS
Brian Hogg - Web Apps using HTML5 and JS
 
SharePoint & jQuery Guide - SPSNashville 2014
SharePoint & jQuery Guide - SPSNashville 2014SharePoint & jQuery Guide - SPSNashville 2014
SharePoint & jQuery Guide - SPSNashville 2014
 
Prototype & jQuery
Prototype & jQueryPrototype & jQuery
Prototype & jQuery
 
Designers Guide To jQuery
Designers Guide To jQueryDesigners Guide To jQuery
Designers Guide To jQuery
 
Macruby - RubyConf Presentation 2010
Macruby - RubyConf Presentation 2010Macruby - RubyConf Presentation 2010
Macruby - RubyConf Presentation 2010
 
The jQuery Divide
The jQuery DivideThe jQuery Divide
The jQuery Divide
 

More from StarTech Conference

Stephen Anderson - Como construimos e hicimos crecer una empresa de consultor...
Stephen Anderson - Como construimos e hicimos crecer una empresa de consultor...Stephen Anderson - Como construimos e hicimos crecer una empresa de consultor...
Stephen Anderson - Como construimos e hicimos crecer una empresa de consultor...StarTech Conference
 
Markos calderon lecciones aprendidas del desarrollo de un sistema de web co...
Markos calderon   lecciones aprendidas del desarrollo de un sistema de web co...Markos calderon   lecciones aprendidas del desarrollo de un sistema de web co...
Markos calderon lecciones aprendidas del desarrollo de un sistema de web co...StarTech Conference
 
Ravi Mynampaty - developing findability standards
Ravi Mynampaty - developing findability standardsRavi Mynampaty - developing findability standards
Ravi Mynampaty - developing findability standardsStarTech Conference
 
Charles nutter star techconf 2011 - jvm languages
Charles nutter   star techconf 2011 - jvm languagesCharles nutter   star techconf 2011 - jvm languages
Charles nutter star techconf 2011 - jvm languagesStarTech Conference
 
Abraham Barrera - dev-cross-mobile
Abraham Barrera - dev-cross-mobileAbraham Barrera - dev-cross-mobile
Abraham Barrera - dev-cross-mobileStarTech Conference
 
Eduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhereEduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhereStarTech Conference
 
Mark ramm To relate or not to relate
Mark ramm   To relate or not to relateMark ramm   To relate or not to relate
Mark ramm To relate or not to relateStarTech Conference
 

More from StarTech Conference (9)

Stephen Anderson - Como construimos e hicimos crecer una empresa de consultor...
Stephen Anderson - Como construimos e hicimos crecer una empresa de consultor...Stephen Anderson - Como construimos e hicimos crecer una empresa de consultor...
Stephen Anderson - Como construimos e hicimos crecer una empresa de consultor...
 
Markos calderon lecciones aprendidas del desarrollo de un sistema de web co...
Markos calderon   lecciones aprendidas del desarrollo de un sistema de web co...Markos calderon   lecciones aprendidas del desarrollo de un sistema de web co...
Markos calderon lecciones aprendidas del desarrollo de un sistema de web co...
 
Ravi Mynampaty - developing findability standards
Ravi Mynampaty - developing findability standardsRavi Mynampaty - developing findability standards
Ravi Mynampaty - developing findability standards
 
Charles nutter star techconf 2011 - jvm languages
Charles nutter   star techconf 2011 - jvm languagesCharles nutter   star techconf 2011 - jvm languages
Charles nutter star techconf 2011 - jvm languages
 
Abraham Barrera - dev-cross-mobile
Abraham Barrera - dev-cross-mobileAbraham Barrera - dev-cross-mobile
Abraham Barrera - dev-cross-mobile
 
Eduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhereEduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhere
 
Stephanie Rewis - css-startech
Stephanie Rewis -  css-startechStephanie Rewis -  css-startech
Stephanie Rewis - css-startech
 
Mark ramm To relate or not to relate
Mark ramm   To relate or not to relateMark ramm   To relate or not to relate
Mark ramm To relate or not to relate
 
Greg rewis move-itsession
Greg rewis move-itsessionGreg rewis move-itsession
Greg rewis move-itsession
 

Recently uploaded

Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 

Recently uploaded (20)

Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 

Mike hostetler - jQuery knowledge append to you

  • 1. StarTechConf 2011 jQuery('#knowledge') .appendTo('#you'); Mike Hostetler @mikehostetler http://mike-hostetler.com @mikehostetler Tuesday, December 6, 11
  • 2. StarTechConf 2011 Who am I? ¿Quién soy? @mikehostetler Tuesday, December 6, 11
  • 6. StarTechConf 2011 http://learn.appendto.com @mikehostetler Tuesday, December 6, 11
  • 7. StarTechConf 2011 The jQuery Project El proyecto jQuery @mikehostetler Tuesday, December 6, 11
  • 8. StarTechConf 2011 jQuery Project - jquery.org (Software Freedom Conservancy) jQuery Core jQuery UI jquery.com jqueryUI.com jQuery Mobile QUnit jquerymobile.com qunitjs.com @mikehostetler Tuesday, December 6, 11
  • 9. StarTechConf 2011 Using  jQuery ‣ jquery.com Downloading / Descargar ‣ api.jquery.com Documentation / Documentación ‣ forum.jquery.com Community / Comunidad ‣ meetups.jquery.com Local Community / Comunidad local ‣ plugins.jquery.com Extending / Extensión ‣ jqueryui.com Project Supported UI Library ‣ jquerymobile.com Project Supported Mobile Library @mikehostetler Tuesday, December 6, 11
  • 10. StarTechConf 2011 Including jQuery Incluyendo jQuery @mikehostetler Tuesday, December 6, 11
  • 11. StarTechConf 2011 http://jquery.com/download https://github.com/jquery/jquery or use a CDN ... @mikehostetler Tuesday, December 6, 11
  • 12. StarTechConf 2011 Source Minified @mikehostetler Tuesday, December 6, 11
  • 13. StarTechConf 2011 Add the <script> tags ... <!DocType HTML> <html> <head> .... </head> <body> .... <script src="http://code.jquery.com/jquery-1.7.min.js"></script> </body> </html> (Use http://html5boilerplate.com/) @mikehostetler Tuesday, December 6, 11
  • 14. StarTechConf 2011 Your first jQuery Su primera jQuery @mikehostetler Tuesday, December 6, 11
  • 15. StarTechConf 2011 jQuery Function / Función de jQuery jQuery( ); // That’s it @mikehostetler Tuesday, December 6, 11
  • 16. StarTechConf 2011 The $ // $ is an allowed variable in JavaScript window.jQuery = window.$ = jQuery; $ === jQuery // TRUE @mikehostetler Tuesday, December 6, 11
  • 17. StarTechConf 2011 Finding Something Para encontrar algo @mikehostetler Tuesday, December 6, 11
  • 18. StarTechConf 2011 Finding  Something // Select By ID / Selección por ID <div id=”foo”></div> <div></div> $(‘#foo’); <div id=”foo”></div> <div></div> @mikehostetler Tuesday, December 6, 11
  • 19. StarTechConf 2011 Finding  Something // Select by class / Selección por ‘class’ <div class=”myClass foo bar”></div> <div class=”baz myClass”></div> <div class=”bar”></div> $(‘.myClass’) <div class=”myClass foo bar”></div> <div class=”baz myClass”></div> <div class=”bar”></div> @mikehostetler Tuesday, December 6, 11
  • 20. StarTechConf 2011 Finding  Something // Select by tag / Selección por ‘tag’ <ul> <li>Apple</li> <li>Pear</li> </ul> $(“li”); <ul> <li>Apple</li> <li>Pear</li> </ul> @mikehostetler Tuesday, December 6, 11
  • 21. StarTechConf 2011 Finding  Something  in  Context Encontrar  algo  en  su  contexto ‣ Entire Document / Documento completo $(‘div’) ‣ Scope your selector / Ámbito de su selección $(‘selector’, <context>) $(‘#table’).find(‘selector’) ‣ $(‘a’).click(function() { $(‘span’, this)... }); @mikehostetler Tuesday, December 6, 11
  • 22. StarTechConf 2011 Do Something Hacer algo @mikehostetler Tuesday, December 6, 11
  • 23. StarTechConf 2011 Do  Something <p>One</p> <p>Two</p> <p>Three</p> // Find Something / Encontrar algo $(‘p’) // Do Something / Hacer algo $(‘p’).hide(); // Generic Syntax $(‘p’) . <Method Name> ( [PARAMETERS] ); @mikehostetler Tuesday, December 6, 11
  • 24. StarTechConf 2011 Showing  and  Hiding // HTML <p>One</p> <p>Two</p> <p>Three</p> // Show the elements / Mostrar los elementos $(‘p’).show(); // Hide the elements / Ocultar los elementos $(‘p’).hide(); @mikehostetler Tuesday, December 6, 11
  • 25. StarTechConf 2011 Showing  and  Hiding // HTML <p>One</p> <p>Two</p> <p>Three</p> // Show the elements / Mostrar los elementos $(‘p’).show(); // Hide the elements / Ocultar los elementos $(‘p’).hide(); @mikehostetler Tuesday, December 6, 11
  • 26. StarTechConf 2011 Iteration  /  Iteración <p>One</p> <p>Two</p> <p>Three</p> $(‘p’).each(function() { // Operates on each p individually var rand; rand = Math.floor( Math.random() * 1 ); if(rand > 1) { $(this).hide(); } }); @mikehostetler Tuesday, December 6, 11
  • 27. StarTechConf 2011 Iteration  /  Iteración <p>One</p> <p>Two</p> <p>Three</p> $(‘p’).each(function() { // Operates on each p individually var rand; rand = Math.floor( Math.random() * 1 ); if(rand > 1) { $(this).hide(); } }); @mikehostetler Tuesday, December 6, 11
  • 28. StarTechConf 2011 Iteration  /  Iteración <p>One</p> <p>Two</p> <p>Three</p> $(‘p’).each(function() { // Operates on each p individually var rand; rand = Math.floor( Math.random() * 1 ); if(rand > 1) { $(this).hide(); } }); @mikehostetler Tuesday, December 6, 11
  • 29. StarTechConf 2011 Styling // HTML <p>One</p> <p class=”foo”>Two</p> <p>Three</p> $(‘p’).addClass(‘enabled’); $(‘p’).removeClass(‘foo’); $(‘p’).toggleClass(‘foo’); @mikehostetler Tuesday, December 6, 11
  • 30. StarTechConf 2011 Styling // HTML <p class=”enabled”>One</p> <p class=”enabled foo”>Two</p> <p class=”enabled”>Three</p> $(‘p’).addClass(‘enabled’); $(‘p’).removeClass(‘foo’); $(‘p’).toggleClass(‘foo’); @mikehostetler Tuesday, December 6, 11
  • 31. StarTechConf 2011 Styling // HTML <p class=”enabled”>One</p> <p class=”enabled”>Two</p> <p class=”enabled”>Three</p> $(‘p’).addClass(‘enabled’); $(‘p’).removeClass(‘foo’); $(‘p’).toggleClass(‘foo’); @mikehostetler Tuesday, December 6, 11
  • 32. StarTechConf 2011 Styling // HTML <p class=”enabled foo”>One</p> <p class=”enabled foo”>Two</p> <p class=”enabled foo”>Three</p> $(‘p’).addClass(‘enabled’); $(‘p’).removeClass(‘foo’); $(‘p’).toggleClass(‘foo’); @mikehostetler Tuesday, December 6, 11
  • 33. StarTechConf 2011 Method Chaining Encadenamiento de métodos @mikehostetler Tuesday, December 6, 11
  • 34. StarTechConf 2011 Method  Chaining // Good / Bueno $(‘tr:odd’).addClass(‘odd’).find(‘td.company’).addClass (‘companyName’); // Better / Mejor $(‘tr:odd’) .addClass(‘odd’) .find(‘td.company’) .addClass(‘companyName’) .end(); @mikehostetler Tuesday, December 6, 11
  • 35. StarTechConf 2011 Method  Chaining $(‘tr’) .filter(‘:odd’) .addClass(‘odd’) .end() .find(‘td.company’) .addClass(‘companyName’); @mikehostetler Tuesday, December 6, 11
  • 36. StarTechConf 2011 DOM Manipulation Manipulación del DOM @mikehostetler Tuesday, December 6, 11
  • 37. StarTechConf 2011 Creating  Elements  /  Creación  de  elementos $("<div/>", { class: "test", text: "Click me!", click: function(){ $(this).toggleClass("test"); } }); // Clicking toggles the class / Al hacer clic cambia la ‘class’ <div class=”test”>Click me!</div> @mikehostetler Tuesday, December 6, 11
  • 38. StarTechConf 2011 Inserting  Elements  /  Insertar  elementos // Before / Antes <p>Apple</p> <p>Orange</p> $(‘p’).after(‘<img src=”logo.png” />’); // After / Después <p>Apple</p> <img src=”logo.png /> <p>Orange</p> <img src=”logo.png /> @mikehostetler Tuesday, December 6, 11
  • 39. StarTechConf 2011 Inserting  Elements  /  Insertar  elementos // Before / Antes <p id=”apple”>Apple</p> <p id=”orange”>Orange</p> $(‘<img src=”apple.png” />’).prependTo(‘#apple’); $(‘<img src=”orange.png” />’).appendTo(‘#orange’); // After / Después <p id=”apple”><img src=”apple.png” />Apple</p> <p id=”orange”>Orange<img src=”orange.png” /></p> @mikehostetler Tuesday, December 6, 11
  • 40. StarTechConf 2011 Removing  Elements  /  Remover  elementos // Before / Antes <div> <p>Red</p> <p>Green</p> </div> // Removing Elements Directly / Eliminación de los elementos directamente. $(‘p’).remove(); // After / Después <div> </div> @mikehostetler Tuesday, December 6, 11
  • 41. StarTechConf 2011 Wrapping  Elements  /  Envolver  elementos // Before / Antes <p>Hello world</p> <p>Foo bar</p> $(‘p’).wrap(‘<div></div>’); // After / Después <div><p>Hello world</p></div> <div><p>Foo bar</p></div> @mikehostetler Tuesday, December 6, 11
  • 42. StarTechConf 2011 Unwrapping  Elements // Before / Antes <div><p>Hello world</p></div> <div><p>Foo bar</p></div> // Individually / Individualmente $(‘p’).unwrap(); // After / Después <p>Hello world</p> <p>Foo bar</p> @mikehostetler Tuesday, December 6, 11
  • 43. StarTechConf 2011 Binding Events / Definir Eventos @mikehostetler Tuesday, December 6, 11
  • 44. StarTechConf 2011 Click  Event  /  Evento  de  Clic // HTML <p>One</p> <p>Two</p> <p>Three</p> $(‘p’).click(function(event) { $(this).css(‘color’, ‘red’); }); @mikehostetler Tuesday, December 6, 11
  • 45. StarTechConf 2011 Click  Event  /  Evento  de  Clic // HTML <p>One</p> <p style=”color: red”>Two</p> // Clicked! <p>Three</p> $(‘p’).click(function(event) { $(this).css(‘color’, ‘red’); }); @mikehostetler Tuesday, December 6, 11
  • 46. StarTechConf 2011 Hover  Pseudo  Event  /  Evento  de  Hover   // HTML <p>One</p> <p>Two</p> <p>Three</p> $(‘p’).hover(function(event) { $(this).css(‘color’, ‘red’); }, function() { $(this).css(‘color’, ‘’); }); @mikehostetler Tuesday, December 6, 11
  • 47. StarTechConf 2011 Binding  &  Unbinding  /  Definir  &  liberar // HTML <p>One</p> <p>Two</p> <p>Three</p> // Add event / Agregar evento $(‘p’).bind(‘click’,function(event) { $(this).css(‘color’, ‘red’); }); // Remove event / Quitar Evento $(‘p’).unbind(‘click’); @mikehostetler Tuesday, December 6, 11
  • 48. StarTechConf 2011 Binding  Events  with  .bind() // Binding an event / Definir Evento $('a.tab').bind('click',function(e){ // event handling code $(this).css(‘color’, ‘red’); }); // Unbinding an event / Liberar Evento $('a.tab').unbind('click'); @mikehostetler Tuesday, December 6, 11
  • 49. StarTechConf 2011 Binding  Events // Bind an event to execute once / Definar Evento que corra una sola vez $('a.tab').one('click',function(e){ // event handling code   $(this).css(‘color’,‘red’); }); @mikehostetler Tuesday, December 6, 11
  • 50. StarTechConf 2011 Ajax @mikehostetler Tuesday, December 6, 11
  • 51. StarTechConf 2011 Making  a  Request  /  Hacer  un  pedido $.get(‘page.php’, function(data) { $(data).appendTo(‘body’); }, ‘html’); var data = { fname: ‘Jonathan’ }; $.post(‘page.php’, data, function(data) { $(data).appendTo(‘body’); }, ‘html’); @mikehostetler Tuesday, December 6, 11
  • 52. StarTechConf 2011 Making  a  Request  with  JSON   Hacer  un  pedido  de  JSON // Response / Respuesta {“names”: [“Jonathan”, “Mike”, “Rob”], “states”: {“NE” : “Nebraska”}, “year” : “2011” } $.getJSON(‘page.php’, function(json) { $(‘body’).append( json.names[0] ); $(‘body’).append( json.states.NE ); }); @mikehostetler Tuesday, December 6, 11
  • 53. StarTechConf 2011 Making  a  Request  JSON // Response { “names”: [“Jonathan”, “Mike”, “Rob”] } $.getJSON(‘page.php’, function(json) { $.each(json.names, function(i, val) { $(‘body’).append( val ); }); }); @mikehostetler Tuesday, December 6, 11
  • 54. StarTechConf 2011 Writing Your First Plugin Escribe tu primer plugin @mikehostetler Tuesday, December 6, 11
  • 55. StarTechConf 2011 Writing  your  first  Plugin // Function Namespace $.fn // Define / Definir $.fn.elementCount = function() { alert(‘Element count: ’ + this.length); }; // Execute / Ejecutar $(‘p’).elementCount(); @mikehostetler Tuesday, December 6, 11
  • 56. StarTechConf 2011 Plugins  &  Iteration  /  Plugins  &  Iteración $.fn.elementCount = function() { // this is a jQuery Object this.each(function(i) { // this is the element $(this).html($(this).html() +‘ ‘+ i); }); }; $(‘p’).elementCount(); @mikehostetler Tuesday, December 6, 11
  • 57. StarTechConf 2011 Plugins  and  Chaining // Add support for chaining $.fn.elementCount = function() { return this.each(function(i) { $(this).html($(this).html() +‘ ‘+ i); }); }; $(‘p’).elementCount().addClass(‘active’);; @mikehostetler Tuesday, December 6, 11
  • 58. StarTechConf 2011 Plugins  and  Chaining // Plugin is required to return this $.fn.SantiagoAMil = function() { return this.each(function(i) { $(this).css(‘color’, ‘red’); }); }; $(‘p’).SantiagoAMil().addClass(‘fiesta’); @mikehostetler Tuesday, December 6, 11
  • 59. StarTechConf 2011 The Plugin Pattern El patrón de Plugin @mikehostetler Tuesday, December 6, 11
  • 60. StarTechConf 2011 The  Plugin  Pattern (function($) { $.fn.SantiagoAMil = function() { return this.each(function(i) { $(this).css(‘color’, ‘red’); }); }; })(jQuery); $(‘p’).SantiagoAMil(); @mikehostetler Tuesday, December 6, 11
  • 61. StarTechConf 2011 The  Plugin  Pattern (function($, undefined) { $.fn.SantiagoAMil = function() { return this.each(function(i) { $(this).css(‘color’, ‘red’); }); }; })(jQuery); $(‘p’).SantiagoAMil(); @mikehostetler Tuesday, December 6, 11
  • 62. StarTechConf 2011 The  Plugin  Pattern (function($) { $.fn.SantiagoAMil = function(color) { return this.each(function(i) { $(this).css(‘color’, color); }); }; })(jQuery); $(‘p’).SantiagoAMil(‘verde’); @mikehostetler Tuesday, December 6, 11
  • 63. StarTechConf 2011 The  Plugin  Pattern (function($) { $.fn.SantiagoAMil = function(color, begin) { if ( $.isFunction(begin) ) { begin(); } return this.each(function(i) { $(this).css(‘color’, color); }); }; })(jQuery); $(‘p’).SantiagoAMil(‘verde‘, begin: function() {alert(‘BEGIN!’)} ); @mikehostetler Tuesday, December 6, 11
  • 64. StarTechConf 2011 Thank You! ¡Gracias! @mikehostetler http://mike-hostetler.com http://learn.appendto.com Questions? / ¿Preguntas? @mikehostetler Tuesday, December 6, 11