SlideShare a Scribd company logo
Quick Start Guide to JavaScript
Frameworks for SharePoint Apps
SharePoint
Saturday
Cambridge
e
By Sonja Madsen
SharePoint MVP
SONJASAPPS
Consulting
Speaker
@sonjamadsen
sp2013.blogspot.com
dev@sonjasapps.com
www.sonjasapps.com
Sonja Madsen
JavaScript Frameworks and Libraries
SharePoint Saturday
Cambridge
SharePoint Apps
SharePoint 2003-2010
SharePoint 2010-2013
JavaScript Frameworks
Standardized code structure and rules
HTML, CSS and JS
Front-end frameworks
CSS to position elements
Typography styles
Browser compatibility
Standard CSS classes
Set of tools
Imposes no structure
jQuery
JavaScript library
Most popular
Open-source
Released in 2006
Easier to select DOM elements
Used in Bootstrap and other libraries
jQuery
Start with $(document).ready(function(){
AJAX calls $.ajax({
Element selector $(".item")
Chaining $(".item").addClass("blue").slideDown("slow");
Jquery.ui, jquery.validation
Bootstrap
The most popular HTML, CSS, and JS framework for developing
responsive, mobile first projects on the web
Open-source
Twitter Bootstrap in 2011
Bootstrap 3.0 - mobile first
Bootstrap 4 alpha
Bootstrap
CSS
Grid, typography, code, tables, forms, buttons, images
Components
Glyphicons, dropdowns, input, navs, nav bars, breadcrumbs, pagination, labels,
badges, jumbotron, page header, thumbnails, alerts, progress bars, media object, list
group, panels, responsive embed, wells
JavaScript
 Transitions, modal, dropdown, scrollspy, tab, tooltip, popover, alert, button,
collapse, carousel, affix
Customize
Bootstrap
• Grid
• Forms
• Navigation, tabs
• Popovers, badges, collapse, pagination…
DEMO Bootstrap Provider App
DEMO Bootstrap
SharePoint hosted app
DEMO Bootstrap with LESS
SharePoint hosted app
Bootstrap Themes
Bootswatch – free themes at bootswatch.com
Wrapbootstrap – payed themes at wrapbootstrap.com
Official Bootstrap themes -
http://themes.getbootstrap.com/collections/all
LESS
Extends the CSS language, adding features that allow
variables, mixins, functions
Bootstrap is based on LESS
Bootstrap 4.0 is based on SASS
jQuery Validation / Unobtrusive
HTML
<input type=“text” id=“SiteTitle”
JavaScript
rules: {
"SiteTitle": { required: true,
minlength: 5 }
},
messages: {
"SiteTitle": {
required: "Please enter the site
title.",
minlength: "Minimum length is 5
letters."
}
}
HTML
<input type="text“ id=“SiteTitle”
data-rule-required="true"
data-msg-required="The Site Title
field is required.“
data-rule-minlength="5"
data-msg-minlength="The minimum
length is 5 letters.“
JavaScript
$form.validate();
Data rules
• data-rule-required="true"
• data-rule-email="true"
• data-rule-url="true"
• data-rule-date="true"
• data-rule-dateISO="true"
• data-rule-number="true"
• data-rule-digits="true"
• data-rule-creditcard="true"
• data-rule-minlength="6"
• data-rule-maxlength="24"
• data-rule-rangelength="5,10"
• data-rule-min="5"
• data-rule-max="10"
• data-rule-range="5,10"
DEMO Validation
Modernizr
Detects HTML5 and CSS3 features that your browser supports on
page load
Result of “feature detection” is “yes” or “no”
Adds classes to HTML
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-
browser-Polyfills
Support IE6+, Firefox 3.5+, Opera 9.6+, Safari 2+, Chrome
Modernizr
Yepnopejs is deprecated
Modernizr.load({
test: Modernizr.borderradius,
yep : alert("This browser supports border radius."),
nope: 'PIE_IE678.js'
});
Respondjs
It loops through the CSS referenced on the page
IE8: re-requests the CSS files using Ajax
Polyfill for CSS min-width and max-width in browsers that don't
support CSS3 Media Queries
Polyfills, shims
Shim: a generic code, a library that brings a new API to an older
environment
Polyfill: downloadable code with fallback for functionality that is
not available in your browser
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-
browser-Polyfills
Links
jQuery http://api.jquery.com/
Bootstrap tutorial
http://www.tutorialspoint.com/bootstrap/bootstrap_tutorial.pdf
Modernizr http://modernizr.com/docs/
Respond https://github.com/scottjehl/Respond
Building Responsive UI with Bootstrap on MVA
http://www.microsoftvirtualacademy.com/training-
courses/building-responsive-ui-with-bootstrap
LESS http://lesscss.org/
JavaScript Frameworks for SharePoint add-ins Cambridge
Stick around for SWAG! (Prize drawing at 5.00 p.m)
• All our volunteers and organisers do not get paid for running SPS
SQLSaturday Cambridge and do it because they believe in the power of
community (or are just plain nuts). Please show your gratitude for making
this possible by:
• Giving them a hug
• Shaking their hand
• Saying thank you
• Coming back next year
• Consider getting your company to pay for a precon next year
• Speading the word
• Getting involved yourself
• But most of all, by enjoying the day!
• Don’t forget to thank the sponsors for their support
• Thank the speakers for donating their time, energy and expenses
Stick around for SWAG! (Prize drawing at 5.00 p.m)
SQLCloud — XBox One!!! (make sure you know how to play the Jet Set Willy vendor competition!)
SQLCloud—Dark Side Of The Moon, The Wall and Wish You Were Here
Microsoft — MCP Voucher
Data Idols — Supercar Driving Experience
Profisee — Signed MDS Book and £50 Amazon Voucher
SQLSentry — Plan Explorer PRO License
Pyramid Analytics—Coffee Machine
Effektor — Lego Big Ben
Rencore — SPCAF Professional License (valued at $2099!)
Axioworks — Amazon Fire TV and £75 Amazon Voucher
DELL — Beats by Dr Dre Headphones
Redgate — DLM Workshop
Pluralsight — Annual Plus subscriptions
All Your Base Conference — 3 x Conference Tickets
VisualSP—Annual training subscription
Loads of books and much much more!!!

More Related Content

PPTX
Quick start guide to java script frameworks for sharepoint add ins oslo
PPTX
Quick start guide to java script frameworks for sharepoint apps spsbe-2015
PPTX
Quick start guide to java script frameworks for sharepoint add ins sharepoint...
PPTX
PDF
Introduction to html & css
PPTX
Mongo - an intermediate introduction
PPTX
Introducing project spartan
PDF
Php course
Quick start guide to java script frameworks for sharepoint add ins oslo
Quick start guide to java script frameworks for sharepoint apps spsbe-2015
Quick start guide to java script frameworks for sharepoint add ins sharepoint...
Introduction to html & css
Mongo - an intermediate introduction
Introducing project spartan
Php course

What's hot (20)

PPTX
Introduction to Jquery
PDF
Who's afraid of front end databases?
KEY
MongoDB Hadoop DC
PDF
Explaining Ajax
PDF
Search as main navigation
PDF
MongoDB at FrozenRails
PPTX
Java script objects
PPTX
HTML5 for ASP.NET Developers
PPTX
Client storage
PPTX
Html5 css3 Online Training
PPTX
Conceptos básicos. Seminario web 6: Despliegue de producción
KEY
An Evening with MongoDB - Orlando: Welcome and Keynote
PDF
Scalability and Real-time Queries with Elasticsearch
PPTX
Displaying message on web page in Javascript
PPTX
Notes on SF W3Conf
PDF
PPTX
Ajax and Jquery
PDF
AJAX - An introduction
Introduction to Jquery
Who's afraid of front end databases?
MongoDB Hadoop DC
Explaining Ajax
Search as main navigation
MongoDB at FrozenRails
Java script objects
HTML5 for ASP.NET Developers
Client storage
Html5 css3 Online Training
Conceptos básicos. Seminario web 6: Despliegue de producción
An Evening with MongoDB - Orlando: Welcome and Keynote
Scalability and Real-time Queries with Elasticsearch
Displaying message on web page in Javascript
Notes on SF W3Conf
Ajax and Jquery
AJAX - An introduction
Ad

Similar to JavaScript Frameworks for SharePoint add-ins Cambridge (20)

PPTX
JavaScript front end performance optimizations
PPTX
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
PPTX
The SharePoint & jQuery Guide
PPTX
(Updated) SharePoint & jQuery Guide
PDF
AtlasCamp 2014: 10 Things a Front End Developer Should Know About Connect
PPTX
Quickstartguidetojavascriptframeworksforsharepointapps spsbe-2015-15041903264...
PPTX
SharePoint and jQuery Essentials
PPTX
Hdv309 - Real World Sandboxed Solutions
PDF
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
PPTX
SPSTC - SharePoint & jQuery Essentials
PPTX
SPSNH 2014 - The SharePoint & jQueryGuide
PPTX
About Best friends - HTML, CSS and JS
PPTX
SharePoint Cincy 2012 - jQuery essentials
PDF
HTML5: Introduction
PDF
Javascript Libraries
PDF
Blazing Fast Analytics with MongoDB & Spark
PDF
GDG-USAR Tech winter break 2024 USAR.pdf
PPTX
SPTechCon DevDays - SharePoint & jQuery
PPTX
Building your First MEAN App
KEY
The Devil and HTML5
JavaScript front end performance optimizations
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide
AtlasCamp 2014: 10 Things a Front End Developer Should Know About Connect
Quickstartguidetojavascriptframeworksforsharepointapps spsbe-2015-15041903264...
SharePoint and jQuery Essentials
Hdv309 - Real World Sandboxed Solutions
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)
SPSTC - SharePoint & jQuery Essentials
SPSNH 2014 - The SharePoint & jQueryGuide
About Best friends - HTML, CSS and JS
SharePoint Cincy 2012 - jQuery essentials
HTML5: Introduction
Javascript Libraries
Blazing Fast Analytics with MongoDB & Spark
GDG-USAR Tech winter break 2024 USAR.pdf
SPTechCon DevDays - SharePoint & jQuery
Building your First MEAN App
The Devil and HTML5
Ad

More from Sonja Madsen (20)

PPTX
SharePoint Framework, React, and Office UI sps Silicon Valley
PPTX
Building SharePoint add-ins with JavaScript and c# sps Silicon Valley
PPTX
SharePoint Framework, React, and Office UI Fabric spc adriatics 2016
PPTX
SharePoint Framework, React and Office UI SPS Paris 2016 - d01
PPTX
Working with a super model for SharePoint Tuga IT 2016
PPTX
SharePoint Framework SPS Madrid 2016
PPTX
Cloud-first SharePoint JavaScript Add-ins - Collab 365
PPTX
Building Share Point add-ins with JavaScript and c# Microsoft Western Europe ...
PPTX
Office 365 security concerns, EU General Data Protection Regulation (GDPR)
PPTX
Share point hosted add ins munich
PPTX
Workshop supermodel munich
PPTX
GitHub and Office 365 video Munich
PPTX
Branding Office 365 SharePoint Days
PPTX
Patterns in add ins espc15
PPTX
Branding Office 365 ESPC15
PPTX
Wonderful csom sps barcelona
PPTX
Branding office 365 copenhagen
PPTX
Branding office 365 Netherlands
PPTX
Branding office 365
PPTX
Introduktion til SharePoint apps
SharePoint Framework, React, and Office UI sps Silicon Valley
Building SharePoint add-ins with JavaScript and c# sps Silicon Valley
SharePoint Framework, React, and Office UI Fabric spc adriatics 2016
SharePoint Framework, React and Office UI SPS Paris 2016 - d01
Working with a super model for SharePoint Tuga IT 2016
SharePoint Framework SPS Madrid 2016
Cloud-first SharePoint JavaScript Add-ins - Collab 365
Building Share Point add-ins with JavaScript and c# Microsoft Western Europe ...
Office 365 security concerns, EU General Data Protection Regulation (GDPR)
Share point hosted add ins munich
Workshop supermodel munich
GitHub and Office 365 video Munich
Branding Office 365 SharePoint Days
Patterns in add ins espc15
Branding Office 365 ESPC15
Wonderful csom sps barcelona
Branding office 365 copenhagen
Branding office 365 Netherlands
Branding office 365
Introduktion til SharePoint apps

Recently uploaded (20)

DOCX
Unit-3 cyber security network security of internet system
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PPT
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
PDF
Sims 4 Historia para lo sims 4 para jugar
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
The Internet -By the Numbers, Sri Lanka Edition
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Funds Management Learning Material for Beg
PPT
tcp ip networks nd ip layering assotred slides
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PDF
SASE Traffic Flow - ZTNA Connector-1.pdf
PPTX
Digital Literacy And Online Safety on internet
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
presentation_pfe-universite-molay-seltan.pptx
Unit-3 cyber security network security of internet system
Tenda Login Guide: Access Your Router in 5 Easy Steps
isotopes_sddsadsaadasdasdasdasdsa1213.ppt
Sims 4 Historia para lo sims 4 para jugar
Job_Card_System_Styled_lorem_ipsum_.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
The Internet -By the Numbers, Sri Lanka Edition
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Funds Management Learning Material for Beg
tcp ip networks nd ip layering assotred slides
Unit-1 introduction to cyber security discuss about how to secure a system
SASE Traffic Flow - ZTNA Connector-1.pdf
Digital Literacy And Online Safety on internet
introduction about ICD -10 & ICD-11 ppt.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Decoding a Decade: 10 Years of Applied CTI Discipline
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
presentation_pfe-universite-molay-seltan.pptx

JavaScript Frameworks for SharePoint add-ins Cambridge

  • 1. Quick Start Guide to JavaScript Frameworks for SharePoint Apps SharePoint Saturday Cambridge e By Sonja Madsen
  • 3. JavaScript Frameworks and Libraries SharePoint Saturday Cambridge
  • 5. JavaScript Frameworks Standardized code structure and rules HTML, CSS and JS Front-end frameworks CSS to position elements Typography styles Browser compatibility Standard CSS classes Set of tools Imposes no structure
  • 6. jQuery JavaScript library Most popular Open-source Released in 2006 Easier to select DOM elements Used in Bootstrap and other libraries
  • 7. jQuery Start with $(document).ready(function(){ AJAX calls $.ajax({ Element selector $(".item") Chaining $(".item").addClass("blue").slideDown("slow"); Jquery.ui, jquery.validation
  • 8. Bootstrap The most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web Open-source Twitter Bootstrap in 2011 Bootstrap 3.0 - mobile first Bootstrap 4 alpha
  • 9. Bootstrap CSS Grid, typography, code, tables, forms, buttons, images Components Glyphicons, dropdowns, input, navs, nav bars, breadcrumbs, pagination, labels, badges, jumbotron, page header, thumbnails, alerts, progress bars, media object, list group, panels, responsive embed, wells JavaScript  Transitions, modal, dropdown, scrollspy, tab, tooltip, popover, alert, button, collapse, carousel, affix Customize
  • 10. Bootstrap • Grid • Forms • Navigation, tabs • Popovers, badges, collapse, pagination…
  • 13. DEMO Bootstrap with LESS SharePoint hosted app
  • 14. Bootstrap Themes Bootswatch – free themes at bootswatch.com Wrapbootstrap – payed themes at wrapbootstrap.com Official Bootstrap themes - http://themes.getbootstrap.com/collections/all
  • 15. LESS Extends the CSS language, adding features that allow variables, mixins, functions Bootstrap is based on LESS Bootstrap 4.0 is based on SASS
  • 16. jQuery Validation / Unobtrusive HTML <input type=“text” id=“SiteTitle” JavaScript rules: { "SiteTitle": { required: true, minlength: 5 } }, messages: { "SiteTitle": { required: "Please enter the site title.", minlength: "Minimum length is 5 letters." } } HTML <input type="text“ id=“SiteTitle” data-rule-required="true" data-msg-required="The Site Title field is required.“ data-rule-minlength="5" data-msg-minlength="The minimum length is 5 letters.“ JavaScript $form.validate();
  • 17. Data rules • data-rule-required="true" • data-rule-email="true" • data-rule-url="true" • data-rule-date="true" • data-rule-dateISO="true" • data-rule-number="true" • data-rule-digits="true" • data-rule-creditcard="true" • data-rule-minlength="6" • data-rule-maxlength="24" • data-rule-rangelength="5,10" • data-rule-min="5" • data-rule-max="10" • data-rule-range="5,10"
  • 19. Modernizr Detects HTML5 and CSS3 features that your browser supports on page load Result of “feature detection” is “yes” or “no” Adds classes to HTML https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross- browser-Polyfills Support IE6+, Firefox 3.5+, Opera 9.6+, Safari 2+, Chrome
  • 20. Modernizr Yepnopejs is deprecated Modernizr.load({ test: Modernizr.borderradius, yep : alert("This browser supports border radius."), nope: 'PIE_IE678.js' });
  • 21. Respondjs It loops through the CSS referenced on the page IE8: re-requests the CSS files using Ajax Polyfill for CSS min-width and max-width in browsers that don't support CSS3 Media Queries
  • 22. Polyfills, shims Shim: a generic code, a library that brings a new API to an older environment Polyfill: downloadable code with fallback for functionality that is not available in your browser https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross- browser-Polyfills
  • 23. Links jQuery http://api.jquery.com/ Bootstrap tutorial http://www.tutorialspoint.com/bootstrap/bootstrap_tutorial.pdf Modernizr http://modernizr.com/docs/ Respond https://github.com/scottjehl/Respond Building Responsive UI with Bootstrap on MVA http://www.microsoftvirtualacademy.com/training- courses/building-responsive-ui-with-bootstrap LESS http://lesscss.org/
  • 25. Stick around for SWAG! (Prize drawing at 5.00 p.m) • All our volunteers and organisers do not get paid for running SPS SQLSaturday Cambridge and do it because they believe in the power of community (or are just plain nuts). Please show your gratitude for making this possible by: • Giving them a hug • Shaking their hand • Saying thank you • Coming back next year • Consider getting your company to pay for a precon next year • Speading the word • Getting involved yourself • But most of all, by enjoying the day! • Don’t forget to thank the sponsors for their support • Thank the speakers for donating their time, energy and expenses
  • 26. Stick around for SWAG! (Prize drawing at 5.00 p.m) SQLCloud — XBox One!!! (make sure you know how to play the Jet Set Willy vendor competition!) SQLCloud—Dark Side Of The Moon, The Wall and Wish You Were Here Microsoft — MCP Voucher Data Idols — Supercar Driving Experience Profisee — Signed MDS Book and £50 Amazon Voucher SQLSentry — Plan Explorer PRO License Pyramid Analytics—Coffee Machine Effektor — Lego Big Ben Rencore — SPCAF Professional License (valued at $2099!) Axioworks — Amazon Fire TV and £75 Amazon Voucher DELL — Beats by Dr Dre Headphones Redgate — DLM Workshop Pluralsight — Annual Plus subscriptions All Your Base Conference — 3 x Conference Tickets VisualSP—Annual training subscription Loads of books and much much more!!!