SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

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
 

La actualidad más candente (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
 

Destacado

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
 

Destacado (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.
 

Similar a 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
 

Similar a 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
 

Último

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 

Último (20)

Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

An introduction to jQuery

Notas del editor

  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