SlideShare a Scribd company logo
1 of 26
Introduction to using jQuery with SharePoint
About Me Working fulltime with SharePoint since2007 2 Asia-Pacific wide rollouts, involved inall kinds of things: Planning, Governance, Branding, Requirements Gathering, Solution Implementation, Training, Workflows, ... Not Administrator, not Developer, but:Consultant, Trainer, Designer, Power User, „Developer Light“, Analyst, Architect, ...If it‘s SharePoint, I‘m doing it!      (or at least involved...) Rene Modery Web Program Manager
What is this session about? What is jQuery Some jQuery Basics Selection, Modification, Events, AJAX How can jQuery be used within SharePoint Demos, Demos, Demos! DEMO
© Information Most demo contents are inspired by or directly taken from other people of the great community (Original sources will be indicated!), incl.: Marc D. Anderson Jason MacKenzie WaldekMastykarz Alexander Bautz Key Point:The SharePoint and jQuery communities are awesome!
What is jQuery? “jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.” (jquery.com) Select elements, do things!
What can it do? DEMO
What do I need to know? JavaScript HTML & CSS Some CAML
Development Support Tools Editors Notepad++ SharePoint Designer Visual Studio Debuggers IE Developer Tools + Fiddler (proxy) Firebug + FireQuery + FireFinder
jQuery Basics – Include Reference jquery.js within your page Either a “local” version or on a CDN <script src="jquery.js"></script>or<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> Full version (for development and debugging!) & minified (production!) available
jQuery Basics – $() Place your code within jQuery(document).ready() Code gets executed when DOM is ready jQuery(document).ready(function() {   alert("hallo");}); $(document).ready() or short form $() can also be used: $(function() {  alert("hallo");}); DEMO
jQuery Basics - Selection Multiple options to select elements, can also be combined DEMO
jQuery Basics – Manipulation DEMO
jQuery - AJAX Different ways to make AJAX calls with jQuery
jQuery & SharePoint –Why & When? Why? Easy to implement! Quick results! Many possibilities – UI, web services, extending DVWP, … When? No managed code allowed No developer available Managed code development more costly & resource intensive
Adding jQuery to SharePoint Add call to jquery.js into Content Editor WebPart (CEWP) or Master Page Add your own code into a CEWP or (better!) into a file stored in a central location
Selecting SharePoint Elements Use IE Developer Tools / Firebug to find IDs, classes, etc DEMO
Example: Content Modification - KPIs Simple content modification: select element, replace it DEMO
Example: Slideshow Show pictures from Image Library with fade effect DEMO Original code by WaldekMastykarzhttp://blog.mastykarz.nl/images-slideshow-sharepoint-2007-jquery/
Example: Column Visibility Show/hide columns in a list/library dynamically Original code from Alexander Bautz, http://www.endusersharepoint.com/2010/04/23/sharepoint-toggle-column-visibility-in-list-view/ DEMO
Calling SharePoint Webservices Prepare SOAP envelope Call Webservice Process results 1 2 3 DEMO Example from: Professional SharePoint 2010 Branding and User Interface Design
SPServices “This is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities” (spservices.codeplex.com) : Web ServicesCheck SPServices documentation for detailed list Form EnhancementsEnhance forms with cascading dropdowns, related info, unique value, … UtilitiesGet current site, get current user, get query string, …
SPServices – Related Data Use $().SPServices.SPDisplayRelatedInfoif you want to display related data for fields when filling a form.  DEMO
SPServices – Cascading Dropdowns Create a relationship between two or more dropdown selections DEMO
Providing Filter Dropdowns Using SPServices to fetch query parameters as well as the current site (NOT the whole URL!) Using jQuery to load and display SharePoint’s filters DEMO
What did we cover today? This much! There’s so much more to learn and do!
Where can I find out more? Official Site: http://www.jquery.com SPServices: http://spservices.codeplex.com Great overview of articles, books, etc: http://www.learningjquery.com/2010/07/great-ways-to-learn-jquery Marc D Anderson’s Blog at http://sympmarc.com Chris O’Brien’s Blog at http://www.sharepointnutsandbolts.com/2010/10/sp2010-ajax-part-1-boiling-jquery-down.html Examples: http://www.nothingbutsharepoint.com

More Related Content

What's hot

SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery Libraries
Mark Rackley
 
Content by query web part
Content by query web partContent by query web part
Content by query web part
IslamKhattab
 
SharePoint & jQuery Guide - SPSNashville 2014
SharePoint & jQuery Guide - SPSNashville 2014SharePoint & jQuery Guide - SPSNashville 2014
SharePoint & jQuery Guide - SPSNashville 2014
Mark Rackley
 
Intro to SharePoint Web Services
Intro to SharePoint Web ServicesIntro to SharePoint Web Services
Intro to SharePoint Web Services
Mark Rackley
 

What's hot (20)

SPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery LibrariesSPTechCon Dev Days - Third Party jQuery Libraries
SPTechCon Dev Days - Third Party jQuery Libraries
 
The SharePoint & jQuery Guide
The SharePoint & jQuery GuideThe SharePoint & jQuery Guide
The SharePoint & jQuery Guide
 
Transform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSSTransform SharePoint List Forms with HTML and CSS
Transform SharePoint List Forms with HTML and CSS
 
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePointSPTechCon Boston 2015 - Utilizing jQuery in SharePoint
SPTechCon Boston 2015 - Utilizing jQuery in SharePoint
 
Content by query web part
Content by query web partContent by query web part
Content by query web part
 
SharePoint & jQuery Guide - SPSNashville 2014
SharePoint & jQuery Guide - SPSNashville 2014SharePoint & jQuery Guide - SPSNashville 2014
SharePoint & jQuery Guide - SPSNashville 2014
 
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast2/15/2012 - Wrapping Your Head Around the SharePoint Beast
2/15/2012 - Wrapping Your Head Around the SharePoint Beast
 
SEF2013 - Create a Business Solution, Step by Step, with No Managed Code
SEF2013 - Create a Business Solution, Step by Step, with No Managed CodeSEF2013 - Create a Business Solution, Step by Step, with No Managed Code
SEF2013 - Create a Business Solution, Step by Step, with No Managed Code
 
O365 Saturday - Deepdive SharePoint Client Side Rendering
O365 Saturday - Deepdive SharePoint Client Side RenderingO365 Saturday - Deepdive SharePoint Client Side Rendering
O365 Saturday - Deepdive SharePoint Client Side Rendering
 
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint LimitationsSPTechCon Boston 2015 - Overcoming SharePoint Limitations
SPTechCon Boston 2015 - Overcoming SharePoint Limitations
 
SharePoint REST vs CSOM
SharePoint REST vs CSOMSharePoint REST vs CSOM
SharePoint REST vs CSOM
 
(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide(Updated) SharePoint & jQuery Guide
(Updated) SharePoint & jQuery Guide
 
SPSDenver - SharePoint & jQuery - What I wish I would have known
SPSDenver - SharePoint & jQuery - What I wish I would have knownSPSDenver - SharePoint & jQuery - What I wish I would have known
SPSDenver - SharePoint & jQuery - What I wish I would have known
 
SPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePointSPTechCon 2014 How to develop and debug client side code in SharePoint
SPTechCon 2014 How to develop and debug client side code in SharePoint
 
Using jQuery to Maximize Form Usability
Using jQuery to Maximize Form UsabilityUsing jQuery to Maximize Form Usability
Using jQuery to Maximize Form Usability
 
SharePoint Saturday St. Louis - SharePoint & jQuery
SharePoint Saturday St. Louis - SharePoint & jQuerySharePoint Saturday St. Louis - SharePoint & jQuery
SharePoint Saturday St. Louis - SharePoint & jQuery
 
Intro to SharePoint Web Services
Intro to SharePoint Web ServicesIntro to SharePoint Web Services
Intro to SharePoint Web Services
 
Introduction to StratusForms #SayNoToInfoPath
Introduction to StratusForms #SayNoToInfoPathIntroduction to StratusForms #SayNoToInfoPath
Introduction to StratusForms #SayNoToInfoPath
 
SharePoint Performance
SharePoint PerformanceSharePoint Performance
SharePoint Performance
 
SharePoint and the User Interface with JavaScript
SharePoint and the User Interface with JavaScriptSharePoint and the User Interface with JavaScript
SharePoint and the User Interface with JavaScript
 

Similar to Introduction to using jQuery with SharePoint

SharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewSharePoint 2010 Application Development Overview
SharePoint 2010 Application Development Overview
Rob Windsor
 
Dog food conference creating modular webparts with require js in sharepoint
Dog food conference   creating modular webparts with require js in sharepointDog food conference   creating modular webparts with require js in sharepoint
Dog food conference creating modular webparts with require js in sharepoint
fahey252
 
Miguel Alberto Flores Torres AM (1)
Miguel Alberto Flores Torres AM (1)Miguel Alberto Flores Torres AM (1)
Miguel Alberto Flores Torres AM (1)
Miguel Alberto
 
WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...
Fabio Franzini
 

Similar to Introduction to using jQuery with SharePoint (20)

SharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewSharePoint 2010 Application Development Overview
SharePoint 2010 Application Development Overview
 
Advanced Web Development
Advanced Web DevelopmentAdvanced Web Development
Advanced Web Development
 
Session on Selenium Powertools by Unmesh Gundecha
Session on Selenium Powertools by Unmesh GundechaSession on Selenium Powertools by Unmesh Gundecha
Session on Selenium Powertools by Unmesh Gundecha
 
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechConThe SharePoint and jQuery Guide by Mark Rackley - SPTechCon
The SharePoint and jQuery Guide by Mark Rackley - SPTechCon
 
jQuery Tips Tricks Trivia
jQuery Tips Tricks TriviajQuery Tips Tricks Trivia
jQuery Tips Tricks Trivia
 
Approaches to mobile site development
Approaches to mobile site developmentApproaches to mobile site development
Approaches to mobile site development
 
Dog food conference creating modular webparts with require js in sharepoint
Dog food conference   creating modular webparts with require js in sharepointDog food conference   creating modular webparts with require js in sharepoint
Dog food conference creating modular webparts with require js in sharepoint
 
Ajax toolkit framework
Ajax toolkit frameworkAjax toolkit framework
Ajax toolkit framework
 
Miguel Alberto Flores Torres AM (1)
Miguel Alberto Flores Torres AM (1)Miguel Alberto Flores Torres AM (1)
Miguel Alberto Flores Torres AM (1)
 
web development 7.pptx
web development 7.pptxweb development 7.pptx
web development 7.pptx
 
Starting with jQuery
Starting with jQueryStarting with jQuery
Starting with jQuery
 
The future of web development write once, run everywhere with angular js an...
The future of web development   write once, run everywhere with angular js an...The future of web development   write once, run everywhere with angular js an...
The future of web development write once, run everywhere with angular js an...
 
The future of web development write once, run everywhere with angular.js and ...
The future of web development write once, run everywhere with angular.js and ...The future of web development write once, run everywhere with angular.js and ...
The future of web development write once, run everywhere with angular.js and ...
 
No Feature Solutions with SharePoint
No Feature Solutions with SharePointNo Feature Solutions with SharePoint
No Feature Solutions with SharePoint
 
Intro to Application Express
Intro to Application ExpressIntro to Application Express
Intro to Application Express
 
State of modern web technologies: an introduction
State of modern web technologies: an introductionState of modern web technologies: an introduction
State of modern web technologies: an introduction
 
WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...WebNet Conference 2012 - Designing complex applications using html5 and knock...
WebNet Conference 2012 - Designing complex applications using html5 and knock...
 
Red Hat JBoss BRMS and BPMS Workbench and Rich Client Technology
Red Hat JBoss BRMS and BPMS Workbench and Rich Client TechnologyRed Hat JBoss BRMS and BPMS Workbench and Rich Client Technology
Red Hat JBoss BRMS and BPMS Workbench and Rich Client Technology
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJSAngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
 
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
Office 365 Saturday (Sydney) - SharePoint framework – build integrated user e...
 

More from Rene Modery

Office 365 - always the latest and greatest or too fast for you?
Office 365 - always the latest and greatest or too fast for you?Office 365 - always the latest and greatest or too fast for you?
Office 365 - always the latest and greatest or too fast for you?
Rene Modery
 
Automating Office 365 with PowerShell
Automating Office 365 with PowerShellAutomating Office 365 with PowerShell
Automating Office 365 with PowerShell
Rene Modery
 
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript AppsConnecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Rene Modery
 
SEASPC - Rene Modery - Creating an Employee Engaging Intranet Homepage
SEASPC - Rene Modery - Creating an Employee Engaging Intranet HomepageSEASPC - Rene Modery - Creating an Employee Engaging Intranet Homepage
SEASPC - Rene Modery - Creating an Employee Engaging Intranet Homepage
Rene Modery
 

More from Rene Modery (19)

TeamsFest - Integrating Microsoft Teams and PowerApps
TeamsFest - Integrating Microsoft Teams and PowerAppsTeamsFest - Integrating Microsoft Teams and PowerApps
TeamsFest - Integrating Microsoft Teams and PowerApps
 
Global Azure Bootcamp (Singapore) - Effectively using Azure DevOps in Microso...
Global Azure Bootcamp (Singapore) - Effectively using Azure DevOps in Microso...Global Azure Bootcamp (Singapore) - Effectively using Azure DevOps in Microso...
Global Azure Bootcamp (Singapore) - Effectively using Azure DevOps in Microso...
 
aOS Kuala Lumpur - Migrating to SharePoint Online - Real-life Experiences
aOS Kuala Lumpur - Migrating to SharePoint Online - Real-life ExperiencesaOS Kuala Lumpur - Migrating to SharePoint Online - Real-life Experiences
aOS Kuala Lumpur - Migrating to SharePoint Online - Real-life Experiences
 
SharePoint Online vs On-premises vs Hybrid – 2016 edition
SharePoint Online vs On-premises vs Hybrid – 2016 editionSharePoint Online vs On-premises vs Hybrid – 2016 edition
SharePoint Online vs On-premises vs Hybrid – 2016 edition
 
Microsoft PowerApps
Microsoft PowerAppsMicrosoft PowerApps
Microsoft PowerApps
 
Introduction to Azure Machine Learning
Introduction to Azure Machine LearningIntroduction to Azure Machine Learning
Introduction to Azure Machine Learning
 
SPBiz - Practical Advice for developing your SharePoint Roadmap
SPBiz - Practical Advice for developing your SharePoint RoadmapSPBiz - Practical Advice for developing your SharePoint Roadmap
SPBiz - Practical Advice for developing your SharePoint Roadmap
 
Office 365 - always the latest and greatest or too fast for you?
Office 365 - always the latest and greatest or too fast for you?Office 365 - always the latest and greatest or too fast for you?
Office 365 - always the latest and greatest or too fast for you?
 
ESPC14 - T13 - Implementing a Hybrid SharePoint 2013 and Office 365 environment
ESPC14 - T13 - Implementing a Hybrid SharePoint 2013 and Office 365 environmentESPC14 - T13 - Implementing a Hybrid SharePoint 2013 and Office 365 environment
ESPC14 - T13 - Implementing a Hybrid SharePoint 2013 and Office 365 environment
 
ESPC14 - T23 - SharePoint Online vs On-Premises vs Hosted - Making the Right ...
ESPC14 - T23 - SharePoint Online vs On-Premises vs Hosted - Making the Right ...ESPC14 - T23 - SharePoint Online vs On-Premises vs Hosted - Making the Right ...
ESPC14 - T23 - SharePoint Online vs On-Premises vs Hosted - Making the Right ...
 
Hybrid SharePoint 2013 and Office 365 environments for decision makers
Hybrid SharePoint 2013 and Office 365 environments for decision makersHybrid SharePoint 2013 and Office 365 environments for decision makers
Hybrid SharePoint 2013 and Office 365 environments for decision makers
 
Automating Office 365 with PowerShell
Automating Office 365 with PowerShellAutomating Office 365 with PowerShell
Automating Office 365 with PowerShell
 
AIIM Webinar - SharePoint 2013 - clouding the issues?
AIIM Webinar - SharePoint 2013 - clouding the issues?AIIM Webinar - SharePoint 2013 - clouding the issues?
AIIM Webinar - SharePoint 2013 - clouding the issues?
 
ShareConf 2013 - Implementierung von Hybridumgebungen mit SharePoint 2013 und...
ShareConf 2013 - Implementierung von Hybridumgebungen mit SharePoint 2013 und...ShareConf 2013 - Implementierung von Hybridumgebungen mit SharePoint 2013 und...
ShareConf 2013 - Implementierung von Hybridumgebungen mit SharePoint 2013 und...
 
Office 365 and SharePoint 2013 Hybrid Environments
Office 365 and SharePoint 2013 Hybrid EnvironmentsOffice 365 and SharePoint 2013 Hybrid Environments
Office 365 and SharePoint 2013 Hybrid Environments
 
Intro: SharePoint 2013 Apps for IT Pros
Intro: SharePoint 2013 Apps for IT ProsIntro: SharePoint 2013 Apps for IT Pros
Intro: SharePoint 2013 Apps for IT Pros
 
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript AppsConnecting Office 365 and Windows 8 HTML/JavaScript Apps
Connecting Office 365 and Windows 8 HTML/JavaScript Apps
 
SEASPC - Rene Modery - Creating an Employee Engaging Intranet Homepage
SEASPC - Rene Modery - Creating an Employee Engaging Intranet HomepageSEASPC - Rene Modery - Creating an Employee Engaging Intranet Homepage
SEASPC - Rene Modery - Creating an Employee Engaging Intranet Homepage
 
Experiences with two AsiaPacific-wide SharePoint Deployments - SharePoint Con...
Experiences with two AsiaPacific-wide SharePoint Deployments - SharePoint Con...Experiences with two AsiaPacific-wide SharePoint Deployments - SharePoint Con...
Experiences with two AsiaPacific-wide SharePoint Deployments - SharePoint Con...
 

Recently uploaded

Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdf
Overkill Security
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
FIDO Alliance
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

JavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate GuideJavaScript Usage Statistics 2024 - The Ultimate Guide
JavaScript Usage Statistics 2024 - The Ultimate Guide
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Microsoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdfMicrosoft BitLocker Bypass Attack Method.pdf
Microsoft BitLocker Bypass Attack Method.pdf
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
Design Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptxDesign Guidelines for Passkeys 2024.pptx
Design Guidelines for Passkeys 2024.pptx
 
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptxCyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
Cyber Insurance - RalphGilot - Embry-Riddle Aeronautical University.pptx
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
The Ultimate Prompt Engineering Guide for Generative AI: Get the Most Out of ...
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 

Introduction to using jQuery with SharePoint

  • 1. Introduction to using jQuery with SharePoint
  • 2. About Me Working fulltime with SharePoint since2007 2 Asia-Pacific wide rollouts, involved inall kinds of things: Planning, Governance, Branding, Requirements Gathering, Solution Implementation, Training, Workflows, ... Not Administrator, not Developer, but:Consultant, Trainer, Designer, Power User, „Developer Light“, Analyst, Architect, ...If it‘s SharePoint, I‘m doing it! (or at least involved...) Rene Modery Web Program Manager
  • 3. What is this session about? What is jQuery Some jQuery Basics Selection, Modification, Events, AJAX How can jQuery be used within SharePoint Demos, Demos, Demos! DEMO
  • 4. © Information Most demo contents are inspired by or directly taken from other people of the great community (Original sources will be indicated!), incl.: Marc D. Anderson Jason MacKenzie WaldekMastykarz Alexander Bautz Key Point:The SharePoint and jQuery communities are awesome!
  • 5. What is jQuery? “jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.” (jquery.com) Select elements, do things!
  • 6. What can it do? DEMO
  • 7. What do I need to know? JavaScript HTML & CSS Some CAML
  • 8. Development Support Tools Editors Notepad++ SharePoint Designer Visual Studio Debuggers IE Developer Tools + Fiddler (proxy) Firebug + FireQuery + FireFinder
  • 9. jQuery Basics – Include Reference jquery.js within your page Either a “local” version or on a CDN <script src="jquery.js"></script>or<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script> Full version (for development and debugging!) & minified (production!) available
  • 10. jQuery Basics – $() Place your code within jQuery(document).ready() Code gets executed when DOM is ready jQuery(document).ready(function() { alert("hallo");}); $(document).ready() or short form $() can also be used: $(function() { alert("hallo");}); DEMO
  • 11. jQuery Basics - Selection Multiple options to select elements, can also be combined DEMO
  • 12. jQuery Basics – Manipulation DEMO
  • 13. jQuery - AJAX Different ways to make AJAX calls with jQuery
  • 14. jQuery & SharePoint –Why & When? Why? Easy to implement! Quick results! Many possibilities – UI, web services, extending DVWP, … When? No managed code allowed No developer available Managed code development more costly & resource intensive
  • 15. Adding jQuery to SharePoint Add call to jquery.js into Content Editor WebPart (CEWP) or Master Page Add your own code into a CEWP or (better!) into a file stored in a central location
  • 16. Selecting SharePoint Elements Use IE Developer Tools / Firebug to find IDs, classes, etc DEMO
  • 17. Example: Content Modification - KPIs Simple content modification: select element, replace it DEMO
  • 18. Example: Slideshow Show pictures from Image Library with fade effect DEMO Original code by WaldekMastykarzhttp://blog.mastykarz.nl/images-slideshow-sharepoint-2007-jquery/
  • 19. Example: Column Visibility Show/hide columns in a list/library dynamically Original code from Alexander Bautz, http://www.endusersharepoint.com/2010/04/23/sharepoint-toggle-column-visibility-in-list-view/ DEMO
  • 20. Calling SharePoint Webservices Prepare SOAP envelope Call Webservice Process results 1 2 3 DEMO Example from: Professional SharePoint 2010 Branding and User Interface Design
  • 21. SPServices “This is a jQuery library which abstracts SharePoint's Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities” (spservices.codeplex.com) : Web ServicesCheck SPServices documentation for detailed list Form EnhancementsEnhance forms with cascading dropdowns, related info, unique value, … UtilitiesGet current site, get current user, get query string, …
  • 22. SPServices – Related Data Use $().SPServices.SPDisplayRelatedInfoif you want to display related data for fields when filling a form. DEMO
  • 23. SPServices – Cascading Dropdowns Create a relationship between two or more dropdown selections DEMO
  • 24. Providing Filter Dropdowns Using SPServices to fetch query parameters as well as the current site (NOT the whole URL!) Using jQuery to load and display SharePoint’s filters DEMO
  • 25. What did we cover today? This much! There’s so much more to learn and do!
  • 26. Where can I find out more? Official Site: http://www.jquery.com SPServices: http://spservices.codeplex.com Great overview of articles, books, etc: http://www.learningjquery.com/2010/07/great-ways-to-learn-jquery Marc D Anderson’s Blog at http://sympmarc.com Chris O’Brien’s Blog at http://www.sharepointnutsandbolts.com/2010/10/sp2010-ajax-part-1-boiling-jquery-down.html Examples: http://www.nothingbutsharepoint.com