Introduction to jQuery

Slides:



Advertisements
Similar presentations
By ishaq shinwari.  jQuery is a lightweight, "write less, do more", JavaScript library.  The purpose of jQuery is to make it much easier to use JavaScript.
Advertisements

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,
Events Part III The event object. Learning Objectives By the end of this lecture, you should be able to: – Learn to use the hover() function – Work with.
CS7026 jQuery Events. What are Events?  jQuery is tailor-made to respond to events in an HTML page.  Events are actions that can be detected by your.
Event Handling. Overview How to listen (and not listen) for events Creating a utility library (and why you should) Typology of events Pairing event listeners.
20-Jun-15 JavaScript and HTML Simple Event Handling.
Ajax Dr Jim Briggs WEBP Ajax1. 2 Ajax Asynchronous JavaScript And XML Method of creating more interactive web applications Moves more of the application.
JavaScript Client Side scripting. Client-side Scripts Client-side scripts, which run on the user’s workstation can be used to: Validate user inputs entered.
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
Spring /6.831 User Interface Design and Implementation1 Lecture 26: Mobile User Interfaces.
Matthew Batchelder. Agenda  JavaScript: What it is and isn't  JavaScript: Uses  What is the DOM?  What is AJAX?  jQuery FTW! Manipulating page elements.
Chapter 6 JavaScript and AJAX. Objectives Explain the purpose and history of JavaScript Describe JavaScript features Explain the event-driven nature of.
JQuery March 09 th,2009 Create by
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 JavaScript and HTML Documents.
Lecture Set 13 Drawing Mouse and Keyboard Events Part B – Mouse and Keyboard Events.
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.
CO1552 Web Application Development HTML Forms, Events and an introduction to JavaScript.
INFORMATION ORGANIZATION LAB SEPTEMBER 14, 2010 Overview of HTML, CSS, JavaScript, and jQuery. Introduction to browser extensions. Details about Project.
DOM Events. JS Events Outline About Events – Introduction – Registering events – Getting information from events Event order/phases – Preventing default.
Lecture 10 JavaScript: DOM and Dynamic HTML Boriana Koleva Room: C54
Events DOM Event Model. HTML Events "on" + event name attribute value is javascript javascript runs 1st return false to STOP browser event (if any)
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.
LOGO sparcs.org 1 jQuery Tutorial Presenter ㅎㅇㅎㅇ.
DOM Events. JS Events Outline About Events – Introduction – Registering events – Getting information from events Event order/phases – Preventing default.
MIS333k(Poynor) Chapter 2. Intro to VBA Events Where to plug in your programs?
Dr. Ahmet Cengizhan Dirican BIL 374 Internet Technologies 5. JavaScript and HTML Documents.
Event Handling & AJAX IT210 Web Systems. Question How do we enable users to dynamically interact with a website? Answer: Use mouse and keyboard to trigger.
Host Objects: Browsers and the DOM
Events Event Handling in JavaScript SoftUni Team Technical Trainers Software University
Modern JavaScript Develop And Design Instructor’s Notes Chapter 8 – Event Handling Modern JavaScript Design And Develop Copyright © 2012 by Larry Ullman.
 objects in Client  What is Event?  Event Handlers  programming.
Jeremy Foster | Developer Evangelist Rachel Appel | Independent Consultant.
CHAPTER 7 JQUERY WHAT IS JQUERY? jQuery is a script. It is written in JavaScript.
Implement User Input Windows Development Fundamentals LESSON 2.4A.
Selectors & Events. What do Selectors do? What do Selectors do? Selectors allow you to manipulate DOM elements as a group or as a single node. This allows.
Chapter 6 Dynamic Documents with JavaScript. © 2006 Pearson Addison-Wesley. All rights reserved Introduction Def: A dynamic HTML document is.
Introduction to JavaScript Events Instructor: Sergey Goldman 1.
Internet & World Wide Web How to Program, 5/e.  JavaScript events  allow scripts to respond to user interactions and modify the page accordingly  Events.
JQuery Tutorial. What is jQuery jQuery is a JavaScript Library The purpose of jQuery is to make it much easier to use JavaScript on your website JavaScript.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 5 Host Objects: Browsers.
SE-2840 Dr. Mark L. Hornick 1 Dynamic HTML Handling events from DOM objects.
JQuery.
JavaScript and HTML Simple Event Handling 11-May-18.
Introduction to JavaScript Events
Introduction to Web programming
JavaScript and Events.
JavaScript and HTML Simple Event Handling 19-Sep-18.
Visual Basic Properties, Methods and Events
CSE 154 Lecture 11: More Events.
JavaScript and HTML Documents
Introduction to jQuery
Events.
Web Programming Language
Lecture 11: Keyboard Events
CSE 337 Lecture 10: Events.
E-commerce Applications Development
JavaScript and Events CS Programming Languages for Web Applications
CSE 337 Lecture 10: Events.
5.1 JavaScript Execution Environment
CS7026 jQuery Events.
Lecture 11: Keyboard Events
CHAPTER 6 EVENTS. CHAPTER 6 EVENTS WHAT IS AN EVENT?
SEEM4540 Tutorial 3 jQuery Wong Wai Chung.
6.1 Introduction 6.2 Positioning Elements
JavaScript and HTML Simple Event Handling 26-Aug-19.
JavaScript and Events CS Programming Languages for Web Applications
JavaScript and HTML Simple Event Handling 4-Oct-19.
Events Part I Mouse Events.
JQuery.
Events Part III The event object.
Presentation transcript:

Introduction to jQuery Jeremy Foster | Developer Evangelist Rachel Appel | Independent Consultant

Course Topics Introduction to jQuery 01 | jQuery 101 05 | Effects 02 | Selection 06 | Ajax and Async 03 | Manipulating the DOM 07 | Libraries 04 | Events

Jeremy Foster | @codefoster Rachel Appel | @RachelAppel 04 | Events Jeremy Foster | @codefoster Rachel Appel | @RachelAppel

Module Overview Attachment and the Event object Browser events Document loading events Form events Keyboard events Mouse events

Attachment and the Event Object

Attaching to Events .on() and .off() .bind() and .unbind() .delegate() and .undelegated() .one() .live() and .die() .trigger() and .triggerHandler()

codepen.io/codefoster/pen/jaIDb

The Event Object Holds all of the event properties Helpful properties include… .currentTarget .type .which .timestamp .target .data

codepen.io/codefoster/pen/uvonH

Browser Events

Browser Events .error() Called if an element is not loaded correctly .resize() When the size of the browser window changes .scroll() When the user scrolls to a different place in an element

codepen.io/codefoster/pen/gAEfy

Document Loading Events

Document Loading Events .load() When an element is being loaded .ready() When the DOM is loaded and ready (minus content like images) Use $(function) as a shortcut .unload() Opposite of load, when an element is being unloaded

codepen.io/codefoster/pen/aoweb

Form Events

Form Events .change() When an element’s value changes .select() When the user makes a text selection inside .focus() When an element receives focus .submit() When the user is attempting to submit a form .blur() When an element loses focus .focusin() When an element or any nested elements receives focus .focusout() When an element loses focus

Keyboard Events

Keyboard Events .keydown() When a key is pressed down .keypress() When the browser registers keyboard input (may vary by browser!) Not triggered by Shift, Esc, delete, etc. .keyup() When a key returns to the up position

Mouse Events

Mouse Events .click() .mouseover() .dblclick() .mouseup() .hover() .mousedown() .mouseenter() .mouseleave() .mousemove() .mouseout()

Summary Attachment and the Event object Browser events Document loading events Form events Keyboard events Mouse events