SlideShare una empresa de Scribd logo
1 de 7
Refresh Detroit  JavaScript Libraries Chris J. Lee  of Holy MoLee Photography & 3.7 Designs
Refresh Detroit  Browser Sniffing  –  Why Regular Javascript Smells Bad JavaScript Libraries http://www.webreference.com/tools/browser/javascript.html MooTools  –  Sniffs out By Extending the Window Class window.ie   will be set to true if the current browser is internet explorer (any). window.ie6  will be set to true if the current browser is internet explorer 6. window.ie7  will be set to true if the current browser is internet explorer 7. window.gecko  will be set to true if the current browser is Mozilla/Gecko. window.webkit  will be set to true if the current browser is Safari/Konqueror. window.webkit419  will be set to true if the current browser is Safari2 / webkit till version 419. window.webkit420  will be set to true if the current browser is Safari3 (Webkit SVN Build) / webkit over version 419. window.opera  is set to true by opera itself.
Refresh Detroit  Browser Sniffing  –  Why Regular Javascript Smells Bad JavaScript Libraries JQuery  –  Created $.browser Object $.browser.msie   will be set to true if the current browser is internet explorer (any). $.browser.mozilla  will be set to true if the current browser is Mozilla/Gecko. $.browser.safari will be set to true if the current browser is Safari/Konqueror. $.browser.opera  is set to true by opera itself.
Refresh Detroit  Browser Sniffing  –  Why Regular Javascript Smells Bad JavaScript Libraries Prototype  ? –  No Official Browser Sniffing Solutions? Couple it with JQuery
Refresh Detroit  Selectors  – For the impatient & lazy JavaScript Libraries Wheres your ID?! Prototype - $(“div1, div2 ”); MooTools - $(“div1, div2”); Jquery - $(“div1, div2”); What if I need a class? Prototype - $$(“div1, div2 ”); MooTools - $$(“#div1, .div2”); - Returns Array Jquery - $(“.div”); Custom Selectors Jquery -  $(“:first”); $(“:hidden”); $(“:visible”); XPath - $(“/body/div/p) Attributes -  "input[@type='checkbox']"
Refresh Detroit  Events  – Clickity Click! JavaScript Libraries Clicks Prototype - Event.observe('mydiv', 'click', function(e){ alert('Event Fired') }); MooTools - $(“div1”).addEvent(“click”, function() {alert(“Event Fired”); Jquery - $(“.clickme”).bind(“click”, function() { alert(“Event Fired”); }
3point7designs.com/ HolyMoLeePhoto.com/

Más contenido relacionado

La actualidad más candente

2010 04-24-cerealize
2010 04-24-cerealize2010 04-24-cerealize
2010 04-24-cerealize
Lin Jen-Shin
 

La actualidad más candente (19)

The Dean wants to Make this WordPress Site Responsive
The Dean wants to Make this WordPress Site ResponsiveThe Dean wants to Make this WordPress Site Responsive
The Dean wants to Make this WordPress Site Responsive
 
Talk NullByteCon 2015
Talk NullByteCon 2015Talk NullByteCon 2015
Talk NullByteCon 2015
 
Responsive Design with WordPress (WCPHX)
Responsive Design with WordPress (WCPHX)Responsive Design with WordPress (WCPHX)
Responsive Design with WordPress (WCPHX)
 
Django osc2018-okinawa
Django osc2018-okinawaDjango osc2018-okinawa
Django osc2018-okinawa
 
Mina deploy
Mina deployMina deploy
Mina deploy
 
Introduction to ansible
Introduction to ansibleIntroduction to ansible
Introduction to ansible
 
Beginning Jquery In Drupal Theming
Beginning Jquery In Drupal ThemingBeginning Jquery In Drupal Theming
Beginning Jquery In Drupal Theming
 
2010 04-24-cerealize
2010 04-24-cerealize2010 04-24-cerealize
2010 04-24-cerealize
 
ActiveSupport
ActiveSupportActiveSupport
ActiveSupport
 
What the web platform (and your app!) can learn from Node.js
What the web platform (and your app!) can learn from Node.jsWhat the web platform (and your app!) can learn from Node.js
What the web platform (and your app!) can learn from Node.js
 
톰캣 #04-환경설정
톰캣 #04-환경설정톰캣 #04-환경설정
톰캣 #04-환경설정
 
What is nodejs
What is nodejsWhat is nodejs
What is nodejs
 
자바 웹 개발 시작하기 (1주차 : 웹 어플리케이션 체험 실습)
자바 웹 개발 시작하기 (1주차 : 웹 어플리케이션 체험 실습)자바 웹 개발 시작하기 (1주차 : 웹 어플리케이션 체험 실습)
자바 웹 개발 시작하기 (1주차 : 웹 어플리케이션 체험 실습)
 
SINATRA + HAML + TWITTER
SINATRA + HAML + TWITTERSINATRA + HAML + TWITTER
SINATRA + HAML + TWITTER
 
Responsive Design with WordPress
Responsive Design with WordPressResponsive Design with WordPress
Responsive Design with WordPress
 
Puppet Camp Boston 2014: Greenfield Puppet: Getting it right from the start (...
Puppet Camp Boston 2014: Greenfield Puppet: Getting it right from the start (...Puppet Camp Boston 2014: Greenfield Puppet: Getting it right from the start (...
Puppet Camp Boston 2014: Greenfield Puppet: Getting it right from the start (...
 
Bundler is the Best
Bundler is the BestBundler is the Best
Bundler is the Best
 
RSpec. Part 3
RSpec. Part 3RSpec. Part 3
RSpec. Part 3
 
Vidoop CouchDB Talk
Vidoop CouchDB TalkVidoop CouchDB Talk
Vidoop CouchDB Talk
 

Destacado (7)

Graduación
GraduaciónGraduación
Graduación
 
Reglas de Convivencia
Reglas de ConvivenciaReglas de Convivencia
Reglas de Convivencia
 
gsetysw
gsetyswgsetysw
gsetysw
 
Journalistes
JournalistesJournalistes
Journalistes
 
You Needed Me
You Needed MeYou Needed Me
You Needed Me
 
Reglasb Sicasdeconvivencia I
Reglasb Sicasdeconvivencia IReglasb Sicasdeconvivencia I
Reglasb Sicasdeconvivencia I
 
gsetysw
gsetyswgsetysw
gsetysw
 

Similar a Choosing JavaScript Libraries - Refresh-Detroit.org

Honeynet Project Workshop 2014 - Thug: a low-interaction honeyclient
Honeynet Project Workshop 2014 - Thug: a low-interaction honeyclientHoneynet Project Workshop 2014 - Thug: a low-interaction honeyclient
Honeynet Project Workshop 2014 - Thug: a low-interaction honeyclient
Angelo Dell'Aera
 
Java script browser objects 2
Java script browser objects 2Java script browser objects 2
Java script browser objects 2
H K
 
JavaScript Libraries: The Big Picture
JavaScript Libraries: The Big PictureJavaScript Libraries: The Big Picture
JavaScript Libraries: The Big Picture
Simon Willison
 
SXSW 2012 JavaScript MythBusters
SXSW 2012 JavaScript MythBustersSXSW 2012 JavaScript MythBusters
SXSW 2012 JavaScript MythBusters
Elena-Oana Tabaranu
 
Using Web Services with JavaScript - Fronttrends 2010
Using Web Services with JavaScript - Fronttrends 2010Using Web Services with JavaScript - Fronttrends 2010
Using Web Services with JavaScript - Fronttrends 2010
Christian Heilmann
 

Similar a Choosing JavaScript Libraries - Refresh-Detroit.org (20)

How to make Ajax Libraries work for you
How to make Ajax Libraries work for youHow to make Ajax Libraries work for you
How to make Ajax Libraries work for you
 
Honeynet Project Workshop 2014 - Thug: a low-interaction honeyclient
Honeynet Project Workshop 2014 - Thug: a low-interaction honeyclientHoneynet Project Workshop 2014 - Thug: a low-interaction honeyclient
Honeynet Project Workshop 2014 - Thug: a low-interaction honeyclient
 
Building Isomorphic Apps (JSConf.Asia 2014)
Building Isomorphic Apps (JSConf.Asia 2014)Building Isomorphic Apps (JSConf.Asia 2014)
Building Isomorphic Apps (JSConf.Asia 2014)
 
Java script browser objects 2
Java script browser objects 2Java script browser objects 2
Java script browser objects 2
 
Browser-level testing
Browser-level testingBrowser-level testing
Browser-level testing
 
JavaScript Libraries: The Big Picture
JavaScript Libraries: The Big PictureJavaScript Libraries: The Big Picture
JavaScript Libraries: The Big Picture
 
SXSW 2012 JavaScript MythBusters
SXSW 2012 JavaScript MythBustersSXSW 2012 JavaScript MythBusters
SXSW 2012 JavaScript MythBusters
 
Introduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint WorkshopIntroduction to Client Side Dev in SharePoint Workshop
Introduction to Client Side Dev in SharePoint Workshop
 
Toster - Understanding the Rails Web Model and Scalability Options
Toster - Understanding the Rails Web Model and Scalability OptionsToster - Understanding the Rails Web Model and Scalability Options
Toster - Understanding the Rails Web Model and Scalability Options
 
Understanding the Rails web model and scalability options
Understanding the Rails web model and scalability optionsUnderstanding the Rails web model and scalability options
Understanding the Rails web model and scalability options
 
All of javascript
All of javascriptAll of javascript
All of javascript
 
Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - Devoxx France 2016
Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - Devoxx France 2016Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - Devoxx France 2016
Get Hip with JHipster: Spring Boot + AngularJS + Bootstrap - Devoxx France 2016
 
The DOM is a Mess @ Yahoo
The DOM is a Mess @ YahooThe DOM is a Mess @ Yahoo
The DOM is a Mess @ Yahoo
 
Harmonious Development: Via Vagrant and Puppet
Harmonious Development: Via Vagrant and PuppetHarmonious Development: Via Vagrant and Puppet
Harmonious Development: Via Vagrant and Puppet
 
Using Web Services with JavaScript - Fronttrends 2010
Using Web Services with JavaScript - Fronttrends 2010Using Web Services with JavaScript - Fronttrends 2010
Using Web Services with JavaScript - Fronttrends 2010
 
Acceptance testing plone sites and add ons with robot framework and selenium
Acceptance testing plone sites and add ons with robot framework and seleniumAcceptance testing plone sites and add ons with robot framework and selenium
Acceptance testing plone sites and add ons with robot framework and selenium
 
JSConf US 2014: Building Isomorphic Apps
JSConf US 2014: Building Isomorphic AppsJSConf US 2014: Building Isomorphic Apps
JSConf US 2014: Building Isomorphic Apps
 
Persistent mobile JavaScript
Persistent mobile JavaScriptPersistent mobile JavaScript
Persistent mobile JavaScript
 
JavaScript 2.0 in Dreamweaver CS4
JavaScript 2.0 in Dreamweaver CS4JavaScript 2.0 in Dreamweaver CS4
JavaScript 2.0 in Dreamweaver CS4
 
Writing your Third Plugin
Writing your Third PluginWriting your Third Plugin
Writing your Third Plugin
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
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...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
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
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
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
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Choosing JavaScript Libraries - Refresh-Detroit.org

  • 1. Refresh Detroit JavaScript Libraries Chris J. Lee of Holy MoLee Photography & 3.7 Designs
  • 2. Refresh Detroit Browser Sniffing – Why Regular Javascript Smells Bad JavaScript Libraries http://www.webreference.com/tools/browser/javascript.html MooTools – Sniffs out By Extending the Window Class window.ie will be set to true if the current browser is internet explorer (any). window.ie6 will be set to true if the current browser is internet explorer 6. window.ie7 will be set to true if the current browser is internet explorer 7. window.gecko will be set to true if the current browser is Mozilla/Gecko. window.webkit will be set to true if the current browser is Safari/Konqueror. window.webkit419 will be set to true if the current browser is Safari2 / webkit till version 419. window.webkit420 will be set to true if the current browser is Safari3 (Webkit SVN Build) / webkit over version 419. window.opera is set to true by opera itself.
  • 3. Refresh Detroit Browser Sniffing – Why Regular Javascript Smells Bad JavaScript Libraries JQuery – Created $.browser Object $.browser.msie will be set to true if the current browser is internet explorer (any). $.browser.mozilla will be set to true if the current browser is Mozilla/Gecko. $.browser.safari will be set to true if the current browser is Safari/Konqueror. $.browser.opera is set to true by opera itself.
  • 4. Refresh Detroit Browser Sniffing – Why Regular Javascript Smells Bad JavaScript Libraries Prototype ? – No Official Browser Sniffing Solutions? Couple it with JQuery
  • 5. Refresh Detroit Selectors – For the impatient & lazy JavaScript Libraries Wheres your ID?! Prototype - $(“div1, div2 ”); MooTools - $(“div1, div2”); Jquery - $(“div1, div2”); What if I need a class? Prototype - $$(“div1, div2 ”); MooTools - $$(“#div1, .div2”); - Returns Array Jquery - $(“.div”); Custom Selectors Jquery - $(“:first”); $(“:hidden”); $(“:visible”); XPath - $(“/body/div/p) Attributes - "input[@type='checkbox']"
  • 6. Refresh Detroit Events – Clickity Click! JavaScript Libraries Clicks Prototype - Event.observe('mydiv', 'click', function(e){ alert('Event Fired') }); MooTools - $(“div1”).addEvent(“click”, function() {alert(“Event Fired”); Jquery - $(“.clickme”).bind(“click”, function() { alert(“Event Fired”); }