Web Systems Development (CSC-215)

Slides:



Advertisements
Similar presentations
Intro to Javascript CS Client Side Scripting CS380 2.
Advertisements

EIW: Javascript the Language1 The JavaScript Language.
Lecture 16. the xsl:variable element The format of the xsl:variable element is or or It tells the XSLT processor to –instantiate the variable with the.
1 HCI 201 JavaScript - Part 1. 2 Static web pages l Static pages: what we have worked with so far l HTML tags tell the browser what to do with the content.
Website Development & Management PHP Odds & Ends Instructor: John Seydel, Ph.D. CIT Fall
CST JavaScript Validating Form Data with JavaScript.
Using Arrays in PHP (Part I) Lecture # 6. What is an array? It is a collection of multiple values assembled into one variable An array can consist of.
JavaScript Lecture 6 Rachel A Ober
Arrays – What is it? – Creation – Changing the contents Functions – What is it? – Syntax – How they work – Anonymous functions A quick lesson in Objects.
Web Programming Language Week 4 Dr. Ken Cosh Introducing Javascript.
Title, meta, link, script.  The title looks like:  The tag defines the title of the document in the browser toolbar.  It also: ◦ Provides a title for.
SHOPPING CARTS CHAPTER 19. E-COMMERCE Typically, an e-commerce site will have public pages and admin pages.
Manipulating the DOM CST 200 – JavaScript 3 –
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
JavaScript Scripting language What is Scripting ? A scripting language, script language, or extension language is a programming language.
Project 1: Using Arrays and Manipulating Strings Essentials for Design JavaScript Level Two Michael Brooks.
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
06 – Java Script (2) Informatics Department Parahyangan Catholic University.
IS2802 Introduction to Multimedia Applications for Business Lecture 4: JavaScript, Loops, and Conditional Statements Rob Gleasure
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
ECA 225 Applied Interactive Programming ECA 225 Applied Online Programming javascript arrays.
Class02 More Arrays MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 1/14/2016.
JavaScript and Ajax (JavaScript Arrays) Week 5 Web site:
Chapter 5 Murach's JavaScript and jQuery, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 19 A Ray of Sunshine.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
A little PHP. Enter the simple HTML code seen below.
Lecture Five The Project 1. Wen Yu BNUZ LIMS Description Design a simple Library Information Management System (LIMS) for an university The system includes.
PHP using MySQL Database for Web Development (part II)
CGS 3066: Web Programming and Design Spring 2017
A little PHP.
Week 3: Introduction to Javascript
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Chapter 4 Client-Side Programming: the JavaScript Language
IT441 Network Services Administration
Week#2 Day#1 Java Script Course
>> JavaScript: Arrays
JavaScript Functions and Arrays
Introduction to JavaScript
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
The relational operators
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
A second look at JavaScript
ARRAYS MIT-AITI Copyright 2001.
Perl Variables: Array Web Programming.
Web Systems Development (CSC-215)
© Akhilesh Bajaj, All rights reserved.
Web Systems Development (CSC-215)
© 2015, Mike Murach & Associates, Inc.
CS5220 Advanced Topics in Web Programming JavaScript Basics
Web Programming Language
Text Analyzer BIS1523 – Lecture 14.
Administration, Coverage, Review
CS3220 Web and Internet Programming JavaScript Basics
Intro to PHP.
Tutorial 6 PHP & MySQL Li Xu
Introduction to JavaScript
JavaScript CS 4640 Programming Languages for Web Applications
ხელმძღვანელი: დიმიტრი ქარაული
Lecture 6: Processing Forms with PHP
CS3220 Web and Internet Programming JavaScript Basics
Murach's JavaScript and jQuery (3rd Ed.)
Web Programming and Design
JavaScript CS 4640 Programming Languages for Web Applications
Presentation transcript:

Web Systems Development (CSC-215) Lecture 16: JavaScript – Functions, Objects, Arrays

WSD Makeup Class Friday 27th April 2:00-3:30pm

Javascript also based on objects as already seen with the dom

Defining a Function

Arguments Array Why would you need one?

Arguments Array More concise scripts

Returning values: Cleaning up a full name

Returning an Array

Example Usage

Javascript objects

User Class

Create a new instance

Create empty object and populate

Add property

Accessing Objects

Alternate Syntax

Syntax Variations

arrays

Numeric Arrays

Numeric Arrays - Shorthand

PHP Array Element Assignment

JavaScript Array Element Assignment

JavaScript Array Element Assignment Alternative

Get Array Length

Create, Build & Print Array

Assignment using Array Keyword More elements can be added later on

Associative Array

Multidimensional Arrays

Array functions

concat Banana, Grape, Carrot, Cabbage

concat

join Join array elements to create one string

Push and pop

reverse

sort

For further details, use MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript For further details, use MDN

Practice Exercise Create and demo a JavaScript class named Book Properties Title Author Price Method Getters Setters Update price Use prompt to instantiate two objects as per values entered by the user Print the two Use prompt to ask the user to update the prices Print the two updated objects

Lecture content adapted from chapter 16 of Learning PHP, MySQL, JavaScript, CSS & HTML5.