IM 215 Intro to Scripting Languages. Objectives The core objectives of this course are as follows: Students will understand basic foundations of JavaScript,

Slides:



Advertisements
Similar presentations
JavaScript I. JavaScript is an object oriented programming language used to add interactivity to web pages. Different from Java, even though bears some.
Advertisements

Introducing JavaScript
Java Script Session1 INTRODUCTION.
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
1 Outline 13.1Introduction 13.2A Simple Program: Printing a Line of Text in a Web Page 13.3Another JavaScript Program: Adding Integers 13.4Memory Concepts.
Tutorial 10 Programming with JavaScript
Introduction to Web Site Development Steven Emory Department of Computer Science California State University, Los Angeles Lecture 8: JavaScript I.
CIS101 Introduction to Computing Week 09. Agenda Hand in Resume project Your questions Introduction to JavaScript This week online Next class.
XP Tutorial 1 New Perspectives on JavaScript, Comprehensive1 Introducing JavaScript Hiding Addresses from Spammers.
The Information School of the University of Washington Oct 20fit programming1 Programming Basics INFO/CSE 100, Fall 2006 Fluency in Information Technology.
CIS101 Introduction to Computing Week 09 Spring 2004.
2012 •••••••••••••••••••••••••••••••••• Summer WorkShop Mostafa Badr
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
Introduction to scripting
Chapter 9 Interactive Multimedia Authoring with Flash - Introduction to Programming “Computers and Creativity” Richard D. Webster, COSC 109 Instructor.
Javascript and the Web Whys and Hows of Javascript.
CGS3066: Web Programming and Design Summer 2014 Instructor Mir Anamul Hasan.
JavaScript: Control Structures September 27, 2005 Slides modified from Internet & World Wide Web: How to Program (3rd) edition. By Deitel, Deitel,
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
1 JavaScript in Context. Server-Side Programming.
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Tutorial 10 Programming with JavaScript. XP Objectives Learn the history of JavaScript Create a script element Understand basic JavaScript syntax Write.
Tutorial 10 Programming with JavaScript
Done by: Hanadi Muhsen1 Tutorial 1.  Learn the history of JavaScript  Create a script element  Write text to a Web page with JavaScript  Understand.
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Strings, output, quotes and comments
1 JavaScript
Introduction to JavaScript CS101 Introduction to Computing.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
Introduction to Programming JScript Six Scripting functions Discuss functions Password Example.
ECA 225 Applied Interactive Programming1 ECA 225 Applied Online Programming basics.
 2000 Deitel & Associates, Inc. All rights reserved. Outline 8.1Introduction 8.2A Simple Program: Printing a Line of Text in a Web Page 8.3Another JavaScript.
© 2000 – All Rights Reserved - Page 1 Introduction to JavaScript Programming Part One.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
4. Javascript M. Udin Harun Al Rasyid, S.Kom, Ph.D Lab Jaringan Komputer (C-307) Desain.
1 JavaScript in Context. Server-Side Programming.
CIS 375—Web App Dev II JavaScript I. 2 Introduction to DTD JavaScript is a scripting language developed by ________. A scripting language is a lightweight.
Python Let’s get started!.
Introduction to JavaScript CSc 2320 Fall 2014 Disclaimer: All words, pictures are adopted from “Simple JavaScript”by Kevin Yank and Cameron Adams and also.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Beginning JavaScript 4 th Edition. Chapter 1 Introduction to JavaScript and the Web.
Introduction to JavaScript MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/2/2016.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Introduction to Javascript. What is javascript?  The most popular web scripting language in the world  Used to produce rich thin client web applications.
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
Unit M Programming Web Pages with
Chapter 6 JavaScript: Introduction to Scripting
Tutorial 10 Programming with JavaScript
Unit M Programming Web Pages with
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
JavaScript.
JavaScript an introduction.
Exercises on JavaScript & Revision
WEB PROGRAMMING JavaScript.
Lesson 2: Input and Variables
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Tutorial 10 Programming with JavaScript
Tutorial 10: Programming with javascript
Introduction to JavaScript
Presentation transcript:

IM 215 Intro to Scripting Languages

Objectives The core objectives of this course are as follows: Students will understand basic foundations of JavaScript, including its usage in the web and application design and development. Students will understand basic foundations of Flash/ActionScript, including its usage in the web and application design and development. Students will understand the foundations of mobile applications development.

Academic policies Lab use Communication about grades Academic honesty Exam and quiz policy Late work

Assessment criteria Assessments: Class participation - 4 Quizzes – 25 points each Javascript Assignment 1 – 40 points Javascript Assignment 2 – 40 points Javascript Assignment 3 – 50 points Actionscript Assignment 1 – 20 points Actionscript Assignment 2 – 25 points Actionscript Assignment 3 – 35 points Actionscript Assignment 4 – 50 points Final Exam – 100 points

Grades/Resources >= 90% A Excellent >=80% and < 90% B Above Average >=70% and < 80% C Average >=60% and <70% D Below Average < 60% F Fails Javascript, A Beginner’s Guide, 3 rd Edition by John Pollock Foundation Actionscript 3.0 by Yard, Webster and McSharry

Contact details AIM: marktee07 Twitter: em_tee After lectures on Monday’s and Wednesday’s

Javascript Introduction

Javascript Adds interactivity and effects to a static HTML page Limited to client side actions Wikipedia.com – no javascript interactions Amazon.com – significant javascript enhancements

First steps.. Tools of the trade A text editor TextWrangler ( Notepad++ ( A browser Firefox (current version 3.5.7) Internet Explorer (version 7) Edit code in your text editor When ready to try your code, open in the browser

Simple HTML page Simple static page IM215 rocks

First script Add the following to our page: document.write(‘ And so does Javascript ’); Save the page and re-open it in your browser.

External script Create a new file and insert the following line: document.write ( ‘ Written in from outside ’); Save it as external.js Return to our original html file and insert the following:

Variables Variables are containers for data datum – individual piece of data name - label that identifies the piece of datum variable – consists of a name and a piece of data A variable’s datum is called its “value”

Variables (cont.) 1.Simplify code and save time, giving commonly referenced values a single name 2.Acts as a placeholder for unknown values, e.g. user input 3.Clarifies code, allowing you to give meaningful names to values used in code

Using Variables Defining: var variableName; Giving, or “Assigning”, a value: variableName=25; Or, combined: var variableName=25;

Variable rules Variable names are case sensitive. Can only contain letters, numbers or underscores. Cannot begin with a number. Cannot be one of a set of Javascript reserved words. Use meaningful names.

Variable Data Types The current value of a variable has a “type” Javascript has 3 core data types Number – Any number including decimal numbers e.g. var numVar=25; String – any sequence of characters e.g. var stringVar=“A string of text”; Boolean – true or false

Using Variables To reference a variable, include the name in the context of other code. For example, var ourString=“An assigned string”; document.write(ourString);

Comments Lines in code that get ignored by the JavaScript engine. Provide clarity, allowing you to explain the overall purpose of your code in plain english. Valuable when collaborating on code with others, and for your own future reference.

Comments Single line: // This line is a comment Multi-line: /* This is a multi-line comment Everything within here is ignored */

Sources: “JavaScript: A Beginner’s Guide” by John Pollock