JQuery & SharePoint San Antonio Users Group – September Meeting September 22, 2009 Microsoft SharePoint Server.

Slides:



Advertisements
Similar presentations
Building Fast 3rd-Party Webapps O'Reilly Velocity Web Performance and Operations Conference 24 June Lessons.
Advertisements

PART IV - EMBED VIDEO, AUDIO, AND DOCUMENTS. Find a video on Youtube.com: Search for a video, then look for the Embed code. Copy this code into the HTML/JavaScript.
Diego Guidi - DotNetMarche. DOM tree is clunky to use No multiple handlers per event No high-level functions Browser incompatibilities = jQuery to the.
JavaScript – Quiz #8 Lecture Code:
Cleveland C#/VB.Net User Group February 24, 2009 Marv Schwartz
Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
The jQuery library. What is jQuery ? A javascript lightweight library Is very easy to use Is powerful Is cross-browser compatible Downloadable from jQuery.com,
Programming Club IIT Kanpur. Work environment Before you begin coding,always set up your work environment to your needs IDE Notepad++ Sublime Text 2.
JQuery CS 380: Web Programming. What is jQuery? jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling,
SE-2840 Dr. Mark L. Hornick1 jQuery. jQuery is a library of JavaScript functions Helps minimize the amount of JavaScript you have to write in order to:
Introduction to jQuery (for Drupal) Amit Asaravala “aasarava” on drupal.org.
JQuery A Javascript Library Hard things made eas(ier) Norman White.
Building a Rich Internet Application with jQuery Ben Dewey twentysix New York Fill this space.
Day 2 – JavaScript & PHP.  Have the hover effect display an extra image  Add an extra image for each of the tags  In your writeText() function, you.
JQUERY/AJAX ALIREZA KHATAMIAN DELARAM YAZDANSEPAS.
JQuery. What is jQuery? jQuery is a fast, small, and feature-rich JavaScript library that simplifies HTML document traversing and manipulation event handling.
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Fundamentals, DOM, Events, AJAX, UI Doncho Minkov Telerik Corporation
Definition from Wikipedia.  The Prototype JavaScript Framework  implemented as a single file of JavaScript code  named prototype.js (
Agenda What is AJAX? What is jQuery? Demonstration/Tutorial Resources Q&A.
Making AJAX Easy with jQuery Chris Renner Health Systems Analyst Programmer & Informatics Manager VUMC Office of Grants & Contracts Management October.
JQuery CS 268. What is jQuery? From their web site:
PhpXperts What is jQuery Javascript Library Fast and concise Simplifies the interaction between HTML and JavaScript.
What is jQuery?  JavaScript Library  Functionality  DOM scripting & event handling  Ajax  User interface effects  Form validation 2.
JavaScript & jQuery the missing manual Chapter 11
JQuery Page Slider. Our goal is to get to the functionality of the Panic Coda web site.Panic Coda web site.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
Chapter 19: Adding JavaScript
JQuery Adding behaviour…. Lecture Plan Review of last lesson Adding behaviour –click, mouseover Animation –fade, slideDown Navigation –parent, find, next.
Styling and theming Build campaigns in style. What we'll look at... How a web document is structured How HTML and CSS fit together Tools you will need.
Interacting with a Web Page using JavaScript Mat Kelly GTAI Presentation January 10, 2014.
Spicing Up Web Parts Randy Williams SharePoint Hawaii User Group May 11, 2011.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
JavaScript, Fourth Edition
Jquery Nasrullah. Jquery jQuery is a JavaScript Library. jQuery greatly simplifies JavaScript programming. jQuery is easy to learn.
Cross Site Integration “mashups” cross site scripting.
INTRODUCTION TO HTML5 Using jQuery with HTML5. Introducing jQuery  Although it is not a part of any W3C or WHATWG specification, jQuery performs an important.
Expression Web 3... now with TFS!. What is Expression Web 3? Professional web design and development tool Create standards-based Web sites faster & easier.
Animation & Effects Using JQuery. What is jQuery? jQuery is a lightweight, JavaScript library. The purpose of jQuery is to make it much easier to use.
Unleash the Power of jQuery Doncho Minkov Telerik Software Academy academy.telerik.com Senior Technical Trainer
JQuery Javascript Library. JQuery Powerful JavaScript library –Simplify common JavaScript tasks –Access parts of a page using CSS or XPath-like expressions.
JQuery Introduction © Copyright 2014, Fred McClurg All Rights Reserved.
Unleash the Power of jQuery Learning & Development Team Telerik Software Academy.
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
Web Programming Language Week 9 Dr. Ken Cosh Introducing jQuery.
JQuery Overview Unleash the Power of jQuery SoftUni Team Technical Trainers Software University
Intro to jQuery. What is jQuery? A JavaScript library Lightweight (about 31KB for the minified version) Simplifies HTML document traversing (DOM), event.
IS2802 Introduction to Multimedia Applications for Business Lecture 07: Introduction to jQuery Rob Gleasure
Unit 13 –JQuery Basics Instructor: Brent Presley.
SHAREPOINT & JQUERY. Hi, my name and I am a product manager at lightning tools. I have been working with SharePoint for 5 years.
Introduction to JQuery COGS 187A – Fall JQuery jQuery is a JavaScript library, and allows us to manipulate HTML and CSS after the page has been.
The “Quick Change” Method of Web Design. Create Your Design Create and cut up the graphics for your web site. Create a masterstyle sheet. Name it “plainmasterstylesheet.html.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
JQUERY AND AJAX
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
SharePoint & jQuery. About me Phill Duffy – Product Manager at Lightning Tools Ltd – Author of ‘Pro SharePoint with jQuery’ – MCTS Application Developer.
JQuery Fundamentals Introduction Tutorial Videos
What is jQuery?.
12/04/12 JQuery I took these slides from the site because they were pretty good looking. Instructions for editing school and department titles: Select.
Tek Raj Chhetri Code for Humans not for machine.
Unleash the Power of jQuery
HTML.
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
JQuery with ASP.NET.
Javascript and JQuery SRM DSC.
E-commerce Applications Development
Document Object Model.
Presentation transcript:

jQuery & SharePoint San Antonio Users Group – September Meeting September 22, 2009 Microsoft SharePoint Server

©2009 Hitachi Consulting. Proprietary and Confidential. jQuery getting started What is jQuery? jQuery is a free, open source, lightweight JavaScript library that emphasizes interaction between JavaScript & HTML. jQuery simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript. * Microsoft plans to bundle jQuery with Framework 4 Where do I get it? (latest version now 1.3.2) 19k (I said lightweight) You can use a live version from Google i.e. 2

©2009 Hitachi Consulting. Proprietary and Confidential. Loading jQuery Download jQuery (or know where to include it from Google Code) Add the reference to the jQuery framework. 2 basic options: 1. Include jQuery in your project and added to the page with the folowing mark-up: 2. jQuery can also be loaded using the Google AJAX Libraries API with the following mark-up:Google AJAX Libraries API 3. Add a direct link to the framework on Google Code 3 google.load("jquery", "1.3.2");

©2009 Hitachi Consulting. Proprietary and Confidential. Using the Framework The starting $, this is the alias to the jQuery namespace. Here is an example of the most common function. It will wait until the document is done loading before executing it’s functional script (here alert): You can, and will have to mix regular JavaScript and jQuery: 4 $(document).ready(function() { alert('jQuery rulz!'); }); $(document).ready(function() { try { if ($("a#lnkSignin").length > 0) { if ($("a#lnkSignin[href*='?']").length > 0) { $("#lnkSignin").attr('href', $("#lnkSignin").attr("href") + "&goto=" + window.location.href); } else { $("#lnkSignin").attr('href', $("#lnkSignin").attr("href") + "?goto=" + window.location.href); } catch (e) { } });

©2009 Hitachi Consulting. Proprietary and Confidential. Functional jQuery $("div.test").add("p.quote").addClass("blue").slideDown("slow");...finds the union of all div tags with class attribute test and all p tags with CSS class attribute quote, adds the class attribute blue to each matched element, and then slides them down with an animation. The $ and add functions affect the matched set, while the addClass and slideDown affect the referenced nodes.... will request some.php from the server with parameters name=John and location=Boston and when the request is finished successfully, the success function will be called to alert the user. Functions; jQuery provides a varity of functions that can be used or “chained” in the query statement, or used on independently. 5 $.ajax({ type: "POST", url: "some.aspx", data: "name=Dave&location=SA", success: function(msg) { alert("Data Saved: " + msg); } }); var str = " foo "; jQuery.trim(str); $.trim(str); /* both return “foo” */

©2009 Hitachi Consulting. Proprietary and Confidential. jQuery 1.3 Cheat Sheet 6

©2009 Hitachi Consulting. Proprietary and Confidential. Integrating with SharePoint What do I need? The jQuery library SharePoint Designer (a free download now!) Ummmmmm, that’s it, ohh wait, you need a SharePoint instance ;-) What else? Some reccomended stuff IE8 has developer tools built in, or firebug in Firefox will make your life easier when trying to inspect the HTML jQuerify – checks to see if jQuery is loaded and loads it in the current page Selector gadget – point and click select items to build query 7 javascript: (function() { document.body.appendChild(document.createElement('script')).src = ' })();

©2009 Hitachi Consulting. Proprietary and Confidential. Now the easy part Open up your site with the SharePoint designer. DO NOT modify the original master page. Copy, Past rename and assign the copy as your master page you could run into issue. On you master page add the pointer to the jQuery file. Add a JS file and link it to the master page. Add JS to an HTML web-part Various methods…. Let’s see a demo… 8 If only Bill Gates had a penny for every time we’ve seen the SharePoint wheel, ohhh wait, he does!

©2009 Hitachi Consulting. Proprietary and Confidential. Questions? Ask me! 9 Dave Cooper - Manager, Socialized Services Hitachi Consulting Microsoft National Portal & Collaboration Practice Mobile: (720) Mail: MSN: Twitter: cooperfdiv Quick Links: jQuery web-site: jQuery on Google Code: jQuery docs: “See how I used Firebug to learn jQuery”: jQuery for absolute beginners Video Series: jQuery Library for SharePoint Web Services - Heather Solomon’s Branding - the best base master page on the planet! *Next time, why Chuck Norris and SharePoint are alike!