JavaScript – Quiz #8 Lecture Code: 836099

Slides:



Advertisements
Similar presentations
Getting Started with jQuery. 1. Introduction to jQuery 2. Selection and DOM manipulation Contents 2.
Advertisements

JavaScript and AJAX Jonathan Foss University of Warwick
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.
CT-376 jQuery Most popular javascript library today Latest version:
JavaScript and the DOM Les Carr COMP3001 Les Carr COMP3001.
Today CSS HTML A project.
JQuery A Javascript Library Hard things made eas(ier) Norman White.
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.
Building a Rich Internet Application with jQuery Ben Dewey twentysix New York Fill this space.
Introduction to JavaScript Module 1 Client Side JS Programming M-GO Sponsored By
CS3L: Introduction to Symbolic Programming Summer 2008 Gilbert Chou Bonus Lecture: Web Programming.
AJAX (Asynchronous JavaScript and XML) Amit Jain CS 590 – Winter 2008.
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)
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.
JQuery 10/21. Today jQuery Some cool tools around the web JavaScript Libraries Drawing libraries HTML Frameworks Conventions.
A really fairly simple guide to: mobile browser-based application development (part 4, JQuery & DOM) Chris Greenhalgh G54UBI / Chris Greenhalgh.
Event Handlers CS101 Introduction to Computing. Learning Goals Learn about event handlers Determine how events are useful in JavaScript Discover where.
DOM and JavaScript Aryo Pinandito.
Lecture 11 – DOM Scripting SFDV3011 – Advanced Web Development Reference: 1.
CSS/Photoshop Layouts – Quiz #7 Lecture Code:
CSS Class 7 Add JavaScript to your page Add event handlers Validate a form Open a new window Hide and show elements Swap images Debug JavaScript.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
JavaScript – Quiz #9 Lecture Code:
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.
ALBERT WAVERING BOBBY SENG. Week 5: More JavaScript  Quiz  Announcements/questions.
Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Introduction to PHP.
Event JavaScript's interaction with HTML is handled through events that occur when the user or browser manipulates a page. When the page loads, that is.
JQuery Introduction © Copyright 2014, Fred McClurg All Rights Reserved.
LOGO sparcs.org 1 jQuery Tutorial Presenter ㅎㅇㅎㅇ.
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.
CS50 Week 9 Sam Green ’
Thursday, August 6 th, 2015 Instructor: Craig Duckett Event Handling.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
WDMD 170 – UW Stevens Point 1 WDMD 170 Internet Languages eLesson: Variables, Functions and Events (NON-Audio version) © Dr. David C. Gibbs WDMD.
COS 125 DAY 20. Agenda Assignment 8 not corrected yet Assignment 9 posted  Due April 16 New course time line Discussion on Scripts 
IS2802 Introduction to Multimedia Applications for Business Lecture 07: Introduction to jQuery Rob Gleasure
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.
Web Programming Overview. Introduction HTML is limited - it cannot manipulate data How Web pages are extended (include): –Java: an object-oriented programming.
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
LESSON : EVENTS AND FORM VALIDATION -JAVASCRIPT. EVENTS CLICK.
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.
CHAPTER 7 JQUERY WHAT IS JQUERY? jQuery is a script. It is written in JavaScript.
Introduction to JavaScript Events Instructor: Sergey Goldman 1.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
SE-2840 Dr. Mark L. Hornick 1 Dynamic HTML Handling events from DOM objects.
Tarik Booker CS 120 California State University, Los Angeles.
JQuery is a fast, small, and feature-rich javascript library. It makes things like HTML document traversal and manipulation, event handling, animation,
JQuery Element & Attribute Selectors, Events, HTML Manipulation, & CSS Manipulation.
Week 3: Introduction to Javascript
Week 4: Introduction to Javascript
Introduction to JavaScript Events
Introduction to Web programming
Web Development & Design Foundations with HTML5 7th Edition
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
An introduction to jQuery
E-commerce Applications Development
Web Programming and Design
Week 5: Recap and Portfolio Site
Web Programming and Design
Web Programming and Design
Introduction to Web programming
Presentation transcript:

JavaScript – Quiz #8 Lecture Code:

Todays Agenda Quiz & Attendance Announcements JavaScript Introduction – Part 2 Finish Quiz & Attendance Lab

Announcements Alex not here today Will be back next week Final Project Reminder Checkpoint due dates and final due date posted First checkpoint assignment posted with instructions Subsequent checkpoint details TBA soon… Formal Discussion section postponed till next week Jon is swamped this week as well, so the first day of discussion will start next week

Web Design: Basic to Advanced Techniques Spring 2010 Tuesdays 7-8pm 200 Sutardja-Dai Hall JavaScript Introduction – Part 2

jQuery Javascript framework Ready-made functions (Live examples!) Selecting Manipulation Cool, shiny effects AJAX

Writing Javascript! Inline Javascript // JS code here Include.js file Write both in

Writing Javascript! (contd) Make sure the DOM is loaded and ready to go $(document).ready(function() { // do stuff when DOM is ready }); Selectors $(blah) shorthand Ex. $(a), $(#div_id), $("#orderedlist > li")

HTML Attributes Get, set attributes $("em").attr("title"); $("em").attr("title, New Title); Get HTML, values, toggle classes,.. For more, check out the Jquery API:

CSS Properties Get, set properties $('div.left').css('float'); $(this).css("color","red"); Add/remove class $('p').addClass('myClass yourClass'); $('p').removeClass('myClass noClass') For more, check out the Jquery API:

Link States Label Events: hover, clicking, etc. Similar to :hover, :active tags in CSS onClick onMouseOver, onMouseOut onFocus, onBlur onKeyDown, onKeyUp

Event handling Mouse click $(#blah").click(function() { alert("Hello world!"); }); Hover $('#blah').mouseover(function() { alert(Hello world!); }); Keyup/down/press, onfocus/blur, etc. For more, check out the Jquery API:

JavaScript Functions Doesnt do anything until called Controlled execution Repetitive (code reusability) function doSomething(var1, var2, …){ //body }

JavaScript Functions (contd) Anonymous functions Assign it to a variable to call later var eatCakeAnon = function(){ alert("So delicious and moist"); }; eatCakeAnon(); Pass it directly as a function argument (callback) $('#target').click(function() { alert(Something happened!'); });

HTML Element Creation Creating new content $(' Test ').appendTo('.inner'); Tie in attribute and CSS setting, so $(div).css(position, absolute).appendTo($(body)) before appending Talk about being able to chain commands with.method1.method2… etc

Manipulation Creating/removing objects $(' Test ').appendTo('.inner'); $('h2').appendTo($('.container')); $('div').remove('.hello');.after() $('.inner').after(' Test ');.before() $('.inner').before(' Test ');

Manipulation (contd).append() $('.inner').append(' Test ');.appendTo() $(' Test ').appendTo('.inner'); Replacing, width/height of objects, getting position of scrollbars, cloning, … For more, check out the Jquery API

AJAX Asynchronous JavaScript And XML Getting data from server/updating page WITHOUT reloading! Ajax Example!

JavaScript – Quiz #8 Lecture Code: Lab…