SlideShare a Scribd company logo
jQuery Way
                               Right path to Javascript and jQuery




Thursday, September 23, 2010
Web Triad

                               Javascript         HTML




                                            CSS




Thursday, September 23, 2010
Web Triad

                                jQuery

                               Javascript         HTML




                                            CSS




Thursday, September 23, 2010
Structure




                                    *http://developer.yahoo.com/performance/rules.html




Thursday, September 23, 2010
Real Structure




Thursday, September 23, 2010
jQuery: Start




Thursday, September 23, 2010
jQuery: Start

                                    =




Thursday, September 23, 2010
jQuery: Start

                                     =

                                  <img />
                                 <script />
                                 <style />

Thursday, September 23, 2010
DOMReady




Thursday, September 23, 2010
jQuery - Selectors


                           $(‘selectors’)


Thursday, September 23, 2010
jQuery - Selectors
                                         $(‘selectors’)
 <input                 id=”txt-email” class=”.input-text” type=”text” name=”email” />




                                                       *http://api.jquery.com/category/selectors/


Thursday, September 23, 2010
jQuery - Selectors
                                         $(‘selectors’)
 <input                 id=”txt-email” class=”.input-text” type=”text” name=”email” />
  $(‘input’)




                                                       *http://api.jquery.com/category/selectors/


Thursday, September 23, 2010
jQuery - Selectors
                                          $(‘selectors’)
 <input                 id=”txt-email” class=”.input-text” type=”text” name=”email” />
  $(‘input’)            $(‘#txt-email’)




                                                       *http://api.jquery.com/category/selectors/


Thursday, September 23, 2010
jQuery - Selectors
                                            $(‘selectors’)
 <input                 id=”txt-email” class=”.input-text” type=”text” name=”email” />
  $(‘input’)            $(‘#txt-email’)   $(‘.input-text’)




                                                             *http://api.jquery.com/category/selectors/


Thursday, September 23, 2010
jQuery - Selectors
                                            $(‘selectors’)
 <input                 id=”txt-email” class=”.input-text” type=”text” name=”email” />
  $(‘input’)            $(‘#txt-email’)   $(‘.input-text’)                       $(‘input[name=email]’)




                                                             *http://api.jquery.com/category/selectors/


Thursday, September 23, 2010
jQuery - What It Can Do?

                    • Event Handler
                    • Traversing
                    • Manipulating
                    • Helper
                    • Effect
                    • AJAX
Thursday, September 23, 2010
jQuery - Event Handler
                $(‘selectors’) .click( function() { ... } );
                                .bind(‘click’, function() { ... } );

                                .click(someFunction);




                                                  *http://api.jquery.com/category/events/
Thursday, September 23, 2010
jQuery - Traversing
                $(‘selectors’) .find(‘selectors’);
                                   .filter(‘selectors’);
                                   .parent();
                                   .parents(‘selectors’)
                                   .each(function(index, element) { ... })




                                                  *http://api.jquery.com/category/traversing/
Thursday, September 23, 2010
jQuery - Manipulating
                $(‘selectors’) .addClass(‘className’);
                               .removeClass(‘className’);
                               .css(‘name’, ‘value’);
                               .attr(‘name’, ‘value’)
                               .remove()
                               .html(‘<div />)
                               .append(‘<div />’)


                                         *http://api.jquery.com/category/manipulation/
Thursday, September 23, 2010
jQuery - Helper
                $(‘selectors’) .hasClass(‘className’);
                                  .text(‘textContent’);
                                  .val(‘value’);
                                  .val() - Returns value




Thursday, September 23, 2010
jQuery - Effect
                $(‘selectors’) .show();
                                 .show(‘slow|fast’);
                                 .hide();
                                 .toggle()
                                 .slideUp()
                                 .slideDown()
                                 .fadeIn()
                                 .fadeOut()

                                                 *http://api.jquery.com/category/effects/
Thursday, September 23, 2010
jQuery - AJAX
                $.ajax(
                  url: ‘ajax-path’,
                  type: ‘post’,
                  dataType: ‘json’,
                  success: function(data) {
                    // ...
                  }
                )


Thursday, September 23, 2010
jQuery - AJAX

                $.post(‘ajax-path’, { name: val },
                  success: function(data) {
                     // ...
                  },
                  ‘json’
                )



Thursday, September 23, 2010
$(jQuery).stop();

                Facebook: http://facebook.com/ferry.mulyono
                Twitter: @ferrymulyono




Thursday, September 23, 2010

More Related Content

What's hot (13)

PDF
DeprecatedAPI로 알아보는 SwiftUI
Bongwon Lee
 
PPTX
How to increase Performance of Web Application using JQuery
kolkatageeks
 
ODP
JQuery introduction
Pradeep Saraswathi
 
KEY
Advanced jQuery
sergioafp
 
KEY
Everything You Need to Know in Order to Start Using jQuery
Dave Ross
 
PPTX
Sharepoint 2013 - un slider JSSOR sur bib Images
Emmanuel Sotter
 
PPTX
Touch/Mobile Websites with jQuery Mobile - Boise Code Camp 2013
Brett Adler
 
PDF
How Kris Writes Symfony Apps
Kris Wallsmith
 
KEY
jQuery Selectors
jQuerySlideCasts
 
PDF
How kris-writes-symfony-apps-london
Kris Wallsmith
 
PPTX
jQuery besic
Syeful Islam
 
TXT
Declarations sample
aslamsan
 
PPTX
Leveraging jQuery's Special Events API (JSConf 2012)
James Greene
 
DeprecatedAPI로 알아보는 SwiftUI
Bongwon Lee
 
How to increase Performance of Web Application using JQuery
kolkatageeks
 
JQuery introduction
Pradeep Saraswathi
 
Advanced jQuery
sergioafp
 
Everything You Need to Know in Order to Start Using jQuery
Dave Ross
 
Sharepoint 2013 - un slider JSSOR sur bib Images
Emmanuel Sotter
 
Touch/Mobile Websites with jQuery Mobile - Boise Code Camp 2013
Brett Adler
 
How Kris Writes Symfony Apps
Kris Wallsmith
 
jQuery Selectors
jQuerySlideCasts
 
How kris-writes-symfony-apps-london
Kris Wallsmith
 
jQuery besic
Syeful Islam
 
Declarations sample
aslamsan
 
Leveraging jQuery's Special Events API (JSConf 2012)
James Greene
 

Viewers also liked (7)

PPTX
Dzejas pasākums "Svecēm piestāv dzeja" Gaujienas bibliotēkā
Signe Sēkliņa
 
PPT
Māksliniecei M. Stārastei - 100
Signe Sēkliņa
 
PPT
Dzejas kafejnīca Gaujienā
Signe Sēkliņa
 
PPT
Banaba ppt by Natural Remedies
Gayitri Krishnamurthy
 
PPTX
Steven Nichols
Steven Nichols
 
PPTX
Proyecto mundo de dulces ca3 4
FERNANDA
 
PPTX
2009 Region 9 Champions
Carter Maysilles
 
Dzejas pasākums "Svecēm piestāv dzeja" Gaujienas bibliotēkā
Signe Sēkliņa
 
Māksliniecei M. Stārastei - 100
Signe Sēkliņa
 
Dzejas kafejnīca Gaujienā
Signe Sēkliņa
 
Banaba ppt by Natural Remedies
Gayitri Krishnamurthy
 
Steven Nichols
Steven Nichols
 
Proyecto mundo de dulces ca3 4
FERNANDA
 
2009 Region 9 Champions
Carter Maysilles
 
Ad

Similar to jQuery Way (20)

PDF
The jQuery Divide
Rebecca Murphey
 
PDF
Cleaner, Leaner, Meaner: Refactoring your jQuery
Rebecca Murphey
 
PDF
Desenvolvendo Aplicativos Sociais com Rails 3
Carlos Brando
 
PDF
The Tech Side of Project Argo
Wesley Lindamood
 
PDF
SilverStripe CMS JavaScript Refactoring
Ingo Schommer
 
PDF
jQuery Basic API
Hyeonseok Shin
 
PPTX
Jquery
Pankaj Srivastava
 
KEY
Week 4 - jQuery + Ajax
baygross
 
PDF
Organizing Code with JavascriptMVC
Thomas Reynolds
 
PDF
jQuery secrets
Bastian Feder
 
PDF
jQuery - Chapter 3 - Effects
WebStackAcademy
 
PDF
dojo.things()
Peter Higgins
 
PDF
international PHP2011_Bastian Feder_jQuery's Secrets
smueller_sandsmedia
 
PPTX
A Rich Web experience with jQuery, Ajax and .NET
James Johnson
 
PPTX
presentation_jquery_ppt.pptx
azz71
 
PPTX
2a-JQuery AJAX.pptx
Le Hung
 
PPTX
A Rich Web Experience with jQuery, Ajax and .NET
James Johnson
 
PDF
Mongodb railscamphh
jan_mindmatters
 
PPTX
Prototype Framework
Julie Iskander
 
ODP
Jquery- One slide completing all JQuery
Knoldus Inc.
 
The jQuery Divide
Rebecca Murphey
 
Cleaner, Leaner, Meaner: Refactoring your jQuery
Rebecca Murphey
 
Desenvolvendo Aplicativos Sociais com Rails 3
Carlos Brando
 
The Tech Side of Project Argo
Wesley Lindamood
 
SilverStripe CMS JavaScript Refactoring
Ingo Schommer
 
jQuery Basic API
Hyeonseok Shin
 
Week 4 - jQuery + Ajax
baygross
 
Organizing Code with JavascriptMVC
Thomas Reynolds
 
jQuery secrets
Bastian Feder
 
jQuery - Chapter 3 - Effects
WebStackAcademy
 
dojo.things()
Peter Higgins
 
international PHP2011_Bastian Feder_jQuery's Secrets
smueller_sandsmedia
 
A Rich Web experience with jQuery, Ajax and .NET
James Johnson
 
presentation_jquery_ppt.pptx
azz71
 
2a-JQuery AJAX.pptx
Le Hung
 
A Rich Web Experience with jQuery, Ajax and .NET
James Johnson
 
Mongodb railscamphh
jan_mindmatters
 
Prototype Framework
Julie Iskander
 
Jquery- One slide completing all JQuery
Knoldus Inc.
 
Ad

Recently uploaded (20)

PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PPTX
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Why Orbit Edge Tech is a Top Next JS Development Company in 2025
mahendraalaska08
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Building a Production-Ready Barts Health Secure Data Environment Tooling, Acc...
Barts Health
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 

jQuery Way

  • 1. jQuery Way Right path to Javascript and jQuery Thursday, September 23, 2010
  • 2. Web Triad Javascript HTML CSS Thursday, September 23, 2010
  • 3. Web Triad jQuery Javascript HTML CSS Thursday, September 23, 2010
  • 4. Structure *http://developer.yahoo.com/performance/rules.html Thursday, September 23, 2010
  • 7. jQuery: Start = Thursday, September 23, 2010
  • 8. jQuery: Start = <img /> <script /> <style /> Thursday, September 23, 2010
  • 10. jQuery - Selectors $(‘selectors’) Thursday, September 23, 2010
  • 11. jQuery - Selectors $(‘selectors’) <input id=”txt-email” class=”.input-text” type=”text” name=”email” /> *http://api.jquery.com/category/selectors/ Thursday, September 23, 2010
  • 12. jQuery - Selectors $(‘selectors’) <input id=”txt-email” class=”.input-text” type=”text” name=”email” /> $(‘input’) *http://api.jquery.com/category/selectors/ Thursday, September 23, 2010
  • 13. jQuery - Selectors $(‘selectors’) <input id=”txt-email” class=”.input-text” type=”text” name=”email” /> $(‘input’) $(‘#txt-email’) *http://api.jquery.com/category/selectors/ Thursday, September 23, 2010
  • 14. jQuery - Selectors $(‘selectors’) <input id=”txt-email” class=”.input-text” type=”text” name=”email” /> $(‘input’) $(‘#txt-email’) $(‘.input-text’) *http://api.jquery.com/category/selectors/ Thursday, September 23, 2010
  • 15. jQuery - Selectors $(‘selectors’) <input id=”txt-email” class=”.input-text” type=”text” name=”email” /> $(‘input’) $(‘#txt-email’) $(‘.input-text’) $(‘input[name=email]’) *http://api.jquery.com/category/selectors/ Thursday, September 23, 2010
  • 16. jQuery - What It Can Do? • Event Handler • Traversing • Manipulating • Helper • Effect • AJAX Thursday, September 23, 2010
  • 17. jQuery - Event Handler $(‘selectors’) .click( function() { ... } ); .bind(‘click’, function() { ... } ); .click(someFunction); *http://api.jquery.com/category/events/ Thursday, September 23, 2010
  • 18. jQuery - Traversing $(‘selectors’) .find(‘selectors’); .filter(‘selectors’); .parent(); .parents(‘selectors’) .each(function(index, element) { ... }) *http://api.jquery.com/category/traversing/ Thursday, September 23, 2010
  • 19. jQuery - Manipulating $(‘selectors’) .addClass(‘className’); .removeClass(‘className’); .css(‘name’, ‘value’); .attr(‘name’, ‘value’) .remove() .html(‘<div />) .append(‘<div />’) *http://api.jquery.com/category/manipulation/ Thursday, September 23, 2010
  • 20. jQuery - Helper $(‘selectors’) .hasClass(‘className’); .text(‘textContent’); .val(‘value’); .val() - Returns value Thursday, September 23, 2010
  • 21. jQuery - Effect $(‘selectors’) .show(); .show(‘slow|fast’); .hide(); .toggle() .slideUp() .slideDown() .fadeIn() .fadeOut() *http://api.jquery.com/category/effects/ Thursday, September 23, 2010
  • 22. jQuery - AJAX $.ajax( url: ‘ajax-path’, type: ‘post’, dataType: ‘json’, success: function(data) { // ... } ) Thursday, September 23, 2010
  • 23. jQuery - AJAX $.post(‘ajax-path’, { name: val }, success: function(data) { // ... }, ‘json’ ) Thursday, September 23, 2010
  • 24. $(jQuery).stop(); Facebook: http://facebook.com/ferry.mulyono Twitter: @ferrymulyono Thursday, September 23, 2010