SlideShare a Scribd company logo
1 of 13
jQuery Programming
with Visual Web Part
SharePoint 2013 / 2010
SharePoint UG 07/May/2013
Agenda
 What is jQuery?
 Why jQuery?
 jQuery Widgets
 Visual Web Parts and jQuery
 Demo
 Deploying jQuery Components with wsp
What is jQuery?
 jQuery is a library that makes it quicker and easier to build JavaScript
webpages and web apps
 jQuery is itself written in JavaScript, and comes in the form of a single .js file
that you link to from your webpage
 The jQuery library actually comes in 2 forms:
 The uncompressed .js file is easy to read and modify, but it's around 160kb in size
(at the time of writing).
 The minified .js file has all comments, whitespace, and other unnecessary
characters removed from the file, squeezing the whole library into a mere 23kb.
Why jQuery?
 Making XML (Ajax) requests. These use JavaScript to request additional data
from the Web server without having to reload the page.
 Manipulating the DOM. You can easily add, remove, and reorder content in
the Web page using just a couple of lines of code
 Adding animated effects to elements. jQuery lets you easily add effects such
as fading in/out, sliding in/out, and expanding/contracting
 Rich UI animated Controls Available
 jQuery Plugins – Many reusable plugins available which are ready to use.
jQuery Widgets
 Accordion
 Autocomplete
 Button
 Datepicker
 Dialog
 Menu
 Progressbar
 Slider
 Spinner
 Tabs
 Tooltip
Client Object Model vs. jQuery
 Client Object Model
 Managed Client - Microsoft.SharePoint.Client.dll
 Silverlight - Microsoft.SharePoint.Client.Silverlight.dll
 ECMAScript - SP.js
 jQuery
 spservices http://spservices.codeplex.com/
 jPoint http://jpoint.codeplex.com/discussions/81945
 Raw jQuery http://jquery.com/
Client Object Model
SharePoint 2013 -
REST(REpresentational State Transfer)
 jQuery Programming against list
 jQuery UI
REST
 POST – Create lists and sites
 PUT, PATCH, MERGE for update
Client object model REST equivalent
ClientContext.Web.Lists http://server/site/_api/web/lists
ClientContext.Web.Lists[guid] http://server/site/_api/web/lists(‘guid’)
ClientContext.Web.Lists.GetByTitle("Title") http://server/site/_api/web/lists/getbytitle(‘Title’)
REST Call
Area Access point
Site http://server/site/_api/site
Web http://server/site/_api/web
User Profile http:// server/site/_api/SP.UserProfiles.PeopleManager
Search http:// server/site/_api/search
Publishing http:// server/site/_api/publishing
To access a specific site collection
http://server/site/_api/site
To access a specific site
http://server/site/_api/web
Parameter
http://server/site/_api/web/lists/getByTitle('Announcements')/fields/getByTitle('Description')
http://server/site/_api/web/lists('<guid>')/fields/getById('<guid>')
Alias (both are same)
http://server/site/_api/web/applyWebTemplate("STS#0")
http://server/site/_api/web/applyWebTemplate(title=@template)?@template="STS#0“
Sample – Create List
Update List
jQuery UI Demo
 Accordion Sample

More Related Content

What's hot

STUG-Client Object Model SharePoint 2010
STUG-Client Object Model SharePoint 2010STUG-Client Object Model SharePoint 2010
STUG-Client Object Model SharePoint 2010
Shakir Majeed Khan
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
Buu Nguyen
 
Office 2013 loves web developers slide
Office 2013 loves web developers   slideOffice 2013 loves web developers   slide
Office 2013 loves web developers slide
Fabio Franzini
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
Rahul Bansal
 
Active Server Page(ASP)
Active Server Page(ASP)Active Server Page(ASP)
Active Server Page(ASP)
Keshab Nath
 

What's hot (20)

Chris OBrien - Weaving Enterprise Solutions into Office Products
Chris OBrien - Weaving Enterprise Solutions into Office ProductsChris OBrien - Weaving Enterprise Solutions into Office Products
Chris OBrien - Weaving Enterprise Solutions into Office Products
 
Single Page Applications on JavaScript and ASP.NET MVC4
Single Page Applications on JavaScript and ASP.NET MVC4Single Page Applications on JavaScript and ASP.NET MVC4
Single Page Applications on JavaScript and ASP.NET MVC4
 
STUG-Client Object Model SharePoint 2010
STUG-Client Object Model SharePoint 2010STUG-Client Object Model SharePoint 2010
STUG-Client Object Model SharePoint 2010
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
 
Introduction to the jQuery mobile framework
Introduction to the jQuery mobile frameworkIntroduction to the jQuery mobile framework
Introduction to the jQuery mobile framework
 
What is jQuery?
What is jQuery?What is jQuery?
What is jQuery?
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
 
SharePoint 2013 Client Side Rendering
SharePoint 2013 Client Side RenderingSharePoint 2013 Client Side Rendering
SharePoint 2013 Client Side Rendering
 
ASP.NET 4.0 Roadmap
ASP.NET 4.0 RoadmapASP.NET 4.0 Roadmap
ASP.NET 4.0 Roadmap
 
Eclipse orion
Eclipse orionEclipse orion
Eclipse orion
 
Office 2013 loves web developers slide
Office 2013 loves web developers   slideOffice 2013 loves web developers   slide
Office 2013 loves web developers slide
 
Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
 
Mvc3 crash
Mvc3 crashMvc3 crash
Mvc3 crash
 
Asp.net
Asp.netAsp.net
Asp.net
 
Info path advanced development @ Sri Lanka SharePoint Forum
Info path advanced development @ Sri Lanka SharePoint ForumInfo path advanced development @ Sri Lanka SharePoint Forum
Info path advanced development @ Sri Lanka SharePoint Forum
 
Active Server Page(ASP)
Active Server Page(ASP)Active Server Page(ASP)
Active Server Page(ASP)
 
Introduction to AngularJS Framework
Introduction to AngularJS FrameworkIntroduction to AngularJS Framework
Introduction to AngularJS Framework
 
Overview on jQuery mobile
Overview on jQuery mobileOverview on jQuery mobile
Overview on jQuery mobile
 
Presentation on asp.net controls
Presentation on asp.net controlsPresentation on asp.net controls
Presentation on asp.net controls
 
Mvc summary
Mvc summaryMvc summary
Mvc summary
 

Viewers also liked (12)

IELTS
IELTSIELTS
IELTS
 
Upper Pri A - Key parts of speech and introduction to phrases
Upper Pri A - Key parts of speech and introduction to phrasesUpper Pri A - Key parts of speech and introduction to phrases
Upper Pri A - Key parts of speech and introduction to phrases
 
gloucesterreference.letter
gloucesterreference.lettergloucesterreference.letter
gloucesterreference.letter
 
Modelo de examen
Modelo de examenModelo de examen
Modelo de examen
 
сриј
сријсриј
сриј
 
LL Lower Sec - Av & Pv
LL Lower Sec - Av & PvLL Lower Sec - Av & Pv
LL Lower Sec - Av & Pv
 
Who we are
Who we areWho we are
Who we are
 
ACCOUNTING FOR MANAGERS
ACCOUNTING FOR MANAGERSACCOUNTING FOR MANAGERS
ACCOUNTING FOR MANAGERS
 
Tema 26
Tema 26Tema 26
Tema 26
 
Как построить поток клиентов
Как построить поток клиентовКак построить поток клиентов
Как построить поток клиентов
 
Cerebro normal y patologías vasculares
Cerebro normal y patologías vascularesCerebro normal y patologías vasculares
Cerebro normal y patologías vasculares
 
La Palazzo
La PalazzoLa Palazzo
La Palazzo
 

Similar to jQuery programming with visual web part

What’s New for Devs
What’s New for DevsWhat’s New for Devs
What’s New for Devs
MicrosoftFeed
 

Similar to jQuery programming with visual web part (20)

Jquery
Jquery Jquery
Jquery
 
Implementing auto complete using JQuery
Implementing auto complete using JQueryImplementing auto complete using JQuery
Implementing auto complete using JQuery
 
Easy tabs, Slideshows, Dashboards, etc - Client Side Scripts for SharePoint
Easy tabs, Slideshows, Dashboards, etc - Client Side Scripts for SharePointEasy tabs, Slideshows, Dashboards, etc - Client Side Scripts for SharePoint
Easy tabs, Slideshows, Dashboards, etc - Client Side Scripts for SharePoint
 
Introduction to using jQuery with SharePoint
Introduction to using jQuery with SharePointIntroduction to using jQuery with SharePoint
Introduction to using jQuery with SharePoint
 
Jquery
JqueryJquery
Jquery
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologies
 
Starting with jQuery
Starting with jQueryStarting with jQuery
Starting with jQuery
 
Javascript frameworks
Javascript frameworksJavascript frameworks
Javascript frameworks
 
Top Frontend Framework 2022
Top Frontend Framework 2022Top Frontend Framework 2022
Top Frontend Framework 2022
 
Access SharePoint Remotely
Access SharePoint RemotelyAccess SharePoint Remotely
Access SharePoint Remotely
 
Single Page Apps
Single Page AppsSingle Page Apps
Single Page Apps
 
What’s New for Devs
What’s New for DevsWhat’s New for Devs
What’s New for Devs
 
Introduction to backbone_js
Introduction to backbone_jsIntroduction to backbone_js
Introduction to backbone_js
 
A white paper on Fundamentals and Implementations of Angular JS
A white paper on Fundamentals and Implementations of Angular JSA white paper on Fundamentals and Implementations of Angular JS
A white paper on Fundamentals and Implementations of Angular JS
 
From Backbone to Ember and Back(bone) Again
From Backbone to Ember and Back(bone) AgainFrom Backbone to Ember and Back(bone) Again
From Backbone to Ember and Back(bone) Again
 
Fundamentals and Implementations of Angular JS with renowned Technology Platf...
Fundamentals and Implementations of Angular JS with renowned Technology Platf...Fundamentals and Implementations of Angular JS with renowned Technology Platf...
Fundamentals and Implementations of Angular JS with renowned Technology Platf...
 
ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008
 
Ajax toolkit framework
Ajax toolkit frameworkAjax toolkit framework
Ajax toolkit framework
 
Lesson 09
Lesson 09Lesson 09
Lesson 09
 
Lesson 09
Lesson 09Lesson 09
Lesson 09
 

More from Senthamil Selvan (15)

AR/MR HoloLens
AR/MR HoloLensAR/MR HoloLens
AR/MR HoloLens
 
Get started azure- Azure Mobile Services
Get started azure- Azure Mobile ServicesGet started azure- Azure Mobile Services
Get started azure- Azure Mobile Services
 
Developing advanced universal apps using html & js
Developing advanced universal apps using html & jsDeveloping advanced universal apps using html & js
Developing advanced universal apps using html & js
 
Univeral App using O365 API
Univeral App using O365 APIUniveral App using O365 API
Univeral App using O365 API
 
Product centric site
Product centric siteProduct centric site
Product centric site
 
Building universal app
Building universal appBuilding universal app
Building universal app
 
SharePoint Farm Setup On Azure
SharePoint Farm Setup On AzureSharePoint Farm Setup On Azure
SharePoint Farm Setup On Azure
 
Xaml programming
Xaml programmingXaml programming
Xaml programming
 
Azure Websites
Azure WebsitesAzure Websites
Azure Websites
 
Windows 8.1 Start Screen Features
Windows 8.1 Start Screen FeaturesWindows 8.1 Start Screen Features
Windows 8.1 Start Screen Features
 
Surface presentation
Surface presentationSurface presentation
Surface presentation
 
Share point 2010 features
Share point 2010 featuresShare point 2010 features
Share point 2010 features
 
Silverlight 4
Silverlight 4Silverlight 4
Silverlight 4
 
Share point guidance package
Share point guidance packageShare point guidance package
Share point guidance package
 
ASP.NET MVC 4.0
ASP.NET MVC 4.0ASP.NET MVC 4.0
ASP.NET MVC 4.0
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

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?
 
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
 
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, ...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
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
 
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...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
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
 
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot ModelNavi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Navi Mumbai Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
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...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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
 
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
 
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
 

jQuery programming with visual web part

  • 1. jQuery Programming with Visual Web Part SharePoint 2013 / 2010 SharePoint UG 07/May/2013
  • 2. Agenda  What is jQuery?  Why jQuery?  jQuery Widgets  Visual Web Parts and jQuery  Demo  Deploying jQuery Components with wsp
  • 3. What is jQuery?  jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps  jQuery is itself written in JavaScript, and comes in the form of a single .js file that you link to from your webpage  The jQuery library actually comes in 2 forms:  The uncompressed .js file is easy to read and modify, but it's around 160kb in size (at the time of writing).  The minified .js file has all comments, whitespace, and other unnecessary characters removed from the file, squeezing the whole library into a mere 23kb.
  • 4. Why jQuery?  Making XML (Ajax) requests. These use JavaScript to request additional data from the Web server without having to reload the page.  Manipulating the DOM. You can easily add, remove, and reorder content in the Web page using just a couple of lines of code  Adding animated effects to elements. jQuery lets you easily add effects such as fading in/out, sliding in/out, and expanding/contracting  Rich UI animated Controls Available  jQuery Plugins – Many reusable plugins available which are ready to use.
  • 5. jQuery Widgets  Accordion  Autocomplete  Button  Datepicker  Dialog  Menu  Progressbar  Slider  Spinner  Tabs  Tooltip
  • 6. Client Object Model vs. jQuery  Client Object Model  Managed Client - Microsoft.SharePoint.Client.dll  Silverlight - Microsoft.SharePoint.Client.Silverlight.dll  ECMAScript - SP.js  jQuery  spservices http://spservices.codeplex.com/  jPoint http://jpoint.codeplex.com/discussions/81945  Raw jQuery http://jquery.com/
  • 8. SharePoint 2013 - REST(REpresentational State Transfer)  jQuery Programming against list  jQuery UI
  • 9. REST  POST – Create lists and sites  PUT, PATCH, MERGE for update Client object model REST equivalent ClientContext.Web.Lists http://server/site/_api/web/lists ClientContext.Web.Lists[guid] http://server/site/_api/web/lists(‘guid’) ClientContext.Web.Lists.GetByTitle("Title") http://server/site/_api/web/lists/getbytitle(‘Title’)
  • 10. REST Call Area Access point Site http://server/site/_api/site Web http://server/site/_api/web User Profile http:// server/site/_api/SP.UserProfiles.PeopleManager Search http:// server/site/_api/search Publishing http:// server/site/_api/publishing To access a specific site collection http://server/site/_api/site To access a specific site http://server/site/_api/web Parameter http://server/site/_api/web/lists/getByTitle('Announcements')/fields/getByTitle('Description') http://server/site/_api/web/lists('<guid>')/fields/getById('<guid>') Alias (both are same) http://server/site/_api/web/applyWebTemplate("STS#0") http://server/site/_api/web/applyWebTemplate(title=@template)?@template="STS#0“
  • 13. jQuery UI Demo  Accordion Sample