This document provides an overview of using jQuery with SharePoint. It discusses how jQuery can be used to resolve common SharePoint issues without extensive coding. Key points include how jQuery makes applications more usable, common myths about jQuery, deployment options, best practices for maintenance and upgrades, and how to interact with SharePoint lists and libraries using jQuery and the SPServices library. The document concludes with code examples and tips for debugging jQuery in SharePoint.
avaScript, REST, CSOM, Office 365 APIs: Like it or not, client-side development is the future of SharePoint development. At the forefront of this wave is the powerful JavaScript library jQuery. Utilizing jQuery in SharePoint, developers can take their applications to the next level in less time. What's more, you can utilize jQuery in SharePoint 2007, 2010, 2013, and in Office 365 often without making changes to your code. In this class, you gain a new appreciate for jQuery and learn:
"What's possible," including visual enhancements and practical business intelligence
Tips and Tricks for deploying and maintaining scripts
How to get quick wins with little effort using third-party jQuery libraries
How to interact with SharePoint forms and lists using JavaScript and jQuery
avaScript, REST, CSOM, Office 365 APIs: Like it or not, client-side development is the future of SharePoint development. At the forefront of this wave is the powerful JavaScript library jQuery. Utilizing jQuery in SharePoint, developers can take their applications to the next level in less time. What's more, you can utilize jQuery in SharePoint 2007, 2010, 2013, and in Office 365 often without making changes to your code. In this class, you gain a new appreciate for jQuery and learn:
"What's possible," including visual enhancements and practical business intelligence
Tips and Tricks for deploying and maintaining scripts
How to get quick wins with little effort using third-party jQuery libraries
How to interact with SharePoint forms and lists using JavaScript and jQuery
The SharePoint & jQuery Guide - Updated 1/14/14Mark Rackley
Latest version of my SharePoint & jQuery slides from SharePoint Saturday St. Louis.
This session introduces people to using jQuery in SharePoint, how to get started, and some best practices.
If you've been meaning to learn jQuery but haven't found the time, come to this introductory session where we'll cover all of the important basics of jQuery in a SharePoint context. By the end of the workshop, you'll be ready to start adding jQuery customizations to your SharePoint pages. We'll cover Selectors, Traversing, Manipulation, Events and Effects as I cover in my article series at SharePoint Magazine.
A Power User's Intro to jQuery Awesomeness in SharePointMark Rackley
The slide deck for my session walking Power Users through adding scripts to pages in SharePoint with demos showing what's possible to do without having to write any JavaScript. Includes links to blog posts with step by step video instructions.
This presentation was given at SharePoint Saturday Virginia Beach 2012. The topic covers some SharePoint based solutions that directly benefit from HTML5 features.
Presentation around several tips & trick to improve SharePoint (on premise) performance, mainly by tweaking the SQL databases.
Download the ppt for fun animations !
The SharePoint & jQuery Guide - Updated 1/14/14Mark Rackley
Latest version of my SharePoint & jQuery slides from SharePoint Saturday St. Louis.
This session introduces people to using jQuery in SharePoint, how to get started, and some best practices.
If you've been meaning to learn jQuery but haven't found the time, come to this introductory session where we'll cover all of the important basics of jQuery in a SharePoint context. By the end of the workshop, you'll be ready to start adding jQuery customizations to your SharePoint pages. We'll cover Selectors, Traversing, Manipulation, Events and Effects as I cover in my article series at SharePoint Magazine.
A Power User's Intro to jQuery Awesomeness in SharePointMark Rackley
The slide deck for my session walking Power Users through adding scripts to pages in SharePoint with demos showing what's possible to do without having to write any JavaScript. Includes links to blog posts with step by step video instructions.
This presentation was given at SharePoint Saturday Virginia Beach 2012. The topic covers some SharePoint based solutions that directly benefit from HTML5 features.
Presentation around several tips & trick to improve SharePoint (on premise) performance, mainly by tweaking the SQL databases.
Download the ppt for fun animations !
Breaking Down Barriers (to enterprise social) in the Land of DinosaursSusan Hanley
You’ve heard the messages: the future of collaboration is all about enterprise social networks. It’s a future where you’d like to be, of course, but what if you work in a land of stodgy dinosaurs? Your dinosaurs might not find it so easy to let go of past paradigms and make the leap of faith to try something new and different. This presentation showcases several powerful social collaboration success stories from which you can draw insights and presents some proven approaches to break down the barriers that you might encounter.
Things are moving fast. Sometimes you might even feel that you own comfort zone is getting of control. But in a Mobile-First, Cloud-First world, things are changing to a crazy pace and to stay on the top of your game, you need keep up with the latest and greatest technologies that are available out there. By staying up to date, you will give to yourself new options that will let you be more productive, write better code and push you in a more open and more collaborative world.
With the official shipment of Angular 4 and the current release of the SharePoint Framework, it is now the time to start moving towards those new technologies in your SharePoint Solutions.
In this session, we will cover the modern tool belt of the SharePoint developer by covering the SharePoint Framework as the new surface to express yourself, Angular as a Framework to enable you to build complete applications within your SharePoint modern experiences and Azure Function as the perfect server-side companion for all your Office 365 & Azure development.
This very demo-intensive session will make sure that at the end you get those 3 key takeaways :
- Understand the role of the SharePoint Framework, Angular and Azure Functions in this Cloud-First, Mobile-First world
- Have a complete sample where the modern tool belt is relevant and useful in a real-world scenario
- Change the way you will think for your next SharePoint project
You may have heard of PowerShell, but do you know what it’s capable of? Gone are the days of long, painful STSADM batch files – we have Windows PowerShell, and it’s here to stay.Learn how you can use Windows PowerShell both to perform simple one-off tasks as well as complex, bulk operations. Leveraging the Object Model gives Administrators and Developers the ability to do in a few lines of code what would’ve taken a lot more work (and probably a Developer or two) in the WSS platform.
In this demo filled session, you’ll see how you can get started with PowerShell, and you will hopefully leave with not only a greater understanding of what PowerShell is – but what it is capable of and how you can start using it to automate tasks in your SharePoint 2010 or 2013 environment.
Add-On Development: EE Expects that Every Developer will do his Dutyreedmaniac
Add-Ons are what make ExpressionEngine the flexible powerhouse that it is today. Being able to write your own simple plugins or incredibly expansive modules allows you to mold ExpressionEngine to nearly any task that your website might require. However, with that power comes a great responsibility to insure that your code is not slowing down the entire site or unduly stressing the server through bad code architecture.
There are simple tools already built into ExpressionEngine and PHP that you can use to see precisely what your Add-On is doing during page processing and where it might be doing more work than is absolutely necessary. Every developer should use these to optimize their work from the very beginning of development, prior to release. This workshop will explain these tools and how you can use them effectively. It will also delve deeper into optimization techniques and tricks that will keep your code light and clean, while finding a balance between functionality and performance.
Add-On Development: EE Expects that Every Developer will do his DutyLeslie Doherty
A presentation on Add-On Development: EE Expects that Every Developer will do his Duty as given at the EECI2009 conference in Leiden by Paul Burdick, lead developer at Solspace.
Highs, lows & random rants on SharePoint 2013 - Experiences from implementing a governance and quality management in SharePoint 2013. Presented at Norwegian SharePoint Community June 17th, 2013.
By now you may have heard that JavaScript is becoming a viable solution for SharePoint Development, but where do you get started? This session will start with some of the basics and introduce attendees to a few different Javascript libraries such as jQuery, Knockout, Bootstrap, etc. It will showcase SharePoint's REST API and provide some examples of how to conduct basic CRUD operations which you can repurpose for your own custom SharePoint Apps.
SUGUK Cambridge - Display Templates & JSLink for IT ProsPaul Hunt
This is another evolution of my Display Templates session. A few of the slides have been updated. The key differences between each session however is the demos.
These slides do contain the links called out during the session however.
Similar to SPSDenver - SharePoint & jQuery - What I wish I would have known (20)
A Power User's intro to jQuery awesomeness in SharePointMark Rackley
Okay, we get it. You’re not a developer, but there so many cool things you can do with jQuery and JavaScript in SharePoint!
Maybe you found that script on that blog that you copy and pasted and just can’t get to work. It looks so easy though.
Why should developers have all the fun?
In this session, learn how you, a Power User can take advantage of some of the awesomeness that is client side scripting in SharePoint. You’ll learn:
- How to use some plug and play scripts on the internet to create tabbed web parts, customize SharePoint forms and more
- Do’s and don’ts that will help you figure out why that script isn’t working on your site
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...Mark Rackley
SharePoint Saturday Twin Cities session on using third party jQuery libraries in SharePoint:
jQueryUI
DataTables.net
FullCalendar
Bluff Charts
StratusForms
Essentials of Automations: Optimizing FME Workflows with ParametersSafe Software
Are you looking to streamline your workflows and boost your projects’ efficiency? Do you find yourself searching for ways to add flexibility and control over your FME workflows? If so, you’re in the right place.
Join us for an insightful dive into the world of FME parameters, a critical element in optimizing workflow efficiency. This webinar marks the beginning of our three-part “Essentials of Automation” series. This first webinar is designed to equip you with the knowledge and skills to utilize parameters effectively: enhancing the flexibility, maintainability, and user control of your FME projects.
Here’s what you’ll gain:
- Essentials of FME Parameters: Understand the pivotal role of parameters, including Reader/Writer, Transformer, User, and FME Flow categories. Discover how they are the key to unlocking automation and optimization within your workflows.
- Practical Applications in FME Form: Delve into key user parameter types including choice, connections, and file URLs. Allow users to control how a workflow runs, making your workflows more reusable. Learn to import values and deliver the best user experience for your workflows while enhancing accuracy.
- Optimization Strategies in FME Flow: Explore the creation and strategic deployment of parameters in FME Flow, including the use of deployment and geometry parameters, to maximize workflow efficiency.
- Pro Tips for Success: Gain insights on parameterizing connections and leveraging new features like Conditional Visibility for clarity and simplicity.
We’ll wrap up with a glimpse into future webinars, followed by a Q&A session to address your specific questions surrounding this topic.
Don’t miss this opportunity to elevate your FME expertise and drive your projects to new heights of efficiency.
UiPath Test Automation using UiPath Test Suite series, part 4DianaGray10
Welcome to UiPath Test Automation using UiPath Test Suite series part 4. In this session, we will cover Test Manager overview along with SAP heatmap.
The UiPath Test Manager overview with SAP heatmap webinar offers a concise yet comprehensive exploration of the role of a Test Manager within SAP environments, coupled with the utilization of heatmaps for effective testing strategies.
Participants will gain insights into the responsibilities, challenges, and best practices associated with test management in SAP projects. Additionally, the webinar delves into the significance of heatmaps as a visual aid for identifying testing priorities, areas of risk, and resource allocation within SAP landscapes. Through this session, attendees can expect to enhance their understanding of test management principles while learning practical approaches to optimize testing processes in SAP environments using heatmap visualization techniques
What will you get from this session?
1. Insights into SAP testing best practices
2. Heatmap utilization for testing
3. Optimization of testing processes
4. Demo
Topics covered:
Execution from the test manager
Orchestrator execution result
Defect reporting
SAP heatmap example with demo
Speaker:
Deepak Rai, Automation Practice Lead, Boundaryless Group and UiPath MVP
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
GraphRAG is All You need? LLM & Knowledge GraphGuy Korland
Guy Korland, CEO and Co-founder of FalkorDB, will review two articles on the integration of language models with knowledge graphs.
1. Unifying Large Language Models and Knowledge Graphs: A Roadmap.
https://arxiv.org/abs/2306.08302
2. Microsoft Research's GraphRAG paper and a review paper on various uses of knowledge graphs:
https://www.microsoft.com/en-us/research/blog/graphrag-unlocking-llm-discovery-on-narrative-private-data/
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...DanBrown980551
Do you want to learn how to model and simulate an electrical network from scratch in under an hour?
Then welcome to this PowSyBl workshop, hosted by Rte, the French Transmission System Operator (TSO)!
During the webinar, you will discover the PowSyBl ecosystem as well as handle and study an electrical network through an interactive Python notebook.
PowSyBl is an open source project hosted by LF Energy, which offers a comprehensive set of features for electrical grid modelling and simulation. Among other advanced features, PowSyBl provides:
- A fully editable and extendable library for grid component modelling;
- Visualization tools to display your network;
- Grid simulation tools, such as power flows, security analyses (with or without remedial actions) and sensitivity analyses;
The framework is mostly written in Java, with a Python binding so that Python developers can access PowSyBl functionalities as well.
What you will learn during the webinar:
- For beginners: discover PowSyBl's functionalities through a quick general presentation and the notebook, without needing any expert coding skills;
- For advanced developers: master the skills to efficiently apply PowSyBl functionalities to your real-world scenarios.
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Securing your Kubernetes cluster_ a step-by-step guide to success !KatiaHIMEUR1
Today, after several years of existence, an extremely active community and an ultra-dynamic ecosystem, Kubernetes has established itself as the de facto standard in container orchestration. Thanks to a wide range of managed services, it has never been so easy to set up a ready-to-use Kubernetes cluster.
However, this ease of use means that the subject of security in Kubernetes is often left for later, or even neglected. This exposes companies to significant risks.
In this talk, I'll show you step-by-step how to secure your Kubernetes cluster for greater peace of mind and reliability.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
DevOps and Testing slides at DASA ConnectKari Kakkonen
My and Rik Marselis slides at 30.5.2024 DASA Connect conference. We discuss about what is testing, then what is agile testing and finally what is Testing in DevOps. Finally we had lovely workshop with the participants trying to find out different ways to think about quality and testing in different parts of the DevOps infinity loop.
Monitoring Java Application Security with JDK Tools and JFR Events
SPSDenver - SharePoint & jQuery - What I wish I would have known
1. SharePoint & jQuery – What I Wish I
Would Have Known When I Started…
Mark Rackley – Solutions Architect /
SharePoint Practice Lead / Developer
Email: mrackley@juniper-strategy.com
Blog: http://www.sharepointhillbilly.com
Twitter: http://www.twitter.com/mrackley
3. What is jQuery?
• JavaScript utility library
• Quickly write interactive and USABLE
applications
• You don’t have to deploy assemblies (perfect
for tightly controlled environments)
4. What Skills do I need?
• JavaScript (duh)
• CSS, XML
• A development background
– It IS code
– Uses development constructs
– If you can’t write code, your ability to do magic will be limited to
what you can copy/paste
• CAML, CAML, CAML… Sorry…
• Ability to think outside the box
– Use all the pieces together
5. SharePoint & jQuery? Why?
Resolves many common SharePoint complaints without
having to crack open Visual Studio
10. SharePoint & jQuery? Why?
“That will take 3
weeks???”
becomes “2 days?
Awesome! I love
you… here, please
accept this bonus
for being such a
wonderful
developer”
12. Common Myths
• It’s not secure
Busted… It uses SharePoint’s security. All scripts run with
privileges of current user
• It doesn’t perform well
Plausible… It performs very well if you use it correctly in the right
situations
• I can’t elevate privileges if I need to
Confirmed…
13. Yeah but…
• I can’t interact with SharePoint Lists and
Libraries without screen scraping
You can call Web Services with JavaScript (SPServices is a
wonderful jQuery library that wraps SharePoints Web Service
calls) and the Client Object Model in 2010
• It has no real use in my environment because
of “x”
Quickly prototype and tweak web parts before writing in Visual
Studio. In fact, in some environments it is the only development
option.
15. Not So Fast…
• It does “expose” business logic to user if they dig around
• It executes on the client side and can perform slow if
manipulating larges amounts of data
• Be extra careful for external facing applications
• You can’t do EVERYTHING with jQuery like…
– Timer Jobs
– Workflows (although it can eliminate the need for some)
– Event Handlers
– Elevate Privliges
– Easily interact with all business systems
• jQuery CAN harm your farm!
17. Deployment options
• Folders in SPD / Visual Studio Module
• File System
– Deployed with a WSP (don’t think of manually
copying)
– Not an option for Office 365 or hosted SharePoint
2010
• External Reference
– Microsoft Ajax Content Delivery Network (CDN)
http://www.asp.net/ajaxlibrary/cdn.ashx
18. Deployment options
• Document Library
– Easily modify scripts
– Keep track of changes with Metadata
– Recover from screw ups with Versioning
– Less control, more flexibility versus other options
20. Reference Options
• ScriptLink
• MasterPages, Delegate Controls, Web Parts, Controls, Custom
Pages
• Ensures Script is not loaded multiple times
• Renders in the correct place in the markup
• Need Visual Studio or SPD
• More upfront work
• Content Editor Web Part (CEWP)
• Quick & Easy
• Don’t have to deploy anything
• Adds CEWP overhead
21. Reference Options
• Custom Action
• Loads Script on every page
• Works in sandbox
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
ScriptSrc="~sitecollection/SiteAssets/jquery.min.js"
Location="ScriptLink"
Sequence="100"
>
</CustomAction>
</Elements>
22. Maintenance Best Practice
• Don’t add script directly in your Master Pages
– Difficult to maintain
– Must make modifications in SPD / Visual Studio
– Use Custom Action instead
• Don’t add scripts directly in your CEWP
– Using content link instead of editing the CEWP
source.
– No reuse
23. Moving Between Environments and
Upgrading to 2010
• It just works… (woo hoo)
– Uses list names and not GUIDs so no issues
moving from dev to prod
– For the most part works identical in 2007 and
2010 (I’m sure there’s the occasional issue but I’ve
never run into it).
– Might want to tweak in 2010 to take advantage of
2010 features (ribbon, modal pop-ups)
24. jQuery is another
tool for the
SharePoint
Developer’s toolkit
Understand the
limitations
Use it wisely
25. Development Basics
• jQuery methods are executed using jQuery() or $()
• $(document).ready() is your “main()”
– Don’t HAVE to, but easy to quickly locate where script starts
• $(‘#elementID’) to interact with any element
– Divs, tables, rows, cells, inputs, selects.. Etc.. Etc.. Etc…
– <table id=‘myTable’></table>
– $(‘#myTable’).append(‘<tr><td>add a row</td></tr>’);
• $(‘#elementID’).val() gets values of inputs
– <input type=‘text’ id=‘myTextBox’ >
– $(‘#myTextBox’).val();
• $(‘#elementID’).val([value]) sets the values of inputs
– $(‘#myTextBox’).val(‘Hello World’);
26. Development Basics
• $(‘#elementID’).html() gets the raw html within an element
(great for divs, spans, tables, table cells, etc.)
– <div id=‘myDiv’>Hello World</div>
– $(‘#myDiv’).html() = ‘Hello World’
• $(‘#elementID’).html(“<html text>”) to set raw html
– $(‘#myDiv’).html(‘Hello World! Welcome to SPSSTL!’)
• $(‘#elementID’).hide(), $(‘#elementID’).show(), and
$(‘#elementID’).toggle()
– $(‘#myDiv’).hide()
– $(‘#myDiv’).show()
– $(‘#myDiv’).toggle()
27. SharePoint Form Fields
//Text / Date Fields
$(“input[title=’Field Display Name’]”).val();
//LookUp / Choice Fields (be aware of >20 items in Lookup)
$(“select[title=’Field Display Name’]”).val();
//Is my check box checked?
if( $("input[title=’Field Display Name’]").is(':checked'))
{
alert("it's checked");
}
More information:
http://bit.ly/jQueryAndSharePointFields
28. SPServices
• jQuery library to execute SharePoint’s Web
Services
– Get List Items
– Add/Update List Items
– Create lists, content types, site columns, etc.
– Create document library folders
- Create cascading drop down lists
- Get user groups and permissions
- Potentially call ANY SharePoint Web Service
29. SPServices
• Works identical in SharePoint 2007 and
SharePoint 2010
• Runs with permissions of current user
• Communicate across sites
• Works with Anonymous access!
30. SPServices - FYI
• Use internal field names
• Returned values have “ows_” in front of field
names
$(this).attr("ows_Title");
• Lookup & People fields
– Value returned as “ID;#Value” (1;#Field Value)
• Check for new item ID on item add to make sure
item added correctly
var newID =
$(xData.responseXML).find("[nodeName=z:row]").attr("ows_ID");
33. Development Tips
• Develop for performance
– Limit rows returned using CAML
– Avoid screen scraping (Use SPServices)
– Don’t call web services until the data is needed.
• Use those ID’s to your advantage
– <td id=‘ListName-4’>
• Attributes are awesome
– <input type="text" title="list title 4" id="4">
– $('#4').attr("title");
– $(‘input*title=“list title 4”+’).val();
34. Don’t abuse the DOM!
It’s expensive to search the Document Object Model (DOM)
<select id=“MySelect”></select>
for (i=0;i<=500;i++)
{
$("#MySelect").append("<option>One Item " + i +
"</option>");
}
___________________________________________________________________________________________________________________
var options = “”;
for (i=0;i<=500;i++)
{
options += "<option>All Items " + i + "</option>";
}
$("#MySelect").append(options);
35. Debugging… ugh.. It ain’t pretty
• Alerts.. Alerts.. Alerts.. Alerts…
• Developer Tools
– Set breakpoints
– Evaluate expressions and variables inline (like REAL
debugging!)
– Firebug for Firefox
• Considered to be best of the free tools out there
– IE Developer Tools
• Comes installed on IE 8+
• console.log (don’t forget to remove before deploying)
36. Debugging… Common Errors
• Usually it means your library didn’t get loaded
– Object Expected
– Object doesn’t support method
• Make sure you don’t load scripts more than once
– Null Object reference
• Check your braces
• Make sure you end lines with “;”
• Check for missing quotes
When all else fails, delete your script and rebuild it slowly in
chunks, testing as you go.
39. ”Fast Food” Development
• You don’t have to be a SharePoint Guru
• It’s Cheap
• It’s Quick
• It’s Easy
• It gets the job done
40. ”Fast Food” Development
• Don’t abuse it, You’ll pay for it later
• Limited choices
• There are healthier options
• Adds page bloat
• Can slow your performance
41. Getting Started…
• A Dummies Guide to SharePoint and jQuery
– http://bit.ly/jQueryForDummies
• SPServices
– http://spservices.codeplex.com
• Super Awesome 3rd party libraries that
integrate well
– Modal dialogs - http://www.ericmmartin.com/projects/simplemodal/
– Calendar - http://arshaw.com/fullcalendar/
– Charts - http://g.raphaeljs.com/