The document discusses jQuery fundamentals including selectors, interacting with the DOM, handling events, and Ajax features. It provides examples and recommendations for learning jQuery including reading documentation, using tools like VSDoc and Fiddler, and consuming tea and beer. Next steps mentioned are exploring additional JavaScript libraries and frameworks like Knockout, Backbone, LINQ.js, TypeScript, and SignalR to build richer user interfaces.
This document provides an introduction and overview of key JavaScript concepts for developers familiar with C#. It discusses why JavaScript is important for SharePoint development and highlights improvements from SharePoint 2007 to 2013. The document then summarizes key JavaScript concepts like variables, data types, functions, classes, closures, modules and namespaces in 1-3 sentences each. It includes links to additional resources and demos code examples.
Explanation for:
- Why it is important to wrap JS code by anonymous function
- How to work with Drupal.behaviors
- What is jQuery.once
- How to write reusable code in Drupal javascript modules
- What is Base url
- jQuery code style tips
This document provides an introduction to jQuery, including what jQuery is, why it's useful, how to include it, and some common jQuery syntax and methods. Key points:
- jQuery is a JavaScript framework that makes interacting with HTML, CSS, and browser functionality simpler. It provides methods for DOM manipulation, AJAX requests, and event handling.
- jQuery uses CSS selector syntax to select elements and chainable methods to manipulate them. Common methods include show(), hide(), addClass(), removeClass(), and more.
- Events like click and change can have callback functions attached via jQuery. AJAX requests allow asynchronous data retrieval without page reloads.
- jQuery handles cross-browser compatibility and provides a consistent
This document summarizes a presentation on unobtrusive JavaScript with jQuery. The presentation introduces JavaScript frameworks like jQuery and the concept of unobtrusive JavaScript. It discusses jQuery's core philosophy of simplifying interactions between HTML and JavaScript. The document outlines jQuery's API and popular plugins. It also covers lessons learned, including placing CSS at the top, JavaScript at the bottom, and assessing pages with Yslow. The presentation concludes with working examples and acknowledgments.
This document provides an overview of using jQuery for user interface development. It discusses what jQuery is, provides a JavaScript 101 refresher, and covers key jQuery concepts like selecting elements, manipulating the DOM, attaching events, and making AJAX requests. The document outlines an example workshop agenda that demonstrates finding elements, modifying attributes and styles, binding events, and more through hands-on exercises using jQuery.
The document provides an agenda and overview for a SharePoint Saturday session on using SharePoint and jQuery. The session will cover the history of SharePoint and jQuery, an overview of jQuery, best practices for when to use jQuery and how to deploy and develop with it. It will also discuss using jQuery to interact with SharePoint forms and lists, and demonstrate some third party jQuery libraries.
The document appears to be a presentation about using jQuery with SharePoint. It discusses open wireless access being available and encourages attendees to tweet about the session and blog. It then provides information about the presenter and their background as well as an outline of the topics to be covered in the presentation, including what jQuery is, how to deploy and develop with it, interacting with SharePoint and the DOM, reading and writing list data, using third party libraries, and demos.
Things you should know about jQuery JavaScript library. A JavaScript library designed to hide painful cross-browser compatibility issues while presenting a solid, usable, API.
This document provides an introduction to FuncUnit, a JavaScript functional testing framework. It discusses barriers to testing JavaScript applications, how FuncUnit addresses these barriers through its easy to use API and ability to simulate user interactions across browsers. It also provides examples of using FuncUnit to test applications written with jQuery and without page reloads.
jQuery Performance Tips and Tricks (2011)Addy Osmani
油
Today were going to take a look at best practices, tips and tricks for improving the performance of your jQuery code. Performance optimization is a crucial aspect of building snappy client-side applications and something which all developers using jQuery should bare in mind.
Handlebars.js
This presentation has been developed in the context of the Mobile Applications Development course at the Computer Science Department of the University of LAquila (Italy).
http://www.di.univaq.it/malavolta
jQuery is a JavaScript library that simplifies HTML document traversal, event handling, animating, and Ajax interactions. It allows developers to write less code that does more. Some key features of jQuery include its use of CSS selector syntax to select elements, methods for traversing and manipulating the DOM tree, and ability to bind event handlers. jQuery also helps developers work with the DOM in a cross-browser compatible way, such as executing code when the DOM is ready without waiting for images and stylesheets to load.
JavaScript is an object-based scripting language used to add interactivity to web pages in browsers by manipulating HTML objects and handling events. It was originally developed at Netscape to enable dynamic and interactive pages but is now supported by all major browsers. The document provides an overview of JavaScript objects, events, and how to get started using it with HTML.
User Interface Development with jQuerycolinbdclark
油
A half-day workshop covering all aspects of user interface development with jQuery. Starts with a JavaScript refresher, followed by coverage of each major feature of jQuery. Real world code samples are included throughout.
Presented by Colin Clark and Justin Obara at the 2010 Jasig Conference in San Diego.
This document provides an overview of JavaScript, including:
- JavaScript is a client-side scripting language designed for web pages that enhances HTML with dynamic and interactive features.
- It was initially developed by Netscape as LiveScript but was renamed JavaScript and standardized along with Java.
- JavaScript can react to events, validate data, detect the browser, create cookies, and read/write HTML elements.
- Key JavaScript concepts covered include objects, properties, methods, functions, values, variables, and the HTML DOM for finding and manipulating elements.
Nothing Hard Baked: Designing the Inclusive Webcolinbdclark
油
We've all experienced the frustration and exclusion of using an application that is awkwardly designed or poorly suited to our preferred device. In this talk, I redefine accessibility as a usability problem, exploring some of the limitations we've inherited from traditional, desktop-centric approaches to accessibility and user interface design. I also show a few of the techniques used in Fluid Infusion to support open web user interfaces that can more readily adapt to the needs of both developers and end-users alike.
What is JavaScript?
JavaScript is a very powerful client-side scripting language. JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage more lively and interactive, with the help of JavaScript. JavaScript is also being used widely in game development and Mobile application development.
jQuery is the new favorite of web developers. This lightweight JavaScript library makes developers love writing JavaScript code again! What needed 20 lines of code first is now reduced to 3 lines. Who wouldnt be enthusiastic?! Microsoft showed its love for the library by fully integrating it in Visual Studio. I dare to ask: Should you stay behind? In this session, well take a look at jQuery and well teach you what you need to know to get on your way. More specifically, well look at selectors, attributes, working with WCF, jQuery UI and much more. You may walk out of this session wearing a sticker: I love jQuery!
The document discusses the history and evolution of JavaScript libraries for web development. It describes how jQuery has come to dominate the market due to its simplicity and robustness. It outlines Microsoft's initial development of its own Microsoft Ajax library to support ASP.NET developers, but how it later embraced jQuery instead and now includes it with Visual Studio.
JavaScript is a scripting language that adds interactivity to HTML pages. It works in all major browsers and is used to build dynamic web pages. JavaScript can react to events, modify HTML elements, validate forms, detect browsers, and write cookies. It is commonly placed in <script> tags within HTML pages or linked via external .js files. Comments are added to explain JavaScript code and prevent execution.
This document provides an introduction and overview of jQuery, including:
1) The benefits of jQuery such as its shallow learning curve, ease of DOM manipulation, cross-browser compatibility, and extensibility through plugins.
2) How to get started with jQuery by downloading the library and using basic selectors and functions.
3) Examples of jQuery selectors, actions, and effects that can be used to manipulate and style page elements.
4) Important jQuery concepts like the DOM, CSS selectors, JSON, and using events like "ready" and "click" to execute code.
The document discusses advanced JavaScript concepts including function prototypes, object constructors, adding properties and methods, and using callbacks. It then covers using JavaScript libraries like jQuery and Underscore to simplify DOM manipulation, event handling, and iterating over objects and arrays. Finally, it mentions how JavaScript frameworks like Backbone.js can help build production-ready code by enforcing patterns like MVC and abstracting common functionality.
The document discusses JavaScript, including what it is, basic syntax, libraries like jQuery and underscore.js, how to use JavaScript in Rails applications with CoffeeScript, and modeling associations in a Rails application using one-to-many, many-to-many, and deep relations between models like author, post, and category. It also provides two assignments related to creating posts as an author and attaching categories to posts.
This document provides an overview of JavaScript including:
- JavaScript is an interpreted programming language that allows adding interactivity to HTML pages.
- It is commonly used for client-side scripting of web pages in browsers.
- Core JavaScript concepts like variables, data types, operators, and functions are introduced.
- Different types of loops in JavaScript like for, for/in, while and do/while loops are explained.
- Best practices for including JavaScript code in HTML files using <script> tags are covered.
Complete Notes on Angular 2 and TypeScriptEPAM Systems
油
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It adds optional static typing, classes, and interfaces to JavaScript to help catch errors. TypeScript code is converted to JavaScript code during compilation. Angular 2.0 is written in TypeScript to take advantage of its static typing and other features. TypeScript allows programmers to write object-oriented programs and have them compiled to JavaScript, enabling both server-side and client-side development.
Stack Overflow Austin - jQuery for DevelopersJonathan Sharp
油
Jonathan Sharp is a freelance developer and member of the jQuery team. He gave an introduction to jQuery covering the following key points:
1. jQuery is a JavaScript library that simplifies DOM manipulation, event handling, animations and Ajax interactions. It uses CSS selectors to find elements and chaining to perform multiple operations in one line of code.
2. The core concepts of jQuery include finding elements and performing actions on them, creating new elements and appending them, chaining and implicit iteration, and understanding the different parameter types like selectors, HTML and DOM elements.
3. An overview of the jQuery API was provided covering core functionality, selectors, attributes, traversing, manipulation, CSS, events
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)Doris Chen
油
Get frustrated by cross-browser incompatibility? Hate to develop application using JavaScript? jQuery is a powerful JavaScript library that can enhance your websites regardless of your background. jQuery is fast, lean, simple and hugely expandable, enabling you to build compelling web applications quickly and easily. In this session, we will start with a quick introduction of jQuery, illustrate whats so good about jQuery, and demonstrate step by step how to develop jQuery Ajax application efficiently with database, web services, OData, NetFlix and ASP.NET MVC. Microsoft is now shipping, supporting, and contributing to jQuery, with ASP.NET and Visual Studio. New features which will be available in the next release of jQuery such as globalization, templating and data-linking will be introduced in the session as well.
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
Things you should know about jQuery JavaScript library. A JavaScript library designed to hide painful cross-browser compatibility issues while presenting a solid, usable, API.
This document provides an introduction to FuncUnit, a JavaScript functional testing framework. It discusses barriers to testing JavaScript applications, how FuncUnit addresses these barriers through its easy to use API and ability to simulate user interactions across browsers. It also provides examples of using FuncUnit to test applications written with jQuery and without page reloads.
jQuery Performance Tips and Tricks (2011)Addy Osmani
油
Today were going to take a look at best practices, tips and tricks for improving the performance of your jQuery code. Performance optimization is a crucial aspect of building snappy client-side applications and something which all developers using jQuery should bare in mind.
Handlebars.js
This presentation has been developed in the context of the Mobile Applications Development course at the Computer Science Department of the University of LAquila (Italy).
http://www.di.univaq.it/malavolta
jQuery is a JavaScript library that simplifies HTML document traversal, event handling, animating, and Ajax interactions. It allows developers to write less code that does more. Some key features of jQuery include its use of CSS selector syntax to select elements, methods for traversing and manipulating the DOM tree, and ability to bind event handlers. jQuery also helps developers work with the DOM in a cross-browser compatible way, such as executing code when the DOM is ready without waiting for images and stylesheets to load.
JavaScript is an object-based scripting language used to add interactivity to web pages in browsers by manipulating HTML objects and handling events. It was originally developed at Netscape to enable dynamic and interactive pages but is now supported by all major browsers. The document provides an overview of JavaScript objects, events, and how to get started using it with HTML.
User Interface Development with jQuerycolinbdclark
油
A half-day workshop covering all aspects of user interface development with jQuery. Starts with a JavaScript refresher, followed by coverage of each major feature of jQuery. Real world code samples are included throughout.
Presented by Colin Clark and Justin Obara at the 2010 Jasig Conference in San Diego.
This document provides an overview of JavaScript, including:
- JavaScript is a client-side scripting language designed for web pages that enhances HTML with dynamic and interactive features.
- It was initially developed by Netscape as LiveScript but was renamed JavaScript and standardized along with Java.
- JavaScript can react to events, validate data, detect the browser, create cookies, and read/write HTML elements.
- Key JavaScript concepts covered include objects, properties, methods, functions, values, variables, and the HTML DOM for finding and manipulating elements.
Nothing Hard Baked: Designing the Inclusive Webcolinbdclark
油
We've all experienced the frustration and exclusion of using an application that is awkwardly designed or poorly suited to our preferred device. In this talk, I redefine accessibility as a usability problem, exploring some of the limitations we've inherited from traditional, desktop-centric approaches to accessibility and user interface design. I also show a few of the techniques used in Fluid Infusion to support open web user interfaces that can more readily adapt to the needs of both developers and end-users alike.
What is JavaScript?
JavaScript is a very powerful client-side scripting language. JavaScript is used mainly for enhancing the interaction of a user with the webpage. In other words, you can make your webpage more lively and interactive, with the help of JavaScript. JavaScript is also being used widely in game development and Mobile application development.
jQuery is the new favorite of web developers. This lightweight JavaScript library makes developers love writing JavaScript code again! What needed 20 lines of code first is now reduced to 3 lines. Who wouldnt be enthusiastic?! Microsoft showed its love for the library by fully integrating it in Visual Studio. I dare to ask: Should you stay behind? In this session, well take a look at jQuery and well teach you what you need to know to get on your way. More specifically, well look at selectors, attributes, working with WCF, jQuery UI and much more. You may walk out of this session wearing a sticker: I love jQuery!
The document discusses the history and evolution of JavaScript libraries for web development. It describes how jQuery has come to dominate the market due to its simplicity and robustness. It outlines Microsoft's initial development of its own Microsoft Ajax library to support ASP.NET developers, but how it later embraced jQuery instead and now includes it with Visual Studio.
JavaScript is a scripting language that adds interactivity to HTML pages. It works in all major browsers and is used to build dynamic web pages. JavaScript can react to events, modify HTML elements, validate forms, detect browsers, and write cookies. It is commonly placed in <script> tags within HTML pages or linked via external .js files. Comments are added to explain JavaScript code and prevent execution.
This document provides an introduction and overview of jQuery, including:
1) The benefits of jQuery such as its shallow learning curve, ease of DOM manipulation, cross-browser compatibility, and extensibility through plugins.
2) How to get started with jQuery by downloading the library and using basic selectors and functions.
3) Examples of jQuery selectors, actions, and effects that can be used to manipulate and style page elements.
4) Important jQuery concepts like the DOM, CSS selectors, JSON, and using events like "ready" and "click" to execute code.
The document discusses advanced JavaScript concepts including function prototypes, object constructors, adding properties and methods, and using callbacks. It then covers using JavaScript libraries like jQuery and Underscore to simplify DOM manipulation, event handling, and iterating over objects and arrays. Finally, it mentions how JavaScript frameworks like Backbone.js can help build production-ready code by enforcing patterns like MVC and abstracting common functionality.
The document discusses JavaScript, including what it is, basic syntax, libraries like jQuery and underscore.js, how to use JavaScript in Rails applications with CoffeeScript, and modeling associations in a Rails application using one-to-many, many-to-many, and deep relations between models like author, post, and category. It also provides two assignments related to creating posts as an author and attaching categories to posts.
This document provides an overview of JavaScript including:
- JavaScript is an interpreted programming language that allows adding interactivity to HTML pages.
- It is commonly used for client-side scripting of web pages in browsers.
- Core JavaScript concepts like variables, data types, operators, and functions are introduced.
- Different types of loops in JavaScript like for, for/in, while and do/while loops are explained.
- Best practices for including JavaScript code in HTML files using <script> tags are covered.
Complete Notes on Angular 2 and TypeScriptEPAM Systems
油
TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. It adds optional static typing, classes, and interfaces to JavaScript to help catch errors. TypeScript code is converted to JavaScript code during compilation. Angular 2.0 is written in TypeScript to take advantage of its static typing and other features. TypeScript allows programmers to write object-oriented programs and have them compiled to JavaScript, enabling both server-side and client-side development.
Stack Overflow Austin - jQuery for DevelopersJonathan Sharp
油
Jonathan Sharp is a freelance developer and member of the jQuery team. He gave an introduction to jQuery covering the following key points:
1. jQuery is a JavaScript library that simplifies DOM manipulation, event handling, animations and Ajax interactions. It uses CSS selectors to find elements and chaining to perform multiple operations in one line of code.
2. The core concepts of jQuery include finding elements and performing actions on them, creating new elements and appending them, chaining and implicit iteration, and understanding the different parameter types like selectors, HTML and DOM elements.
3. An overview of the jQuery API was provided covering core functionality, selectors, attributes, traversing, manipulation, CSS, events
jQuery Makes Writing JavaScript Fun Again (for HTML5 User Group)Doris Chen
油
Get frustrated by cross-browser incompatibility? Hate to develop application using JavaScript? jQuery is a powerful JavaScript library that can enhance your websites regardless of your background. jQuery is fast, lean, simple and hugely expandable, enabling you to build compelling web applications quickly and easily. In this session, we will start with a quick introduction of jQuery, illustrate whats so good about jQuery, and demonstrate step by step how to develop jQuery Ajax application efficiently with database, web services, OData, NetFlix and ASP.NET MVC. Microsoft is now shipping, supporting, and contributing to jQuery, with ASP.NET and Visual Studio. New features which will be available in the next release of jQuery such as globalization, templating and data-linking will be introduced in the session as well.
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
SPTechCon Boston 2015 - Utilizing jQuery in SharePointMark Rackley
油
This document provides an overview of using jQuery in SharePoint. It discusses what jQuery is, why it is useful for SharePoint development, and how to deploy and develop with jQuery in SharePoint. It provides examples of common jQuery methods and best practices. It also demonstrates using the jQuery UI library to add tabs to a page.
jQuery is a lightweight JavaScript library that simplifies HTML and JavaScript interaction. It was developed by John Resig at Mozilla to simplify tasks like DOM manipulation, event handling, animation, and Ajax interactions. jQuery selects elements, handles events, performs animations, and ajax calls to simplify development. Common uses include forms, menus, tabs, sliders, and slideshows. The main benefits are a large community, ease of use, strong documentation, and ability to add functionality through plugins.
jQuery is a popular JavaScript library that makes it easier to manipulate HTML documents and handle browser-specific behaviors. It is used by many major websites and frameworks. jQuery simplifies tasks like getting element dimensions, handling events, developing plugins and more through its CSS selector syntax and methods. Code written with jQuery is unobtrusive, separating behavior, content and presentation for improved maintenance.
jQuery is a popular JavaScript library that makes it easier to manipulate DOM elements and handle browser inconsistencies. It is used by many major websites and open source projects. jQuery benefits developers by providing a simple yet powerful API, unobtrusive code, small file size, and an active community. The jQuery syntax is designed to resemble CSS selectors, making it intuitive for designers and developers to use.
Jquery Complete Presentation along with Javascript BasicsEPAM Systems
油
jQuery is a JavaScript library that simplifies HTML document manipulation and event handling. It allows developers to select elements, hide/show elements, and handle events with simple and concise code. jQuery animations and effects like fade, slide, and animate allow for creative transitions between states.
This document provides an introduction and overview of jQuery. It discusses how jQuery simplifies DOM navigation and manipulation, handles browser differences, and makes JavaScript coding easier. The document covers basic jQuery concepts like selectors, the jQuery function, attributes, and events. It also provides examples of common jQuery code.
The Inclusive Web: hands-on with HTML5 and jQuerycolinbdclark
油
Driven by technologies such as HTML5, JavaScript, and jQuery, innovative new user experiences are thriving on the Web. This workshop, presented by Justin Obara and Colin Clark from the Fluid community (http://fluidproject.org), will provide Web designers and developers with an overview of modern Web accessibility techniques, providing hands-on ways to make HTML5 and jQuery-based applications more accessible, flexible, and inclusive of a diverse range of users. Well also cover some of the features of Fluid Infusion, an application framework built on top of jQuery.
This document provides an overview of jQuery, including:
- What jQuery is and how it simplifies client-side scripting
- How to download and include the jQuery library
- Common jQuery syntax using selectors to find elements and perform actions
- How jQuery interacts with elements using the DOM and handles events
- How jQuery enables AJAX interactions to request and load data asynchronously
This document provides an introduction to jQuery, a lightweight JavaScript library. It discusses jQuery's benefits like less code, improved efficiency, excellent documentation. It also covers jQuery concepts like DOM scripting, unobtrusive code, and the $() function. The document demonstrates jQuery selectors, HTML manipulation, CSS manipulation, events, effects, and AJAX calls. It mentions that Microsoft will distribute jQuery with Visual Studio.
How I Learned to Stop Worrying and Love jQuery (Jan 2013)David Giard
油
The document discusses how jQuery can be used to simplify JavaScript programming. It introduces jQuery, explaining that it provides cross-browser compatibility and built-in functions to make JavaScript coding easier. It also discusses how jQuery is widely used on popular websites and how to include jQuery in a web page.
SPTechCon - Share point and jquery essentialsMark Rackley
油
This document provides an outline for a workshop on using jQuery and SharePoint. The workshop will cover jQuery overview and common methods, deployment and development tools and techniques, interacting with SharePoint and the DOM, reading and writing SharePoint list data, using third party jQuery libraries, and building a sample application. Key topics include jQuery vs JavaScript, common jQuery methods, debugging tools, retrieving and updating SharePoint fields, SPServices vs client object model, and recommendations for third party jQuery libraries.
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.
This document provides an introduction to jQuery for beginners. It discusses jQuery's history and benefits, how to download and include jQuery, basic selectors and filters, traversing elements, basic events and animations, jQuery UI libraries, AJAX functionality, and compares jQuery to other JavaScript frameworks. The presentation aims to explain jQuery concepts at a high level without being a tutorial or reference guide. It includes code examples throughout to demonstrate jQuery syntax and methods.
Javascript and first-class citizenry: require.js & node.js
Javascript on web pages is ubiquitous and its problems are legendary. Javascript, seen as a second-class code citizen, is usually hacked together even by seasoned developers. New libraries (jQuery, prototype, backbone, knockout, underscore) and runtime tools (firebug, jasmine) look like they solve many problems - and they do. But they still leave poorly written code as just that. One key problem is that all javascript code lives globally and this results in poorly managed, tested and delivered code.
In this session, I will illustrate that we can treat javascript as a first-class citizen using with require.js and node.js: it can be modular, encapsulated and easily unit tested and added to continuous integration cycle. The dependencies between javascript modules can also be managed and packaged just like in C# and Java. In the end, we can resolve many javascript difficulties at compile time rather than waiting until runtime.
This document provides an overview of AJAX, JSON, jQuery, and livequery. It discusses how these technologies enable asynchronous communication with servers and manipulation of web pages. It also provides examples of using jQuery to select elements, modify attributes and styles, handle events, and perform animations. The document concludes with assignments for demonstrating skills with jQuery selectors, effects, and calendar functionality.
The document discusses jQuery basics and the DOM. It explains that the DOM is how browsers structure HTML documents into an XML format. jQuery allows selecting elements from the DOM using CSS-style selectors and manipulating them using jQuery functions. Popular uses of jQuery include DOM manipulation, effects, AJAX calls, and building plugins. The document encourages learning more about jQuery through its online documentation.
5. Why use jQuery
First of all what you need to know:
Javascript
Html
Css
Why jQuery is so famous?
JavaScript Library (single file)
Cross-browser support
Selector
Handle events
Animate
Post and Get (Ajax calls)
A lot of plugins available
6. What is DOM?
http://www.w3.org/TR/DOM-Level-2-Core/introduction.html
The Document Object Model (DOM) is an application programming interface
(API) for valid HTML and well-formed XML documents. It defines the logical
structure of documents and the way a document is accessed and manipulated.
In the DOM specification, the term "document" is used in the broad sense -
increasingly, XML is being used as a way of representing many different kinds of
information that may be stored in diverse systems, and much of this would
traditionally be seen as data rather than as documents. Nevertheless, XML
presents this data as documents, and the DOM may be used to manage this
data.
With the Document Object Model, programmers can build documents, navigate
their structure, and add, modify, or delete elements and content. Anything found
in an HTML or XML document can be accessed, changed, deleted, or added
using the Document Object Model, with a few exceptions - in particular, the
DOM interfaces for the XML internal and external subsets have not yet been
specified.
8. Learn the language
From Shawn Wildermuth - JavaScript for the C# Guy:
http://wildermuth.com/2012/5/6/JavaScript_for_the_C_Guy_The_Global_Object
http://wildermuth.com/2012/3/16/JavaScript_for_the_C_Guy_Scopes
http://wildermuth.com/2012/3/10/JavaScript_for_the_C_Guy_Function_Overloads
http://wildermuth.com/2012/5/28/JavaScript_for_the_C_Guy_The_confusion_about_this
9. Using jQuery Ready Function
$(document).ready()
Each HTML document loaded into a browser window becomes a document object
<script type="text/javascript" language="javascript">
$(document).read(function() {
// do it
});
</script>
What means $?
The $ is a identifier. jQuery use it as the primary base object (or function). Ex:
<script type="text/javascript" language="javascript">
var 畩 = function (object) {
object.Company = "Content and Code";
return object;
};
alert(畩(document).Company);
</script>
10. Use the dictionary
http://api.jquery.com -> it will be your best friend
If you want intellisense works with jquery, look that:
http://appendto.com/community/jquery-vsdoc
SP /// <reference path="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7-vsdoc.js" />
13. Selecting Nodes by: id, class name,
attribute name
Different ways to select a node:
By id:
$(#myDiv)
$(div[id])
By class:
$(.myClass)
By attribute:
$(div[id])
$(input[name~=man])
15. The Other Selectors
~= contains a word
|= contains a prefix
*= contains a string in the word
= equals
!= not equal
^= start with
:button is a button
:checkbox is a checkbox
:checked is a checked checkbox
18. Iterating Through Nodes
.each(function (index, Element)) is used to iterate through jQuery objects:
$('div')
.each(function(index) {
alert(index + + $(this).text());
});
-----------------
$('.row').last().remove();
-----------------
var newBox = $('<div class="tile"
id="bb"></div>').addClass(colorOfMyNewBox);
var lastrow = $('.row').last();
newBox.appendTo(lastrow);
19. Demo Modify Properties and Attributes
Object attributes can be accessed using attr():
var val = $('#logo').attr('title');
$('#logo').attr('title, new logo title);
$('#addBox').attr({
title: '',
css: {
'border': '2px solid black;
}
});
27. Drink a lot of (Yorkshire) tea with milk and
beer off course
Whats next to make my UI more
atractive (I mean Rich)
http://knockoutjs.com/
http://backbonejs.org/
(https://touch.www.linkedin.com/)
http://linqjs.codeplex.com/
http://www.typescriptlang.org
http://signalr.net/