SlideShare ist ein Scribd-Unternehmen logo
1 von 19
A BRIEF INTRO

    Madgex
WHAT IS IT?
WHAT IS IT?

•AJavaScript library with the philosophy "Writing JavaScript
code should be fun"
WHAT IS IT?

•A JavaScript library with the philosophy "Writing JavaScript
 code should be fun"
• Simplifies   stuff & adds common functionality
WHAT IS IT?

•A JavaScript library with the philosophy "Writing JavaScript
 code should be fun"
• Simplifies   stuff & adds common functionality
• Removessome cross-browser headaches (events/AJAX/
 window.onload)
WHAT IS IT?

•A JavaScript library with the philosophy "Writing JavaScript
 code should be fun"
• Simplifies   stuff & adds common functionality
• Removessome cross-browser headaches (events/
 window.onload)
• Pretty   small at 19KB minified & gzipped
HOW DO YOU USE IT?

• "Find   stuff & do stuff to it"
HOW DO YOU USE IT?

• "Find   stuff & do stuff to it"
• Finding   stuff is based around CSS(1-3) selectors & XPath
HOW DO YOU USE IT?

• "Find   stuff & do stuff to it"
• Finding   stuff is based around CSS(1-3) selectors & XPath
• Threemain 'doing' categories based around: manipulation,
 returning a value & modifying
HOW DO YOU USE IT?

• "Find   stuff & do stuff to it"
• Finding   stuff is based around CSS(1-3) selectors & XPath
• Threemain 'doing' categories based around: manipulation,
 returning a value & modifying
• Chaining    methods together - makes it look weird
ME
 H O W E!
S    CO D
T HE
SELECTING
jQuery('div.panel')
All divs with class=“panel”
$('p#intro')
The paragraph with id=“intro”
$('div#content
a:visible')
All visible links inside the div with id=“content”
$('input[name=email]')
All input fields with name=“email”
$('table.orders
tr:odd')
“odd” numbered rows in a table with class “orders”
MANIPULATION
$('div#primary').width(300);
Set the width of div id=“primary” to 300 px.
$('p').css('line‐height',
'1.8em');
Apply a line-height of 1.8em to all paragraphs.
$('li:odd').css({color:
'white',
backgroundColor:
'black'});
Apply two CSS rules to every other list item; note that the css() function can take an object
instead of two strings.
var
div
=
$('<div>Some
text</div>').addClass('inserted').attr('id',
'foo');
div.appendTo(document.body);
Create a snippet of HTML, add some attributes then add it to the document.
RESULT SET MANIPULATION
$('div').not('[id]')
Returns divs that do not have an id attribute.
$('h2').parent()
Returns all elements that are direct parents of an h2.
$('blockquote').children()
Returns all elements that are children of a blockquote.
$('p').eq(4).next()
Find the fifth paragraph on the page, then find the next element (its direct sibling to the right).
$('input:text:first').parents('form')
Find the form parent of the first input type=“text” field on the page. The optional argument to parents()
is another selector.
EVENTS
$('p').click(function()
{




$(this).css('background‐color',
'red');
});
Set up paragraphs so that when you click them they turn red.
$('a').hover(function()
{




$(this).css('background‐color',
'orange');
},
function()
{




$(this).css('background‐color',
'white');
});
hover() is a shortcut for setting up two functions that run onmouseover and
onmouseout.
AJAX
$.ajax({


type:
"POST",


data:
“name=Dave&location=Brighton”


url:
"/getusers",


success:
function(data){





console.log(‘data
from
server:
’,
data);


}
});
ANIMATION




$("p").click(function
()
{






$(this).fadeOut("slow");




});




$("div#clickme").click(function
()
{






$(this).animate({









width:
"70%",








opacity:
0.4,








marginLeft:
"20px",








fontSize:
"3em",









borderWidth:
"10px"






},
1500
);




});
EXAMPLE
LINKY LINKS

• http://jquery.com   & http://docs.jquery.com
• http://docs.jquery.com/discussion

• http://api.jquery.com   - Interactive API browser & AIR
 download
• jQuery for JavaScript developers - http://tinyurl.com/
 jq4jsdevs

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to jQuery (Ajax Exp 2007)
Introduction to jQuery (Ajax Exp 2007)Introduction to jQuery (Ajax Exp 2007)
Introduction to jQuery (Ajax Exp 2007)jeresig
 
Advanced jQuery (Ajax Exp 2007)
Advanced jQuery (Ajax Exp 2007)Advanced jQuery (Ajax Exp 2007)
Advanced jQuery (Ajax Exp 2007)jeresig
 
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the FutureJQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the FutureMatthew Taylor
 
Drupal Best Practices
Drupal Best PracticesDrupal Best Practices
Drupal Best Practicesmanugoel2003
 
Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)jeresig
 
JavaScript Library Overview (Ajax Exp West 2007)
JavaScript Library Overview (Ajax Exp West 2007)JavaScript Library Overview (Ajax Exp West 2007)
JavaScript Library Overview (Ajax Exp West 2007)jeresig
 
Learning jQuery made exciting in an interactive session by one of our team me...
Learning jQuery made exciting in an interactive session by one of our team me...Learning jQuery made exciting in an interactive session by one of our team me...
Learning jQuery made exciting in an interactive session by one of our team me...Thinqloud
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQueryZeeshan Khan
 
jQuery Learning
jQuery LearningjQuery Learning
jQuery LearningUzair Ali
 
Jquery, write less do more by weLaika
Jquery, write less do more by weLaikaJquery, write less do more by weLaika
Jquery, write less do more by weLaikaFilippo Dino
 
Introduction to jQuery - The basics
Introduction to jQuery - The basicsIntroduction to jQuery - The basics
Introduction to jQuery - The basicsMaher Hossain
 

Was ist angesagt? (20)

Introduction to jQuery (Ajax Exp 2007)
Introduction to jQuery (Ajax Exp 2007)Introduction to jQuery (Ajax Exp 2007)
Introduction to jQuery (Ajax Exp 2007)
 
jQuery Essentials
jQuery EssentialsjQuery Essentials
jQuery Essentials
 
Advanced jQuery (Ajax Exp 2007)
Advanced jQuery (Ajax Exp 2007)Advanced jQuery (Ajax Exp 2007)
Advanced jQuery (Ajax Exp 2007)
 
Jquery introduction
Jquery introductionJquery introduction
Jquery introduction
 
JQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the FutureJQuery: JavaScript Library of the Future
JQuery: JavaScript Library of the Future
 
jQuery
jQueryjQuery
jQuery
 
jQuery
jQueryjQuery
jQuery
 
Drupal Best Practices
Drupal Best PracticesDrupal Best Practices
Drupal Best Practices
 
Creative Web 2 - CSS
Creative Web 2 - CSS Creative Web 2 - CSS
Creative Web 2 - CSS
 
jQuery Introduction
jQuery IntroductionjQuery Introduction
jQuery Introduction
 
Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)Introduction to jQuery (Ajax Exp 2006)
Introduction to jQuery (Ajax Exp 2006)
 
Jquery
JqueryJquery
Jquery
 
JavaScript Library Overview (Ajax Exp West 2007)
JavaScript Library Overview (Ajax Exp West 2007)JavaScript Library Overview (Ajax Exp West 2007)
JavaScript Library Overview (Ajax Exp West 2007)
 
Learning jQuery made exciting in an interactive session by one of our team me...
Learning jQuery made exciting in an interactive session by one of our team me...Learning jQuery made exciting in an interactive session by one of our team me...
Learning jQuery made exciting in an interactive session by one of our team me...
 
Introduction to jQuery
Introduction to jQueryIntroduction to jQuery
Introduction to jQuery
 
jQuery Learning
jQuery LearningjQuery Learning
jQuery Learning
 
Jquery, write less do more by weLaika
Jquery, write less do more by weLaikaJquery, write less do more by weLaika
Jquery, write less do more by weLaika
 
Introduction to jQuery - The basics
Introduction to jQuery - The basicsIntroduction to jQuery - The basics
Introduction to jQuery - The basics
 
jQuery
jQueryjQuery
jQuery
 
Learn css3
Learn css3Learn css3
Learn css3
 

Andere mochten auch

King Daddy - Wedding Presentation
King Daddy - Wedding PresentationKing Daddy - Wedding Presentation
King Daddy - Wedding Presentationgraemepatterson
 
Adult cardiac surgery
Adult cardiac surgeryAdult cardiac surgery
Adult cardiac surgeryuhs
 
Getting data "hackday ready".
Getting data "hackday ready".Getting data "hackday ready".
Getting data "hackday ready".Harry Harrold
 
Contrary to popular belief
Contrary to popular beliefContrary to popular belief
Contrary to popular beliefJames Wragg
 
Paper prototyping: early stage feedback on ux
Paper prototyping: early stage feedback on uxPaper prototyping: early stage feedback on ux
Paper prototyping: early stage feedback on uxHarry Harrold
 

Andere mochten auch (7)

Everyday spaces
Everyday spacesEveryday spaces
Everyday spaces
 
King Daddy - Wedding Presentation
King Daddy - Wedding PresentationKing Daddy - Wedding Presentation
King Daddy - Wedding Presentation
 
Adult cardiac surgery
Adult cardiac surgeryAdult cardiac surgery
Adult cardiac surgery
 
Getting data "hackday ready".
Getting data "hackday ready".Getting data "hackday ready".
Getting data "hackday ready".
 
Contrary to popular belief
Contrary to popular beliefContrary to popular belief
Contrary to popular belief
 
Paper prototyping: early stage feedback on ux
Paper prototyping: early stage feedback on uxPaper prototyping: early stage feedback on ux
Paper prototyping: early stage feedback on ux
 
How we got here.
How we got here.How we got here.
How we got here.
 

Ähnlich wie An introduction to jQuery

Iniciando com jquery
Iniciando com jqueryIniciando com jquery
Iniciando com jqueryDanilo Sousa
 
fuser interface-development-using-jquery
fuser interface-development-using-jqueryfuser interface-development-using-jquery
fuser interface-development-using-jqueryKostas Mavridis
 
jQuery Rescue Adventure
jQuery Rescue AdventurejQuery Rescue Adventure
jQuery Rescue AdventureAllegient
 
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
 
SharePointfest Denver - A jQuery Primer for SharePoint
SharePointfest Denver -  A jQuery Primer for SharePointSharePointfest Denver -  A jQuery Primer for SharePoint
SharePointfest Denver - A jQuery Primer for SharePointMarc D Anderson
 
JavaScript!
JavaScript!JavaScript!
JavaScript!RTigger
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentationguest5d87aa6
 
SEF2013 - A jQuery Primer for SharePoint
SEF2013 - A jQuery Primer for SharePointSEF2013 - A jQuery Primer for SharePoint
SEF2013 - A jQuery Primer for SharePointMarc D Anderson
 
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)Doris Chen
 
Caffeinated Style Sheets
Caffeinated Style SheetsCaffeinated Style Sheets
Caffeinated Style SheetsTommy Hodgins
 
User Interface Development with jQuery
User Interface Development with jQueryUser Interface Development with jQuery
User Interface Development with jQuerycolinbdclark
 
Jquery In Rails
Jquery In RailsJquery In Rails
Jquery In Railsshen liu
 

Ähnlich wie An introduction to jQuery (20)

Iniciando com jquery
Iniciando com jqueryIniciando com jquery
Iniciando com jquery
 
J Query Public
J Query PublicJ Query Public
J Query Public
 
JQuery
JQueryJQuery
JQuery
 
fuser interface-development-using-jquery
fuser interface-development-using-jqueryfuser interface-development-using-jquery
fuser interface-development-using-jquery
 
Jquery News Packages
Jquery News PackagesJquery News Packages
Jquery News Packages
 
jQuery Rescue Adventure
jQuery Rescue AdventurejQuery Rescue Adventure
jQuery Rescue Adventure
 
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)
 
SharePointfest Denver - A jQuery Primer for SharePoint
SharePointfest Denver -  A jQuery Primer for SharePointSharePointfest Denver -  A jQuery Primer for SharePoint
SharePointfest Denver - A jQuery Primer for SharePoint
 
Jquery
JqueryJquery
Jquery
 
JavaScript!
JavaScript!JavaScript!
JavaScript!
 
J query1
J query1J query1
J query1
 
Jquery presentation
Jquery presentationJquery presentation
Jquery presentation
 
SEF2013 - A jQuery Primer for SharePoint
SEF2013 - A jQuery Primer for SharePointSEF2013 - A jQuery Primer for SharePoint
SEF2013 - A jQuery Primer for SharePoint
 
bcgr3-jquery
bcgr3-jquerybcgr3-jquery
bcgr3-jquery
 
bcgr3-jquery
bcgr3-jquerybcgr3-jquery
bcgr3-jquery
 
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
 
Caffeinated Style Sheets
Caffeinated Style SheetsCaffeinated Style Sheets
Caffeinated Style Sheets
 
User Interface Development with jQuery
User Interface Development with jQueryUser Interface Development with jQuery
User Interface Development with jQuery
 
Jquery In Rails
Jquery In RailsJquery In Rails
Jquery In Rails
 
Jquery fundamentals
Jquery fundamentalsJquery fundamentals
Jquery fundamentals
 

Kürzlich hochgeladen

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
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
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
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
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 

Kürzlich hochgeladen (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
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
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
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
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 

An introduction to jQuery

Hinweis der Redaktion

  1. I&amp;#x2019;ve been working with jQuery for a little while now. It seems to be gaining more mainstream momentum than other JS libraries, and MS is providing Intelisense for it in VS2008.\nIt&apos;s only fairly recently been given the green light for project work so Jane asked me to do a little ramble on it to introduce you if your not already aquainted.\n
  2. \n
  3. Most of the time it is! In the past JavaScript could be, we&amp;#x2019;ll say, fiddly. Flip side is jQuery - it&amp;#x2019;s like sprinkling magic dust on your HTML.\nIt has a nice low barrier to entry - it must do - I&amp;#x2019;m using it.\nYes it&amp;#x2019;s a library, potentially not as fast as pure old school JS.\n
  4. \n
  5. Easy DOM traversal, you can find elements and more around easily\nAdds easy manipulation of elements(moving/altering content)\nEvents, Ajax &amp; Animations\n
  6. jQuery provides simple, unified handling of ajax &amp; events (clicks, mouseovers, keypress&amp;#x2019; etc.)\nIE&amp;#x2019;s AJAX support is different to the W3C method - ActiveX vs. XMLHTTPRequest.\nConsistent DOM ready - essential for unobtrusive JS\n\n
  7. \n
  8. jQuery&amp;#x2019;s mantra is &quot;Find stuff &amp; do stuff to it&quot;\n\n
  9. Uses CSS1-3, and some customs like :visible, :odd\n
  10. Manipulate all of the matched elements.\nReturn a value from the first matched object.\nmodify the selection itself.\n
  11. A jQuery aim is to &amp;#x201C;change the way you write JavaScript&amp;#x201D; - this may put you off, but the reason they say it is because of it&amp;#x2019;s powerful chaining ability - you can chain one method onto another passing the results of the current method on to the next.\n
  12. Tom says enough chat - he wants code!\n
  13. I&amp;#x2019;m going to quickly show some slides of code &amp; then some examples in Firebug.\n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n