JavaScript & jQuery JavaScript and jQuery introduction.

Slides:



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

Intro to JavaScript. JavaScript History Client (generally browser-side) language invented at Netscape under the name LiveScript around 1995 Netscape wanted.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
The DOM tree CS The DOM tree CS380 2 Types of DOM nodes  element nodes (HTML tag)  can have children and/or attributes  text nodes (text in.
Javascript Introduction Norman White Material is from w3schools.com Go there to run examples interactively.
JQuery CS 380: Web Programming. What is jQuery? jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling,
JQuery A Javascript Library Hard things made eas(ier) Norman White.
School of Computing and Information Systems CS 371 Web Application Programming jQuery.
 2008 Pearson Education, Inc. All rights reserved Document Object Model (DOM): Objects and Collections.
JAVASCRIPT Introduction Kenny Lam. What is Javascript?  Client-side scripting language that can manipulate elements in the DOM  Event-driven language.
JQuery. What is jQuery? jQuery is a fast, small, and feature-rich JavaScript library that simplifies HTML document traversing and manipulation event handling.
Intro to Web Programming using PHP, HTTP, CSS, and Javascript Layton Smith CSE 4000.
Learning & Development Telerik Software Academy.
A really fairly simple guide to: mobile browser-based application development (part 4, JQuery & DOM) Chris Greenhalgh G54UBI / Chris Greenhalgh.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Lecture 11 – DOM Scripting SFDV3011 – Advanced Web Development Reference: 1.
D2L Notes Be sure to submit your link in the dropbox provided on D2L You can just upload an empty text file if a file upload is required Do not use D2L.
JQUERY | INTRODUCTION. jQuery  Open source JavaScript library  Simplifies the interactions between  HTML document, or the Document Object Model (DOM),
Review IDIA 619 Spring 2013 Bridget M. Blodgett. HTML A basic HTML document looks like this: Sample page Sample page This is a simple sample. HTML user.
Lab 3: Language Structures User Interface Lab: GUI Lab Sep. 9 th, 2014.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Scripting with the DOM Ellen Pearlman Eileen Mullin Programming the Web.
Intro to JavaScript Scripting language –ECMAScript compliant –Client side vs. server side Syntactic rules –White space –Statement end: ; optional –Comments:
JavaScript Syntax and Semantics. Slide 2 Lecture Overview Core JavaScript Syntax (I will not review every nuance of the language)
. Taught by: Muhammad Ali Baloch midahot. WHAT IS JQUERY JQuery is a fast, small, and feature-rich JavaScript library. Simplifies the interaction between.
Lecture 9: AJAX, Javascript review..  AJAX  Synchronous vs. asynchronous browsing.  Refreshing only “part of a page” from a URL.  Frameworks: Prototype,
Dimiter Kunchev.  JavaScript library written by Sam Stephenson   Adds object oriented techniques  Provides.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
 2008 Pearson Education, Inc. All rights reserved Document Object Model (DOM): Objects and Collections.
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.
4. Javascript M. Udin Harun Al Rasyid, S.Kom, Ph.D Lab Jaringan Komputer (C-307) Desain.
Unit 13 –JQuery Basics Instructor: Brent Presley.
Rich Internet Applications 2. Core JavaScript. The importance of JavaScript Many choices open to the developer for server-side Can choose server technology.
Web Technologies Lecture 8 JQuery. “A fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax.
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.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
JavaScript and Ajax (JavaScript Environment) Week 6 Web site:
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
.. WHAT IS JQUERY JQuery is a fast, small, and feature-rich JavaScript library. Simplifies the interaction between HTML and JavaScript. The jQuery library.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
THE DOM.
JavaScript Basics Stephen Delaney
Programming Web Pages with JavaScript
Unit M Programming Web Pages with
Development of Internet Applications jQuery, TypeScript, LESS
CS5220 Advanced Topics in Web Programming JavaScript and jQuery
Unit M Programming Web Pages with
CGS 3066: Web Programming and Design Spring 2017
JQuery Basics 소속 / 작성자 이 문서는 나눔글꼴로 작성되었습니다. 설치하기.
JQUERY Online TRAINING AT GOLOGICA
JavaScript Syntax and Semantics
CS3220 Web and Internet Programming Client-Side JavaScript and jQuery
Introduction to JavaScript
JavaScript Introduction
Understanding JavaScript and Coding Essentials
A second look at JavaScript
jQuery The Easy JavaScript Nikolay Chochev Technical Trainer
JQuery with ASP.NET.
Introduction to Programming the WWW I
Web Programming Language
..
Web Programming Language
Introduction to JavaScript
JavaScript CS 4640 Programming Languages for Web Applications
Chengyu Sun California State University, Los Angeles
Web Client Side Technologies Raneem Qaddoura
ជំពូកទី៤ Jquery​ Traversing មេរៀនទី២៖ ​​ Sibling និង Filtering
JavaScript CS 4640 Programming Languages for Web Applications
Presentation transcript:

JavaScript & jQuery JavaScript and jQuery introduction

JS Introductory Notes I'm not a teacher, you know... JS usage  DOM manipulation  Default event handlers replacement and extension  Client-side operations instead of server side We will not learn what to do. We'll learn what not to do.

11 Mistakes Guide Can be found herehere Covers all for-beginner areas Is interesting to experienced staff Explains some internal features I will answer questions and make necessary explanations on go Wait for the last mistake

Mistake 10 (no typo) You’re Not Learning JavaScript I am not learning JavaScript too

Mistake 1 and Global Variables Variables in JS Scopes Variables without var keyword You’re Using Global Variables – mistake! Sample

Mistake 2 and Semicolons Like in all C-based languages, semicolons end the statement JS engine adds semicolon for you when needed You’re Not Using Semicolons – Mistake! `return` sample

Mistake 3 and Comparison Comparison operators == === You’re Using == – Mistake! Samples

Mistake 4 and Type Wrappers Types in JS ‒ Object ‒ Array ‒ Number ‒ String ‒ Boolean Wrappers vs. Unwrapped declarations You’re using Type Wrapper Objects – Mistake! Samples

Mistake 5 and Loops and Properties in JS Loops in JS: For – 2 variants While – 2 variants Constructor functions `prototype` property You’re not Property-Checking when Using For-In – Mistake! Filtering prototype properties Filtering functions

Mistake 6 and with and eval eval function with keyword You’re Using with or eval – Mistake! Samples

Mistake 7 and parsing strings parseFloat parseInt Date.parse You’re Not Using a Radix When Using parseInt – Mistake! Samples

Mistake 8 and Braces You’re Not Using Braces on if and while statements – Mistake! Samples

Mistake 9 and DOM manipulation DOM manipulation methods getElementById createElement createTextNode createDocumentFragment appendChild You’re Adding Elements to the DOM Individually – Mistake! Samples

Mistake 11: Be open-minded You’re Following all the Rules – Mistake! Go back and discuss when each rule can be broken (with samples)

jQuery jQuery is JS library for: Easy DOM manipulations Easy AJAX Easy standard utility operations, not supported by JS natively Easy extensibility => thousands of plugins (ibnlt UI), official and third party OOTB cross-browser support jQuery is NOT JS replacement

DOM manipulations. Selectors. Derived from CSS, but extended All: `*` Attributes: `[name value ]` Operators: |= (equals or starts + `-`), *= (contains), ~= (contains word), $= (ends), = (equals), != (not equals), ^= (starts) No operator and value – has attribute Class: `. ` Id: `# ` Element: ` `

DOM manipulations. Selectors. Filter: `: `. Filters: Basic: element properties Child: filtering children Content: filtering basing on content Form: form elements and states Hierarchy: ` `. Operators: ` > ` – immediate child ` ` – descendant ` + ` – immediate next siblings ` ~ ` – following siblings

DOM Manipulation. Traversing. Tree children and find next, nextAll and nextUntil closest, parent, parents, parentsUntil and offsetParent prev, prevAll and prevUntil siblings Filter filter, not and has eq, first, last and slice map and is Misc add, end, andSelf, contents