Why Use A JavaScript Library?
|
|
- Meghan Barker
- 6 years ago
- Views:
Transcription
1 Using JQuery
2 4
3 Why Use A JavaScript Library? Okay, first things first. Writing JavaScript applications from scratch can be difficult, time-consuming, frustrating, and a real pain in the, ahem, britches. They often require a great deal of knowledge of working with the DOM, CSS, JavaScript, and often server resources. But don't fret! Because of open source JavaScript Libraries (or "Toolkits" or "Frameworks"), you can take advantage of JavaScript features and functionalities that are already pre-written and programmed all you have to do is know enough code to be able to insert these into your web pages. There are many JavaScript Library collections available, and most of them are free. For this course, we'll be looking at the jquery JavaScript library, a freely available open-source set of utilities and controls that help you to quickly build interactive web applications, or at least add cool and useful effects to your web pages. 5
4 Why jquery Instead of Some Other JavaScript Library? Some of jquery's strengths are, besides being ubiquitous: Lightweight: It's considerably smaller than many other JavaScript libraries that are out there, which means that pages/sites using it load more quickly. Active Development Community: If you have a question, you can ask it in any of the several jquery forums that are available and get a fast response, or you can search the forum archives to see if it is a FAQ. Plugin Architecture: If you need a feature that isn t in jquery, there s a good chance that someone s written it as a plugin. An additional benefit of plugins is that you re only adding them to your site when they re needed that is, you don t have their added weight on every page. Speed: jquery utilities are often a lot faster than those of it's competitors. For example, see the following speed test: Ease of Use for Non-Geeks: Because its selection queries are based on CSS, someone who isn t a fulltime professional programmer can easily drop into jquery, add some functionality to their site, and have it work the way they expect. For all these reasons, jquery has become one of the most popular JavaScript libraries available. 6
5 Sample file that loads jq, has button, paragraph output, handler for the click Break that down into each piece Loading jq use a template for loading CDN w/ local backup $(document).ready() Selectors - Changing paragraph Forms, buttons, Selectors responding to a button click 7
6 Adding jquery to Your Web Pages/Web Site In many cases, your first decision as a web developer using jquery is deciding whether to 1. download the jquery core to make it available from your web server or 2. use a hosted service (a CDN -Content Delivery Network). 8
7 To Download jquery from jquery.com 1. Open a browser and visit and click the Download jquery button. 9
8 To Download jquery from jquery.com CONTINUED 2. Choose the version of jquery you d like to download, either production or development. The production version is compressed and minified (white spaces and comments stripped out) to provide the smallest possible footprint and overhead. For this class we'll be using the uncompressed development version, when using a local file. 3. The jquery file will appear in your browser 4. Save the file to your computer and then move it to the proper place on your web site (whether your local class or development folder or a "live" production web space). 10
9 To Add jquery from a CDN (Content Delivery Network) like Google 1. Google a search for "Google Host Libraries" or you can access this direct link: 2. From the "Google Hosted Libraries - Developer's Guide" page, select the jquery link 11
10 To Add jquery from a CDN (Content Delivery Network) like Google CONTINUED 3. Under jquery snippet, highlight and copy the <script> tags that contain the path to the minified version of jquery hosted by Google 4. Paste this into a file for later use, or into the head of an HTML file that you could use as a template. FILE:jquery01.html 12
11 Setting Up a "Fallback" of Both Local and CDN Versions of jquery Add the following code within the <head></head> tags in your web pages: <script src="//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script type="text/javascript"> if (typeof jquery == 'undefined') { document.write(unescape("%3cscript src='jquery js' type='text/javascript'%3e%3c/script%3e")); } </script> The first script is an attempt to include the jquery core in your web project from the CDN. The second script then tests to see if the jquery object is available. If the jquery object isn t available, a line is written to the HTML file to load the jquery file from the local source (make sure the src path points to the actual directory/name of the local jquery file and not simply the example jquery.js file name used here). If you're using HTML5 it isn't necessary to include the type attribute in your script tags (as used in the code above). FYI: The %3C and %3E are URL Encoded Characters. %3C represents a '<' character and %3E represents a '>' character. The reason that %3C and %3E are used instead of '<' and '>' is because browsers may have a problem parsing '<' and '>' when included in a string inside document.write() but will know how to interpret the %3C and the %3E. 13
12 For this class, use the pattern on the prior slide to first try to load jquery from a CDN, and then to try and load it from your local backup if the CDN doesn't work. This is required for homework assignments. 14
13 FYI: "Minifying" Your Code As you re developing your markup, style sheets, and jquery code, you ll leave a lot of whitespace, tabs, and comments in your files to make the files easy to maintain and read. This is great during development, but for production you might consider minifying your code. The process of minifying code removes all of the unnecessary whitespace, comments, and formatting characters, which makes the download of the code much faster. Some minifying applications will even check your code for errors and perform other actions to reduce your code to the smallest possible size without losing functionality. Links to some online minifying/code compression tools: Google Closure Compiler (one of my favorites) Online JavaScript Compression Tool JavaScript Compressor (it can obfuscate too) 15
14 Do exercise #1, in order to make sure that you can add jquery to your file 16
15 jquery: $(document).ready() 17
16 Getting Started with jquery: document.ready() Using jquery's ready() Handler to Check the DOM Because jquery typically interacts with elements in your web pages, you ll want to make sure all of the elements are loaded into the browser before any of the jquery methods are called. To accomplish this, you d use the ready() event handler to make sure all of the DOM elements are loaded. There are a couple of ways to capture the event, and you can use either one of these methods directly in your page s markup or in a separate file. FILE: jquery02.html 18
17 Getting Started with jquery: document.ready() CONTINUED NOTE: for demonstrative purposes I will be including both JavaScript and jquery in <script> tags in the web page's <head> because it is easier to see what is going on with the ids and classes in the <body>. Usually I would put all my JavaScript/jQuery code in separate.js files and then link to them in the <head>. In either you re the head of your HTML page or a separate.js file attach the ready() handler to the document: $(document).ready(function() { // your JavaScript/jQuery code goes here alert('gadzooks! It worked!'); }); NOTE: the first opening curly brace '{' (or "squiggle") should be on the same line as function() as shown here. Putting it on a separate line can produce irregular behavior in some browsers. 19
18 Getting Started with jquery: document.ready() CONTINUED Let's dissect this single line of code step-by-step to see what it is doing. Similar syntax will be seen with other jquery code, so understanding it here will carry over there. $(document).ready(function() { // your JavaScript/jQuery code goes here alert('gadzooks! It worked!'); }); The dollar sign '$' is the standard way to access jquery (it s actually a shortcut for 'jquery ). It is the same as if you would have used the following (which also works and is completely interchangeable; in fact, if you are using another library that uses the dollar sign, then you can replace jquery's dollar sign shortcut with the word 'jquery'): jquery(document).ready(function() { // your JavaScript/jQuery code goes here alert('gadzooks! It worked!'); }); 20
19 Getting Started with jquery: document.ready() CONTINUED $(document).ready(function() { // your JavaScript/jQuery code goes here alert('gadzooks! It worked!'); }); The (document) is a special case and represents an all-encompassing document object that points to the web page document loaded into the browser. Typically a selector would go here in between the two parenthesis (or parens in programmer-speak). This might be a CSS3 selector and/or some of jquery's improvements. This is basically telling jquery to go find something, and in this case it is looking for the web page document. 21
20 Getting Started with jquery: document.ready() CONTINUED $(document).ready(function() { }); // your JavaScript/jQuery code goes here alert('gadzooks! It worked!'); The.ready() is an event handler that checks to see whether the document and the DOM is properly loaded and ready before running any more jquery, particularly the function() code inside of the.ready's parens. 22
21 Getting Started with jquery: document.ready() CONTINUED $(document).ready(function() { // your JavaScript/jQuery code goes here alert('gadzooks! It worked!'); }); The (function()is an inline "anonymous" function that hasn't been specifically named. It is a JavaScript shortcut that cuts down on code. If we wanted to we could have created a named function outside of this, and called it instead of the "anonymous" function: function somefunction(){ // your JavaScript/jQuery code goes here alert('gadzooks! It worked!'); }; $(document).ready(somefunction); 23
22 Getting Started with jquery: document.ready() CONTINUED $(document).ready(function() { // your JavaScript/jQuery code goes here alert('gadzooks! It worked!'); }); The opening and closing curly braces (or "squiggles" as I like to call them) { and } are going to enclose the inner working code of the function. The )at the end closes.ready's parens, and the semicolon ; at the very end closes the entire statement (just like we've seen in Java). 24
23 jquery Selectors 25
24 Getting Started with jquery: selecting an element <script> $(document).ready(function() { // Since this page loads so fast // you probably won't see the original text $("#paratochange").html("this is the <b>new</b> paragraph"); }); </script> </head> <body> <h2>jquery 03 Example File</h2> <p id="paratochange">some Fascinating Text!</p> </body> </html> FILE: jquery03.html 26
25 Getting Started with jquery: selecting an element <script> $(document).ready(function() { // Since this page loads so fast // you probably won't see the original text $("#paratochange").html("this is the <b>new</b> paragraph"); }); </script> </head> <body> <h2>jquery 03 Example File</h2> <p id="paratochange">some Fascinating Text!</p> </body> </html> This will use the jquery function ( $( ) ) in order to find one or more things on the page For right now we're going to select INDIVIDUAL items The jquery function is given a string note the red double quotes! The string contains a CSS selector for the element with the id - #paratochange Note that we've assigned an id to the paragraph we want to change id="paratochange", on the p element FILE: jquery03.html 27
26 Getting Started with jquery: selecting an element <script> $(document).ready(function() { // Since this page loads so fast // you probably won't see the original text $("#paratochange").html("this is the <b>new</b> paragraph"); }); </script> </head> <body> <h2>jquery 03 Example File</h2> <p id="paratochange">some Fascinating Text!</p> </body> </html> We then call the html() method to change the contents of the paragraph to be the new string Don't forget the red dot! Don't forget the dark-red double-quotes! FILE: jquery03.html 28
27 Getting Started with jquery: selecting an element <script> $(document).ready(function() { // Since this page loads so fast // you probably won't see the original text $("#paratochange").html("this is the <b>new</b> paragraph"); }); </script> </head> <body> <h2>jquery 03 Example File</h2> <p id="paratochange">some Fascinating Text!</p> </body> </html> Because we're using the.html method we can use HTML inside the string. In this case everything outside the <b> element will be formatted 'normally' (This is the paragraph) Everything inside the <b> element will be bold ( <b>new</b> ) FILE: jquery03.html 29
28 Getting Started with jquery: Selectors One of the strengths of the jquery library is that it gives you the ability to easily select and interact with Document Object Model (DOM) elements in your web pages. The selectors will be familiar to you if you ve done any web development with CSS, because jquery s selector syntax is nearly a duplicate of the selectors you d use when preparing style properties for your websites. jquery makes use of the Sizzle JavaScript CSS Selector Engine, which was developed by John Resig, the creator of jquery. The jquery library also adds several specific selector extensions to enhance the library s syntax and make the library easier to use. In this section, we ll learn how to choose and use jquery s selectors to gain control over DOM elements as well as groups of elements in your web pages. You ll also learn how to combine selectors and then apply filters to your selectors for greater flexibility and control. 30
29 Getting Started with jquery: Selectors CONTINUED Using Basic Selectors Although jquery provides a host of selector options, you ll find yourself using one of the basic selectors (element, id, or class) most of the time. Listed below are the basic selectors and what they do: 31
30 Getting Started with jquery: Selectors CONTINUED As you re creating the HTML markup for your web pages, you should plan classes and IDs carefully. Good planning will make your life much easier when you get ready to apply jquery to your website. It s easy to get tripped up and wonder why your jquery code isn t working when you don t keep your ids unique or you fail to define them properly. In HTML5, most of the restrictions on IDs have been relaxed. You can use any character in an ID and it must contain at least one character, but each ID within a web page must be unique. If you mistakenly have two elements with the same ID, you may get odd results when applying jquery code to those elements and the results may differ from browser to browser. When you wish to add jquery code designed to have an effect on several or a group of elements, I recommend you use classes for those elements. First of all, it s usually easier to remember named groups, and second, you can apply jquery methods to all sorts of elements that have the same class. 32
31 Do exercise #2 33
32 jquery: Adding a Button 34
33 Getting Started with jquery: Adding a button <script> $(document).ready(function() { $("#thebutton").click( function() { alert("button clicked!"); }); }); </script> </head> <body> <h2>jquery 03 Example File</h2> <form> <input type="button" value="click here" id="thebutton"> </form> </body> FILE: jquery04.html 35
34 Getting Started with jquery: Adding A Button first, the HTML </script> </head> <body> <h2>jquery 03 Example File</h2> <form> <input type="button" value="click here" id="thebutton"> </form> </body> We should put the button inside a form This is the <form> </form> stuff Note that the <input element does NOT need a closing tag type="button" tells the browser to make it a button value="click here" tells the browser what to show on the button id="thebutton" tells the browser what id to give the button. DON'T FORGET THIS!!! FILE: jquery04.html 36
35 Getting Started with jquery: Adding A Button first, the HTML <script> $(document).ready(function() { $("#thebutton").click( function() { alert("button clicked!"); }); }); </script> </head> <body> <h2>jquery 03 Example File</h2> <form> <input type="button" value="click here" id="thebutton"> </form> </body> When the document is ready we tell jquery to find the button (using it's ID) $("#thebutton") When then tell jquery to attach an event handler so respond to the button being clicked.click( ); When the button is clicked, run the function that we define here: function() { } FILE: jquery04.html 37
36 Getting Started with jquery: Adding A Button first, the HTML <script> $(document).ready(function() { $("#thebutton").click( function() { alert("button clicked!"); }); }); </script> </head> <body> <h2>jquery 03 Example File</h2> <form> <input type="button" value="click here" id="thebutton"> </form> </body> When the button is finally clicked (and the anonymous function is run) pop up an alert box alert("button clicked!"); FILE: jquery04.html 38
37 Do exercise #3 39
38 jquery: Getting User Input From A Textbox 40
39 Getting Started with jquery: Getting User Input From A Textbox <script> $(document).ready(function() { $("#thebutton").click( function() { var input = $("#input").val(); alert( "You typed: " + input ); }); }); </script> </head> <body> <h2>jquery 03 Example File</h2> <form> <p>please type your name here: <input type="text" id="input"></p> <input type="button" value="click here" id="thebutton"> </form> </body> </html> FILE: jquery05.html 41
40 Getting Started with jquery: Getting User Input From A Textbox - HTML <body> <h2>jquery 03 Example File</h2> <form> <p>please type your name here: <input type="text" id="input"></p> <input type="button" value="click here" id="thebutton"> </form> </body> </html> We should put the textbox inside a form This is the <form> </form> stuff Start by telling the user what to type <p>please type your name here: </p> Note that the <input element does NOT need a closing tag type="text" tells the browser to make it a button id="input" tells the browser what id to give the button. DON'T FORGET THIS!!! You can pre-load the text box with text, if you want, using the value= attribute Ex:value="Type here" FILE: jquery05.html 42
41 Getting Started with jquery: Getting User Input From A Textbox <script> $(document).ready(function() { $("#thebutton").click( function() { }); }); </script> </head> var input = $("#input").val(); alert( "You typed: " + input ); When the button is finally clicked (and the anonymous function is run) we'll first get the value of the text box. First we'll create a new variable var input Then we'll get the current value in the text box: $("#input").val(); Specifically, the.val() part will retrieve the current value Lastly we'll assign the value to the variable: var input = $("#input").val(); FILE: jquery05.html 43
42 Getting Started with jquery: Getting User Input From A Textbox <script> $(document).ready(function() { $("#thebutton").click( function() { }); }); </script> </head> var input = $("#input").val(); alert( "You typed: " + input ); Finally, we'll pop up an alert containing whatever was in the text box alert( "You typed: " + input ); FILE: jquery05.html 44
43 Do exercise #4 45
44 Putting it all together 46
45 jquery_complete_2.html, on the course home page Note that you should memorize this pattern: 1. Loading jquery 2. Adding a button, and a paragraph for 'output' 3. Setting up document.ready 4. Setting up the click event handler 47
46 jquery Library and Assorted Links jquery Library Google jquery CDN (Content Delivery Network) jquery Links/Tutorials How jquery Works jquery Learning Center jquery Tutorials (W3Schools) jquery Examples (W3Schools) jquery for Beginners (Impressive Webs) jquery (Tutorials Point) jquery (Code Academy) jquery (jquery-tutorial.net) jquery (MP3, Polymorphic Podcast) jquery Fundamentals (jqfundamentals) jquery for Absolute Beginners Video Tutorials (Lost in the Woods) LearningJQuery.com jquerify (Bookmarklet) SelectorGadget (CSS jquery) Firebug and jquery (Video Screencast) 48
CS7026. Introduction to jquery
CS7026 Introduction to jquery What is jquery? jquery is a cross-browser JavaScript Library. A JavaScript library is a library of pre-written JavaScript which allows for easier development of JavaScript-based
Getting started with jquery MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University
Getting started with jquery MIS 2402 Konstantin Bauman Department of MIS Fox School of Business Temple University Exam 2 Date: 11/06/18 four weeks from now! JavaScript, jquery 1 hour 20 minutes Use class
Website Development Lecture 18: Working with JQuery ================================================================================== JQuery
JQuery What You Will Learn in This Lecture: What jquery is? How to use jquery to enhance your pages, including adding rich? Visual effects and animations. JavaScript is the de facto language for client-side
Client Side JavaScript and AJAX
Client Side JavaScript and AJAX Client side javascript is JavaScript that runs in the browsers of people using your site. So far all the JavaScript code we've written runs on our node.js server. This is
JQuery and Javascript
JQuery and Javascript Javascript - a programming language to perform calculations/ manipulate HTML and CSS/ make a web page interactive JQuery - a javascript framework to help manipulate HTML and CSS JQuery
jquery Tutorial for Beginners: Nothing But the Goods
jquery Tutorial for Beginners: Nothing But the Goods Not too long ago I wrote an article for Six Revisions called Getting Started with jquery that covered some important things (concept-wise) that beginning
CGS 3066: Spring 2015 JavaScript Reference
CGS 3066: Spring 2015 JavaScript Reference Can also be used as a study guide. Only covers topics discussed in class. 1 Introduction JavaScript is a scripting language produced by Netscape for use within
BEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from
BEFORE CLASS If you haven t already installed the Firebug extension for Firefox, download it now from http://getfirebug.com. If you don t already have the Firebug extension for Firefox, Safari, or Google
HTML/CSS Lesson Plans
HTML/CSS Lesson Plans Course Outline 8 lessons x 1 hour Class size: 15-25 students Age: 10-12 years Requirements Computer for each student (or pair) and a classroom projector Pencil and paper Internet
Basic Uses of JavaScript: Modifying Existing Scripts
Overview: Basic Uses of JavaScript: Modifying Existing Scripts A popular high-level programming languages used for making Web pages interactive is JavaScript. Before we learn to program with JavaScript
WELCOME TO JQUERY PROGRAMMING LANGUAGE ONLINE TUTORIAL
WELCOME TO JQUERY PROGRAMMING LANGUAGE ONLINE TUTORIAL 1 The above website template represents the HTML/CSS previous studio project we have been working on. Today s lesson will focus on JQUERY programming
RAGE WebDesign Quick Start 1 of 18. Welcome To RAGE WebDesign
RAGE WebDesign Quick Start 1 of 18 Welcome To RAGE WebDesign RAGE WebDesign Quick Start 2 of 18 About This Quick Start Guide 3 An Introduction To Html 3 Helpful Tips For Working With Rage Webdesign 7 See
CS1046 Lab 4. Timing: This lab should take you 85 to 130 minutes. Objectives: By the end of this lab you should be able to:
CS1046 Lab 4 Timing: This lab should take you 85 to 130 minutes. Objectives: By the end of this lab you should be able to: Define the terms: function, calling and user-defined function and predefined function
CSCU9B2 Practical 1: Introduction to HTML 5
CSCU9B2 Practical 1: Introduction to HTML 5 Aim: To learn the basics of creating web pages with HTML5. Please register your practical attendance: Go to the GROUPS\CSCU9B2 folder in your Computer folder
Student, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6
Student, Perfect Final Exam May 25, 2006 ID: 9999. Exam No. 3193 CS-081/Vickery Page 1 of 6 NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives aid on
Siteforce Pilot: Best Practices
Siteforce Pilot: Best Practices Getting Started with Siteforce Setup your users as Publishers and Contributors. Siteforce has two distinct types of users First, is your Web Publishers. These are the front
NOTE: There are an awful lot of synonyms for "function" "routine, map [ ], procedure, [ ], subroutine, [ ], subprogram, [ ], function"
Functions Basic Functions NOTE: There are an awful lot of synonyms for "function" "routine, map [ ], procedure, [ ], subroutine, [ ], subprogram, [ ], function" From http://www.synonyms.net/synonym/function:
The purpose of this tutorial is to introduce you to the Construct 2 program. First, you will be told where the software is located on the computer
Learning Targets: Students will be introduced to industry recognized game development software Students will learn how to navigate within the software Students will learn the basics on how to use Construct
Executive Summary. Performance Report for: The web should be fast. Top 4 Priority Issues
The web should be fast. Executive Summary Performance Report for: https://www.wpspeedupoptimisation.com/ Report generated: Test Server Region: Using: Tue,, 2018, 12:04 PM -0800 London, UK Chrome (Desktop)
Week 8 Google Maps. This week you ll learn how to embed a Google Map into a web page and add custom markers with custom labels.
Introduction Hopefully by now you ll have seen the possibilities that jquery provides for rich content on web sites in the form of interaction and media playback. This week we ll be extending this into
Outline. Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages
JavaScript CMPT 281 Outline Introduction to JavaScript Resources What is JavaScript? JavaScript in web pages Announcements Layout with tables Assignment 3 JavaScript Resources Resources Why JavaScript?
Enhancing Web Pages with JavaScript
Enhancing Web Pages with JavaScript Introduction In this Tour we will cover: o The basic concepts of programming o How those concepts are translated into JavaScript o How JavaScript can be used to enhance
Lesson 1: Writing Your First JavaScript
JavaScript 101 1-1 Lesson 1: Writing Your First JavaScript OBJECTIVES: In this lesson you will be taught how to Use the tag Insert JavaScript code in a Web page Hide your JavaScript
CSC 337. jquery Rick Mercer
CSC 337 jquery Rick Mercer What is jquery? jquery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.
Introduction to WEB PROGRAMMING
Introduction to WEB PROGRAMMING Web Languages: Overview HTML CSS JavaScript content structure look & feel transitions/animation s (CSS3) interaction animation server communication Full-Stack Web Frameworks
HTML CSS JAVASCRIPT WEB PUBLISHING IN ONE HOUR A DAY SAMS TEACH YOURSELF COVERING HTML5 CSS3 AND JQUERY 7TH EDITION
HTML CSS JAVASCRIPT WEB PUBLISHING IN ONE HOUR A DAY SAMS TEACH YOURSELF COVERING HTML5 CSS3 AND JQUERY 7TH EDITION page 1 / 5 page 2 / 5 html css javascript web pdf We have curated a list of free development
At the Forge Dojo Events and Ajax Reuven M. Lerner Abstract The quality of your Dojo depends upon your connections. Last month, we began looking at Dojo, one of the most popular open-source JavaScript
Dreamweaver CS6. Level 1. Topics Workspaces Basic HTML Basic CSS
Level 1 Topics Workspaces Basic HTML Basic CSS Tour the Workspace The arrangement of panels and menus you use to interact with a document is called the workspace. Much of Illustrator is customizable: you
<form>. input elements. </form>
CS 183 4/8/2010 A form is an area that can contain form elements. Form elements are elements that allow the user to enter information (like text fields, text area fields, drop-down menus, radio buttons,
Section 1. How to use Brackets to develop JavaScript applications
Section 1 How to use Brackets to develop JavaScript applications This document is a free download from Murach books. It is especially designed for people who are using Murach s JavaScript and jquery, because
"a computer programming language commonly used to create interactive effects within web browsers." If actors and lines are the content/html......
JAVASCRIPT. #5 5.1 Intro 3 "a computer programming language commonly used to create interactive effects within web browsers." If actors and lines are the content/html...... and the director and set are
Part 1: jquery & History of DOM Scripting
Karl Swedberg: Intro to JavaScript & jquery 0:00:00 0:05:00 0:05:01 0:10:15 0:10:16 0:12:36 0:12:37 0:13:32 0:13:32 0:14:16 0:14:17 0:15:42 0:15:43 0:16:59 0:17:00 0:17:58 Part 1: jquery & History of DOM
Hypertext Markup Language, or HTML, is a markup
Introduction to HTML Hypertext Markup Language, or HTML, is a markup language that enables you to structure and display content such as text, images, and links in Web pages. HTML is a very fast and efficient
JavaScript Lecture 3c (jquery)
JavaScript Lecture 3c (jquery) Waterford Institute of Technology June 18, 2016 John Fitzgerald Waterford Institute of Technology, JavaScriptLecture 3c (jquery) 1/28 JavaScript Introduction Topic discussed
UNIT -II. Language-History and Versions Introduction JavaScript in Perspective-
UNIT -II Style Sheets: CSS-Introduction to Cascading Style Sheets-Features- Core Syntax-Style Sheets and HTML Style Rle Cascading and Inheritance-Text Properties-Box Model Normal Flow Box Layout- Beyond
AR0051 JQuery. Michelle Bettman Henry Kiksen. Challenge the future
AR0051 JQuery Michelle Bettman Henry Kiksen 1 Topics When to use javascript/jquery Why JQuery Loading JQuery One JQuery program explained Effects/Events Selector Demos 2 When to use Javascript/Jquery Do
LAST WEEK ON IO LAB. Install Firebug and Greasemonkey. Complete the online skills assessment. Join the mailing list.
LAST WEEK ON IO LAB If you haven t done these things already, please do them before we begin today s lecture Install Firebug and Greasemonkey. Complete the online skills assessment. Join the iolab@ischool
HTML 5 and CSS 3, Illustrated Complete. Unit L: Programming Web Pages with JavaScript
HTML 5 and CSS 3, Illustrated Complete Unit L: Programming Web Pages with JavaScript Objectives Explore the Document Object Model Add content using a script Trigger a script using an event handler Create
Executive Summary. Performance Report for: https://edwardtbabinski.us/blogger/social/index. The web should be fast. How does this affect me?
The web should be fast. Executive Summary Performance Report for: https://edwardtbabinski.us/blogger/social/index Report generated: Test Server Region: Using: Analysis options: Tue,, 2017, 4:21 AM -0400
Quick.JS Documentation
Quick.JS Documentation Release v0.6.1-beta Michael Krause Jul 22, 2017 Contents 1 Installing and Setting Up 1 1.1 Installation................................................ 1 1.2 Setup...................................................
BEGINNER PHP Table of Contents
Table of Contents 4 5 6 7 8 9 0 Introduction Getting Setup Your first PHP webpage Working with text Talking to the user Comparison & If statements If & Else Cleaning up the game Remembering values Finishing
Session 16. JavaScript Part 1. Reading
Session 16 JavaScript Part 1 1 Reading Reading Wikipedia en.wikipedia.org/wiki/javascript / p W3C www.w3.org/tr/rec-html40/interact/scripts.html Web Developers Notes www.webdevelopersnotes.com/tutorials/javascript/
Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh
Web Programming and Design MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh Plan for the next 5 weeks: Introduction to HTML tags, creating our template file Introduction to CSS and style
Introduction to HTML & CSS. Instructor: Beck Johnson Week 2
Introduction to HTML & CSS Instructor: Beck Johnson Week 2 today Week One review and questions File organization CSS Box Model: margin and padding Background images and gradients with CSS Make a hero banner!
The DOM and jquery functions and selectors. Lesson 3
The DOM and jquery functions and selectors Lesson 3 Plan for this lesson Introduction to the DOM Code along More about manipulating the DOM JavaScript Frameworks Angular Backbone.js jquery Node.js jquery
Course Syllabus. Course Title. Who should attend? Course Description. Adobe Dreamweaver CC 2014
Course Title Adobe Dreamweaver CC 2014 Course Description Adobe Dreamweaver CC (Creative Clouds) is the world's most powerful web design program. Our Dreamweaver course ''certified by Adobe ''includes
ORB Education Quality Teaching Resources
JavaScript is one of the programming languages that make things happen in a web page. It is a fantastic way for students to get to grips with some of the basics of programming, whilst opening the door
How to get a perfect 100 in Google PageSpeed Insights
How to get a perfect 100 in Google PageSpeed Insights And what might happen if you don't Follow Along http://goo.gl/fqfwyj @mcarper @NickWilde1990 Your site just went live after being under construction
ITS331 Information Technology I Laboratory
ITS331 Information Technology I Laboratory Laboratory #11 Javascript and JQuery Javascript Javascript is a scripting language implemented as a part of most major web browsers. It directly runs on the client's
Interactive Tourist Map
Adobe Edge Animate Tutorial Mouse Events Interactive Tourist Map Lesson 2 Make click events In the last lesson you learned how to set up you stage and get your project ready for some interactivity. You
JAVASCRIPT - CREATING A TOC
JAVASCRIPT - CREATING A TOC Problem specification - Adding a Table of Contents. The aim is to be able to show a complete novice to HTML, how to add a Table of Contents (TOC) to a page inside a pair of
Our Hall of Fame or Shame candidate for today is the command ribbon, which was introduced in Microsoft Office The ribbon is a radically
1 Our Hall of Fame or Shame candidate for today is the command ribbon, which was introduced in Microsoft Office 2007. The ribbon is a radically different user interface for Office, merging the menubar
jquery: JavaScript, Made Easy
jquery: JavaScript, Made Easy 1 What is jquery? jquery is JavaScript. jquery is a Framework, a collec:on of shortcuts jquery is a pla@orm for moderniza:on. jquery is open- source - hdps://github.com/jquery/jquery
CNIT 129S: Securing Web Applications. Ch 12: Attacking Users: Cross-Site Scripting (XSS) Part 2
CNIT 129S: Securing Web Applications Ch 12: Attacking Users: Cross-Site Scripting (XSS) Part 2 Finding and Exploiting XSS Vunerabilities Basic Approach Inject this string into every parameter on every
SEEM4570 System Design and Implementation. Lecture 3 Events
SEEM4570 System Design and Implementation Lecture 3 Events Preparation Install all necessary software and packages. Follow Tutorial Note 2. Initialize a new project. Follow Lecture Note 2 Page 2. Reset
Frontend guide. Everything you need to know about HTML, CSS, JavaScript and DOM. Dejan V Čančarević
Frontend guide Everything you need to know about HTML, CSS, JavaScript and DOM Dejan V Čančarević Today frontend is treated as a separate part of Web development and therefore frontend developer jobs are
welcome to BOILERCAMP HOW TO WEB DEV
welcome to BOILERCAMP HOW TO WEB DEV Introduction / Project Overview The Plan Personal Website/Blog Schedule Introduction / Project Overview HTML / CSS Client-side JavaScript Lunch Node.js / Express.js
HTML Advanced Portlets. Your Guides: Ben Rimmasch, Rahul Agrawal
HTML Advanced Portlets Your Guides: Ben Rimmasch, Rahul Agrawal Introductions 2 Take 5 Minutes Turn to a Person Near You Introduce Yourself Agenda 3 HTML Portlets Overview HTML Portlet Use Cases Development
Moving from FrameMaker to Blaze: Best Practices
Moving from Adobe FrameMaker to MadCap Blaze is easy, although to get the best results you need to do some planning before you start. This document discusses suggestions and issues to make the import result
1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.
1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document. 2. W3Schools has a lovely html tutorial here (it s worth the time): http://www.w3schools.com/html/default.asp
CISC 1600 Lecture 2.4 Introduction to JavaScript
CISC 1600 Lecture 2.4 Introduction to JavaScript Topics: Javascript overview The DOM Variables and objects Selection and Repetition Functions A simple animation What is JavaScript? JavaScript is not Java
Dynamism and Detection
1 Dynamism and Detection c h a p t e r ch01 Page 1 Wednesday, June 23, 1999 2:52 PM IN THIS CHAPTER Project I: Generating Platform-Specific Content Project II: Printing Copyright Information and Last-Modified
JQuery WHY DIDN T WE LEARN THIS EARLIER??!
JQuery WHY DIDN T WE LEARN THIS EARLIER??! Next couple of weeks This week: Lecture: Security, jquery, Ajax Next Week: No lab (Easter) I may post a bonus (jquery) lab No quiz (yay!) Maybe a bonus one? Snuneymuxw
Using Development Tools to Examine Webpages
Chapter 9 Using Development Tools to Examine Webpages Skills you will learn: For this tutorial, we will use the developer tools in Firefox. However, these are quite similar to the developer tools found
FrontPage Help Center. Topic: FrontPage Basics
FrontPage Help Center Topic: FrontPage Basics by Karey Cummins http://www.rtbwizards.com http://www.myartsdesire.com 2004 Getting Started... FrontPage is a "What You See Is What You Get" editor or WYSIWYG
Reading How the Web Works
Reading 1.3 - How the Web Works By Jonathan Lane Introduction Every so often, you get offered a behind-the-scenes look at the cogs and fan belts behind the action. Today is your lucky day. In this article
Figure 1 Properties panel, HTML mode
How to add text Adding text to a document To add text to a Dreamweaver document, you can type text directly in the Document window, or you can cut and paste text. You modify text by using the Properties
AJAX Programming Overview. Introduction. Overview
AJAX Programming Overview Introduction Overview In the world of Web programming, AJAX stands for Asynchronous JavaScript and XML, which is a technique for developing more efficient interactive Web applications.
A Balanced Introduction to Computer Science, 3/E
A Balanced Introduction to Computer Science, 3/E David Reed, Creighton University 2011 Pearson Prentice Hall ISBN 978-0-13-216675-1 Chapter 4 JavaScript and Dynamic Web Pages 1 Static vs. Dynamic Pages
JavaScript is described in detail in many books on the subject, and there is excellent tutorial material at
JavaScript (last updated April 15, 2013: LSS) JavaScript is a scripting language, specifically for use on web pages. It runs within the browser (that is to say, it is a client- side scripting language),
Wakanda Architecture. Wakanda is made up of three main components: Wakanda Server Wakanda Studio Wakanda Client Framework
Wakanda Architecture Wakanda is made up of three main components: Wakanda Server Wakanda Studio Wakanda Client Framework Note: For a more general overview of Wakanda, please see What is Wakanda?) Wakanda
jquery Element & Attribute Selectors, Events, HTML Manipulation, & CSS Manipulation
jquery Element & Attribute Selectors, Events, HTML Manipulation, & CSS Manipulation Element Selectors Use CSS selectors to select HTML elements Identify them just as you would in style sheet Examples:
Assignment: Seminole Movie Connection
Assignment: Seminole Movie Connection Assignment Objectives: Building an application using an Application Programming Interface (API) Parse JSON data from an HTTP response message Use Ajax methods and
Session 17. jquery. jquery Reading & References
Session 17 jquery 1 Tutorials jquery Reading & References http://learn.jquery.com/about-jquery/how-jquery-works/ http://www.tutorialspoint.com/jquery/ http://www.referencedesigner.com/tutorials/jquery/jq_1.php
THE PRAGMATIC INTRO TO REACT. Clayton Anderson thebhwgroup.com WEB AND MOBILE APP DEVELOPMENT AUSTIN, TX
THE PRAGMATIC INTRO TO REACT Clayton Anderson thebhwgroup.com WEB AND MOBILE APP DEVELOPMENT AUSTIN, TX REACT "A JavaScript library for building user interfaces" But first... HOW WE GOT HERE OR: A BRIEF
jquery Lecture 34 Robb T. Koether Wed, Apr 10, 2013 Hampden-Sydney College Robb T. Koether (Hampden-Sydney College) jquery Wed, Apr 10, / 29
jquery Lecture 34 Robb T. Koether Hampden-Sydney College Wed, Apr 10, 2013 Robb T. Koether (Hampden-Sydney College) jquery Wed, Apr 10, 2013 1 / 29 1 jquery 2 jquery Selectors 3 jquery Effects 4 jquery
Module 5 JavaScript, AJAX, and jquery. Module 5. Module 5 Contains 2 components
Module 5 JavaScript, AJAX, and jquery Module 5 Contains 2 components Both the Individual and Group portion are due on Monday October 30 th Start early on this module One of the most time consuming modules
Web Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh
Web Programming and Design MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh Plan for the next 5 weeks: Introduction to HTML tags Recap on HTML and creating our template file Introduction
Developing Apps for the BlackBerry PlayBook
Developing Apps for the BlackBerry PlayBook Lab # 4: Getting Started with Ajax and jquery Part 2 The objective of this lab is to continue reviewing some of the concepts in communication with external data
Bonus Lesson: Working with Code
15 Bonus Lesson: Working with Code In this lesson, you ll learn how to work with code and do the following: Select code elements in new ways Collapse and expand code entries Write code using code hinting
Ruby on Rails Welcome. Using the exercise files
Ruby on Rails Welcome Welcome to Ruby on Rails Essential Training. In this course, we're going to learn the popular open source web development framework. We will walk through each part of the framework,
UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML
UI Course (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) HTML: Introduction The World Wide Web (WWW) and history of HTML Hypertext and Hypertext Markup Language Why HTML Prerequisites Objective
Participation Status Report STUDIO ELEMENTS I KATE SOHNG
2015 Participation Status Report STUDIO ELEMENTS I KATE SOHNG Table of Contents I. Wataru... 1 A. JQuery discussion... 1 B. Other JavaScript libraries... 1 C. CakePHP framework... 2 D. Webpage feedback...
How to lay out a web page with CSS
Activity 2.6 guide How to lay out a web page with CSS You can use table design features in Adobe Dreamweaver CS4 to create a simple page layout. However, a more powerful technique is to use Cascading Style
2. Write style rules for how you d like certain elements to look.
CSS for presentation Cascading Style Sheet Orientation CSS Cascading Style Sheet is a language that allows the user to change the appearance or presentation of elements on the page: the size, style, and
JQuery. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010
Lecture 23 JQuery Announcements HW#8 posted, due 12/3 HW#9 posted, due 12/10 HW#10 will be a survey due 12/14 Yariv will give Thursday lecture on privacy, security Yes, it will be on the exam! 1 Project
Lesson 1 HTML Basics. The Creative Computer Lab. creativecomputerlab.com
Lesson 1 HTML Basics The Creative Computer Lab creativecomputerlab.com What we are going to do today Become familiar with web development tools Build our own web page from scratch! Learn where to find
Full file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS
New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13 HTML and CSS Tutorial One: Getting Started with HTML 5 A Guide to this Instructor s Manual: We have designed this Instructor s
Creating Your Web Site
Creating Your Web Site Students who are serious about wanting to be writers must create their own web sites to display their work. This is what professionals want to see an easy place to access your work
Exercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object
CS1046 Lab 5 Timing: This lab should take you approximately 2 hours. Objectives: By the end of this lab you should be able to: Recognize a Boolean variable and identify the two values it can take Calculate
The Domino Designer QuickStart Tutorial
The Domino Designer QuickStart Tutorial 1. Welcome The Domino Designer QuickStart Tutorial You've installed Domino Designer, you've taken the Designer Guided Tour, and maybe you've even read some of the
Google Earth: Significant Places in Your Life Got Maps? Workshop June 17, 2013
Google Earth: Significant Places in Your Life Got Maps? Workshop June 17, 2013 1. Open Google Earth. 2. Familiarize yourself with Google Earth s navigational features by zooming into Furman s campus, your
Customizing DAZ Studio
Customizing DAZ Studio This tutorial covers from the beginning customization options such as setting tabs to the more advanced options such as setting hot keys and altering the menu layout. Introduction:
ADVANCED JAVASCRIPT. #7
ADVANCED JAVASCRIPT. #7 7.1 Review JS 3 A simple javascript functions is alert(). It's a good way to test a script is working. It brings up a browser default popup alert window. alert(5); 4 There are 2
Interactive Web Application
Interactive Web Application This lesson builds on previous lessons With this lesson we will be picking up right where we left off from our Node.js Hosting lesson. The presentation can be found at http://rockymountaincoding.org.
The Structure of the Web. Jim and Matthew
The Structure of the Web Jim and Matthew Workshop Structure 1. 2. 3. 4. 5. 6. 7. What is a browser? HTML CSS Javascript LUNCH Clients and Servers (creating a live website) Build your Own Website Workshop
Lesson 5: Introduction to Events
JavaScript 101 5-1 Lesson 5: Introduction to Events OBJECTIVES: In this lesson you will learn about Event driven programming Events and event handlers The onclick event handler for hyperlinks The onclick
JavaScript Fundamentals_
JavaScript Fundamentals_ HackerYou Course Syllabus CLASS 1 Intro to JavaScript Welcome to JavaScript Fundamentals! Today we ll go over what programming languages are, JavaScript syntax, variables, and
CodeValue. C ollege. Prerequisites: Basic knowledge of web development and especially JavaScript.
Course Syllabuses Introduction to AngularJS Length: 3 days Prerequisites: Basic knowledge of web development and especially JavaScript. Objectives: Students will learn to take advantage of AngularJS and
Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1
Web Programming and Design MPT Senior Cycle Tutor: Tamara Week 1 What will we cover? HTML - Website Structure and Layout CSS - Website Style JavaScript - Makes our Website Dynamic and Interactive Plan