SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Sponsors
Gold
Silver
Bronze
SharePoint + jQuery
Chris O’Connor
OBS
[Blog]
www.sharepointroot.com
[Twitter]
@GrumpyWookie
[GamerTag]
WalkingCarpet
Melbourne 2011
SharePoint + jQuery
What is it ?
• What is jQuery ?
– For animation + effects
• JavaScript !
• Uses the language of the web
– HTML
– CSS
• Browser independent
Melbourne 2011
SharePoint + jQuery
How does it work ?
• Include JS file
– <SCRIPT> tag – within Master Page (for example)
• Reference using jQuery syntax
<script>
$(document).ready(
{
$('a').addClass('test');
});
</script>
Melbourne 2011
SharePoint + jQuery
How does it work ?
• Selectors
– DOM element
– By ID or Class or tag type
• $('#myDivId')
• $('.myCssClass')
• $('a')
• Attributes
– addClass()
– removeClass()
Melbourne 2011
SharePoint + jQuery
How does it work ?
<div id="announcements">
<div class="article">
<h1>Check out my blog !</h1>
<p>www.grumpywookie.com is an awesome blog<p>
</div>
</div>
$('#announcements').addClass('test');
Melbourne 2011
SharePoint + jQuery
How does it work ?
<div id="announcements">
<div class="article">
<h1>Check out my blog !</h1>
<p>www.grumpywookie.com is an awesome blog<p>
</div>
</div>
$('.article').addClass('test');
Melbourne 2011
SharePoint + jQuery
How does it work ?
<div id="announcements">
<div class="article">
<h1>Check out my blog !</h1>
<p>www.grumpywookie.com is an awesome blog</p>
</div>
</div>
$('p').addClass('test');
Melbourne 2011
SharePoint + jQuery
How does it work ?
• Events
– click()
– hocus()
– hover()
• Effects
– animate()
– fadeIn()
– accordian()
Melbourne 2011
SharePoint + jQuery
How does it work ?
<script>
$('#right').click(function()
{
$('.block').animate(
{
'left': '+=50px'
},
'slow');
});
</script>
Melbourne 2011
SharePoint + jQuery
How to get it ?
• Download from http://jquery.com/
– Minified : jquery-1.6.2.min.js (31 kB)
– Development / Debug : jquery-1.6.2.js (229 kB)
• Plug-ins – much less code needed
– jQuery UI – additional functions
– jQuery Cycle
– SharePoint Web Services
Melbourne 2011
SharePoint + jQuery
How to include it ?
• SharePoint Site – upload JS file
– Eg. Site Assets library
• Include in Master Page
<script type="text/javascript"
src="/SiteAssets/jquery-1.6.2.min.js" />
Melbourne 2011
SHOW ME THE DEMO !
SharePoint + jQuery
Melbourne 2011
SharePoint + jQuery
Demos
• List View Web Part
– News Accordian
– Image Rotator
– News Rotator
• Custom XSLT
– HTML
– CSS
– Animate with jQuery -> jQuery UI plug-in
Melbourne 2011
SharePoint + jQuery
Quick re-cap
• Upload jQuery files – JavaScript (JS)
• Create new Master Page – with <SCRIPT> reference
• Add List View Web Part
• Change XSLT – to desired HTML structure (DOM)
• Apply jQuery syntax -> animation
• Apply CSS
P.S. It’s just HTML + JavaScript + CSS !!
Melbourne 2011
QUESTION AND ANSWER
SharePoint + jQuery
Melbourne 2011
Related Links
• http://www.jQuery.com
Examples, tutorials, demos, downloads
• http://www.sharepointroot.com
Slides, demos
• mailto:chris.oconnor@obs.com.au
• http://www.grumpywookie.com
Or say hello via Twitter : @GrumpyWookie
Thanks for listening!
Remember to submit your feedback so
you can go into the raffle draw at the
end of the day! And don’t forget that
you have to be at the draw to claim your
prizes!
Sponsors
Gold
Silver
Bronze

Weitere ähnliche Inhalte

Was ist angesagt?

J query presentation
J query presentationJ query presentation
J query presentation
akanksha17
 
Introduction to Web Components
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web Components
Rich Bradshaw
 

Was ist angesagt? (19)

Harness jQuery Templates and Data Link
Harness jQuery Templates and Data LinkHarness jQuery Templates and Data Link
Harness jQuery Templates and Data Link
 
Web components
Web componentsWeb components
Web components
 
Neos CMS and SEO
Neos CMS and SEONeos CMS and SEO
Neos CMS and SEO
 
DirectToWeb 2.0
DirectToWeb 2.0DirectToWeb 2.0
DirectToWeb 2.0
 
Flexible UI Components for a Multi-Framework World
Flexible UI Components for a Multi-Framework WorldFlexible UI Components for a Multi-Framework World
Flexible UI Components for a Multi-Framework World
 
Expert guide for PHP
Expert guide for PHPExpert guide for PHP
Expert guide for PHP
 
JQuery
JQueryJQuery
JQuery
 
JsViews - Next Generation jQuery Templates
JsViews - Next Generation jQuery TemplatesJsViews - Next Generation jQuery Templates
JsViews - Next Generation jQuery Templates
 
jQuery for Drupal
jQuery for DrupaljQuery for Drupal
jQuery for Drupal
 
J query presentation
J query presentationJ query presentation
J query presentation
 
Smooth Animations for Web & Hybrid
Smooth Animations for Web & HybridSmooth Animations for Web & Hybrid
Smooth Animations for Web & Hybrid
 
Search as main navigation
Search as main navigationSearch as main navigation
Search as main navigation
 
Introduction to Web Components
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web Components
 
SilverStripe From a Developer's Perspective
SilverStripe From a Developer's PerspectiveSilverStripe From a Developer's Perspective
SilverStripe From a Developer's Perspective
 
Getting started with jQuery
Getting started with jQueryGetting started with jQuery
Getting started with jQuery
 
Custom Elements with Polymer Web Components #econfpsu16
Custom Elements with Polymer Web Components #econfpsu16Custom Elements with Polymer Web Components #econfpsu16
Custom Elements with Polymer Web Components #econfpsu16
 
Skillwise Dust JS Template
Skillwise Dust JS TemplateSkillwise Dust JS Template
Skillwise Dust JS Template
 
How to Use WebVR to Enhance the Web Experience
How to Use WebVR to Enhance the Web ExperienceHow to Use WebVR to Enhance the Web Experience
How to Use WebVR to Enhance the Web Experience
 
JSの知識だけでLINE Bot作ってみる! 20170327_we are_javascripters@5th
JSの知識だけでLINE Bot作ってみる! 20170327_we are_javascripters@5thJSの知識だけでLINE Bot作ってみる! 20170327_we are_javascripters@5th
JSの知識だけでLINE Bot作ってみる! 20170327_we are_javascripters@5th
 

Andere mochten auch

SPSBNE - Advanced InfoPath and Nintex Workflow Techniques
SPSBNE - Advanced InfoPath and Nintex Workflow TechniquesSPSBNE - Advanced InfoPath and Nintex Workflow Techniques
SPSBNE - Advanced InfoPath and Nintex Workflow Techniques
23_kev
 

Andere mochten auch (20)

2014 - Integrating Yammer with SharePoint
2014 - Integrating Yammer with SharePoint2014 - Integrating Yammer with SharePoint
2014 - Integrating Yammer with SharePoint
 
BizTalk on App Services
BizTalk on App ServicesBizTalk on App Services
BizTalk on App Services
 
2011 - jQuery + SharePoint (TechEd)
2011 - jQuery + SharePoint (TechEd)2011 - jQuery + SharePoint (TechEd)
2011 - jQuery + SharePoint (TechEd)
 
SPSBNE - Advanced InfoPath and Nintex Workflow Techniques
SPSBNE - Advanced InfoPath and Nintex Workflow TechniquesSPSBNE - Advanced InfoPath and Nintex Workflow Techniques
SPSBNE - Advanced InfoPath and Nintex Workflow Techniques
 
Share point 2013 installation step by step
Share point 2013 installation step by stepShare point 2013 installation step by step
Share point 2013 installation step by step
 
2014 - The Future Of Forms (InfoPath)
2014 - The Future Of Forms (InfoPath)2014 - The Future Of Forms (InfoPath)
2014 - The Future Of Forms (InfoPath)
 
The Next Step With Nintex Workflow
The Next Step With Nintex WorkflowThe Next Step With Nintex Workflow
The Next Step With Nintex Workflow
 
Why Upgrade to SharePoint 2016: Including Future of SharePoint Feature Updates
Why Upgrade to SharePoint 2016: Including Future of SharePoint Feature UpdatesWhy Upgrade to SharePoint 2016: Including Future of SharePoint Feature Updates
Why Upgrade to SharePoint 2016: Including Future of SharePoint Feature Updates
 
Installing SharePoint 2013 – Step by Step presented by Alan Richards
Installing SharePoint 2013 – Step by Step presented by Alan RichardsInstalling SharePoint 2013 – Step by Step presented by Alan Richards
Installing SharePoint 2013 – Step by Step presented by Alan Richards
 
Tuning SQL Server for Sharepoint 2013- What every sharepoint consultant need...
Tuning SQL Server for Sharepoint 2013-  What every sharepoint consultant need...Tuning SQL Server for Sharepoint 2013-  What every sharepoint consultant need...
Tuning SQL Server for Sharepoint 2013- What every sharepoint consultant need...
 
SQL Server 2016 and SharePoint 2016 - Lars PLatzdasch - SQL Konferenz 2016
SQL Server 2016 and SharePoint 2016  - Lars PLatzdasch - SQL Konferenz 2016SQL Server 2016 and SharePoint 2016  - Lars PLatzdasch - SQL Konferenz 2016
SQL Server 2016 and SharePoint 2016 - Lars PLatzdasch - SQL Konferenz 2016
 
Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...
Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...
Prepare for SharePoint 2016 - IT Pro best practices for managing your SharePo...
 
Future of SharePoint
Future of SharePoint Future of SharePoint
Future of SharePoint
 
Advanced SharePoint 2013 Site Administration
Advanced SharePoint 2013 Site AdministrationAdvanced SharePoint 2013 Site Administration
Advanced SharePoint 2013 Site Administration
 
Advanced SharePoint Server Concepts
Advanced SharePoint Server ConceptsAdvanced SharePoint Server Concepts
Advanced SharePoint Server Concepts
 
Azure Web Jobs
Azure Web JobsAzure Web Jobs
Azure Web Jobs
 
SharePoint 2013 for Administrators and IT Pro's
SharePoint 2013 for Administrators and IT Pro'sSharePoint 2013 for Administrators and IT Pro's
SharePoint 2013 for Administrators and IT Pro's
 
Nintex Forms 2013
Nintex Forms 2013Nintex Forms 2013
Nintex Forms 2013
 
SharePoint 2016 Is Coming! Are You Ready?
SharePoint 2016 Is Coming! Are You Ready?SharePoint 2016 Is Coming! Are You Ready?
SharePoint 2016 Is Coming! Are You Ready?
 
SharePoint 2016 Upgrade Planning
SharePoint 2016 Upgrade PlanningSharePoint 2016 Upgrade Planning
SharePoint 2016 Upgrade Planning
 

Ähnlich wie 2011 - SharePoint + jQuery

J query presentation
J query presentationJ query presentation
J query presentation
sawarkar17
 
jQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPagesjQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPages
Mark Roden
 
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
Lucidworks
 

Ähnlich wie 2011 - SharePoint + jQuery (20)

2011 - SharePoint + jQuery
2011 - SharePoint + jQuery2011 - SharePoint + jQuery
2011 - SharePoint + jQuery
 
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 20102012 - HTML5, CSS3 and jQuery with SharePoint 2010
2012 - HTML5, CSS3 and jQuery with SharePoint 2010
 
SharePoint and jQuery Essentials
SharePoint and jQuery EssentialsSharePoint and jQuery Essentials
SharePoint and jQuery Essentials
 
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
 
SPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuerySPTechCon DevDays - SharePoint & jQuery
SPTechCon DevDays - SharePoint & jQuery
 
SPSTC - SharePoint & jQuery Essentials
SPSTC - SharePoint & jQuery EssentialsSPSTC - SharePoint & jQuery Essentials
SPSTC - SharePoint & jQuery Essentials
 
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
 
Toutch Jquery Mobile
Toutch Jquery MobileToutch Jquery Mobile
Toutch Jquery Mobile
 
JQuery UI
JQuery UIJQuery UI
JQuery UI
 
J query presentation
J query presentationJ query presentation
J query presentation
 
J query module1
J query module1J query module1
J query module1
 
The SharePoint & jQuery Guide
The SharePoint & jQuery GuideThe SharePoint & jQuery Guide
The SharePoint & jQuery Guide
 
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
 
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
Chris O'Brien - Customizing the SharePoint/Office 365 UI with JavaScript (ESP...
 
Bringing HTML5 alive in SharePoint
Bringing HTML5 alive in SharePointBringing HTML5 alive in SharePoint
Bringing HTML5 alive in SharePoint
 
jQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPagesjQuery - the world's most popular java script library comes to XPages
jQuery - the world's most popular java script library comes to XPages
 
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD CombinationLotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
Lotusphere 2012 Speedgeeking - jQuery & Domino, a RAD Combination
 
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)
 
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
Challenges of Simple Documents: When Basic isn't so Basic - Cassandra Targett...
 
#SPSLondon - Session 2 JSLink for IT Pros
#SPSLondon - Session 2 JSLink for IT Pros#SPSLondon - Session 2 JSLink for IT Pros
#SPSLondon - Session 2 JSLink for IT Pros
 

Mehr von Chris O'Connor (6)

Developing Mobile Apps with Office365
Developing Mobile Apps with Office365Developing Mobile Apps with Office365
Developing Mobile Apps with Office365
 
2011 - From Zero to productivity (Tech Ed 2011)
2011 - From Zero to productivity (Tech Ed 2011)2011 - From Zero to productivity (Tech Ed 2011)
2011 - From Zero to productivity (Tech Ed 2011)
 
2011 - Adding bells & whistles to the ribbon
2011 - Adding bells & whistles to the ribbon2011 - Adding bells & whistles to the ribbon
2011 - Adding bells & whistles to the ribbon
 
2010 - Developer look at the Client Object Model
2010 - Developer look at the Client Object Model2010 - Developer look at the Client Object Model
2010 - Developer look at the Client Object Model
 
2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development 2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development
 
2015 - PowerShell, C# and JavaScript for Office 365
2015 - PowerShell, C# and JavaScript for Office 3652015 - PowerShell, C# and JavaScript for Office 365
2015 - PowerShell, C# and JavaScript for Office 365
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
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...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 

2011 - SharePoint + jQuery

  • 1. Sponsors Gold Silver Bronze SharePoint + jQuery Chris O’Connor OBS [Blog] www.sharepointroot.com [Twitter] @GrumpyWookie [GamerTag] WalkingCarpet
  • 2. Melbourne 2011 SharePoint + jQuery What is it ? • What is jQuery ? – For animation + effects • JavaScript ! • Uses the language of the web – HTML – CSS • Browser independent
  • 3. Melbourne 2011 SharePoint + jQuery How does it work ? • Include JS file – <SCRIPT> tag – within Master Page (for example) • Reference using jQuery syntax <script> $(document).ready( { $('a').addClass('test'); }); </script>
  • 4. Melbourne 2011 SharePoint + jQuery How does it work ? • Selectors – DOM element – By ID or Class or tag type • $('#myDivId') • $('.myCssClass') • $('a') • Attributes – addClass() – removeClass()
  • 5. Melbourne 2011 SharePoint + jQuery How does it work ? <div id="announcements"> <div class="article"> <h1>Check out my blog !</h1> <p>www.grumpywookie.com is an awesome blog<p> </div> </div> $('#announcements').addClass('test');
  • 6. Melbourne 2011 SharePoint + jQuery How does it work ? <div id="announcements"> <div class="article"> <h1>Check out my blog !</h1> <p>www.grumpywookie.com is an awesome blog<p> </div> </div> $('.article').addClass('test');
  • 7. Melbourne 2011 SharePoint + jQuery How does it work ? <div id="announcements"> <div class="article"> <h1>Check out my blog !</h1> <p>www.grumpywookie.com is an awesome blog</p> </div> </div> $('p').addClass('test');
  • 8. Melbourne 2011 SharePoint + jQuery How does it work ? • Events – click() – hocus() – hover() • Effects – animate() – fadeIn() – accordian()
  • 9. Melbourne 2011 SharePoint + jQuery How does it work ? <script> $('#right').click(function() { $('.block').animate( { 'left': '+=50px' }, 'slow'); }); </script>
  • 10. Melbourne 2011 SharePoint + jQuery How to get it ? • Download from http://jquery.com/ – Minified : jquery-1.6.2.min.js (31 kB) – Development / Debug : jquery-1.6.2.js (229 kB) • Plug-ins – much less code needed – jQuery UI – additional functions – jQuery Cycle – SharePoint Web Services
  • 11. Melbourne 2011 SharePoint + jQuery How to include it ? • SharePoint Site – upload JS file – Eg. Site Assets library • Include in Master Page <script type="text/javascript" src="/SiteAssets/jquery-1.6.2.min.js" />
  • 12. Melbourne 2011 SHOW ME THE DEMO ! SharePoint + jQuery
  • 13. Melbourne 2011 SharePoint + jQuery Demos • List View Web Part – News Accordian – Image Rotator – News Rotator • Custom XSLT – HTML – CSS – Animate with jQuery -> jQuery UI plug-in
  • 14. Melbourne 2011 SharePoint + jQuery Quick re-cap • Upload jQuery files – JavaScript (JS) • Create new Master Page – with <SCRIPT> reference • Add List View Web Part • Change XSLT – to desired HTML structure (DOM) • Apply jQuery syntax -> animation • Apply CSS P.S. It’s just HTML + JavaScript + CSS !!
  • 15. Melbourne 2011 QUESTION AND ANSWER SharePoint + jQuery
  • 16. Melbourne 2011 Related Links • http://www.jQuery.com Examples, tutorials, demos, downloads • http://www.sharepointroot.com Slides, demos • mailto:chris.oconnor@obs.com.au • http://www.grumpywookie.com Or say hello via Twitter : @GrumpyWookie
  • 17. Thanks for listening! Remember to submit your feedback so you can go into the raffle draw at the end of the day! And don’t forget that you have to be at the draw to claim your prizes! Sponsors Gold Silver Bronze