CMPT 100 : INTRODUCTION TO
|
|
- Thomasine Strickland
- 6 years ago
- Views:
Transcription
1 CMPT 100 : INTRODUCTION TO COMPUTING TUTORIAL #7 : JAVASCRIPT AND FORM TUTORIAL - CANDY STORE 2 1 By Wendy Sharpe
2 BEFORE WE GET STARTED... Log onto the lab computer (in Windows) Create a folder for this tutorial on H:// drive Log onto Moodle and open tutorial 7 notes You have two options for the html form: Use the form you created from last week (might have errors) Click on candystore.html link in the tutorial notes and save to your newly created folder Open Notepad++ Start All Programs Course Specific Applications Notepad+++ DO NOT OPEN THE SAME FILE WITH KOMPOZER AND NOTEPAD++ AT THE SAME TIME 2
3 TUTORIAL 7 OVERVIEW Creating/calling functions and creating variables Using the onclick event handler Accessing and processing information from a form text fields radio buttons error checking numerical values Putting information back into a form Printing a receipt with a second function Debugging JavaScript Where you can get help with Assignment 4 or the additional exercises in Tutorial 7 3
4 TUTORIAL 7 PUBLIC SERVICE ANNOUNCEMENT this tutorial has the potential to be very buggy if you don t keep track of variable names function names syntax of built-in functions that you call to get information from a form id of text fields names of groups of radio buttons step outside the array that stores radio buttons (more on that later) if you re killing a loop/if early by terminating it with a semi colon Use syntax higlighting and your error console as much as you can. 4
5 CREATING/CALLING FUNCTIONS AND CREATING VARIABLES 5
6 ADDING THE SCRIPT TAGS Functions can be defined both in the <head> and in the <body> section So how do you know where to put the script? to assure that a function is read/loaded by the browser before it is called, put functions in the <head> section We re putting our script in the <head> of the candystore document form 6
7 CREATING YOUR VARIABLES The number of variables you want to create depends on how much you want to break down the information for each piece of data I.e., you have information for gummy bears, jelly beans, packaging, delivery, name, and total cost E.g., gummy bears has a number of gbears selected by the user, and a price associated with them. You ll want to create two variables to remember this information. create variables inside of your <script></script> tags but OUTSIDE of your functions. Why? Because global variables can be used by all functions in your script. 7
8 CREATING YOUR VARIABLES PART DEUX Don t forget to initialize your variables... especially the ones that are going to hold strings My program s variables: var gbears = 0; var gbearscost = 0; var jbeans = 0; var jbeanscost = 0; var deliverytype = ""; var deliverycost = 0; var packagetype = ""; var packagecost = 0; var name = ""; var totalcost = 0; 8
9 FUNCTION SYNTAX We ve used functions before... but someone else has made them for us remember JavaScript s Math class functions? Basic function syntax function functionname(var1,var2,...,varx) { the code you want to execute } function functionname() { the code you want to execute } the difference is in the arguments to the function Go ahead and create your order() function, put an alert inside the function that says hello to prove to yourself that the function does something. 9
10 CALLING THE ORDER() FUNCTION We re using the onclick event to call functions for our form onclick is an event that occurs when the user clicks a button on your form general syntax onclick="somejavascriptcode Add an onclick event to your Order Now button This is what your button looks like in code <input name="submitbutton" value="submit!" type="button /> Your onclick event will go at the end of the button code <input name="submitbutton" value="submit!" type="button onclick goes here/> 10
11 WE VE GOT A FUNCTION... NOW WHAT? A.K.A. ACCESSING INFORMATION IN THE FORM A. ACCESSING TEXT FIELDS B. RADIO BUTTONS 11
12 12 A. ACCESSING TEXT FIELDS
13 ACCESSING GUMMY BEAR DATA : GetElementById() How will you grab the number of gummy bears entered by the user into your form? using the document.getelementbyid built-in function the Id part of it refers to the id that you had assigned to your form text fields last week: <input id="gummybears" name="gummybears" value="0" /> If you have forgotten how to set up this id, go back to last week s tutorial (Tutorial 6) For more info on how to use: met_doc_getelementbyid.asp General syntax: myformvariable = document.getelementbyid("id") 13
14 ACCESSING GUMMY BEAR DATA : getelementbyid() getelementbyid will return a string to your variable so you will have to use parseint parseint takes a string argument and returns a number For more info on parseint: // get number of gummybears gbears = parseint(document.getelementbyid("gummybears").value); You can check and see if you ve accessed the information in the correct way by using a debugging statement specific ways of using alerts to track down issues in your program and verify that you re doing things correctly. 14
15 ACCESSING THE JELLY BEAN DATA access the same way as the gummy bear data 15
16 ERROR CHECKING FOR NUMERICAL VALUES parseint will parse whatever you give it you can check to see if the user enters a non-numerical value by using the isnan funtion NaN == Not-a-Number if(!isnan(gbears)) { //if yes - calculate cost of gummybears gbearscost = gbears*10; // alert("number of gbears: " + gbears); } else { } //if no - print error message alert("error! Please enter a numeric value for Gummybears!"); 16
17 CUSTOMER NAME you re on your own for creating the code to get the customer s name from the form 17
18 18 B. ACCESSING RADIO BUTTONS
19 RADIO BUTTONS your radio buttons all must have the same name to be a part of the same group I.e., our packaging types have the same name <input checked="checked" name="containertype" value="2" type="radio" />Gift Bag ($2)<br /> <input name="containertype" value="3" type="radio" />Decorated Can ($3)<br /> <input name="containertype" value="0" type="radio" />Box (Free!) JavaScript stores the value of the group of radio buttons in a special type of variable called an array an array holds data of the same type (like a containertype) we step through arrays with a single for-loop arrays start at 0 19
20 FOR LOOP TO ACCESS THE DELIVERY for (var j=0; j<=1; j++) { //for each radio button in DeliveryType - see if checked if(document.getelementsbyname('deliverytype')[j].checked) { //if yes - get cost of delivery deliverycost = parseint(document.getelementsbyname('deliverytype')[j].value); } } //determine which is checked to get ype if(i==0) { deliverytype = "Canada Post"; } else { deliverytype = "FedEx ; } 20
21 ACCESSING RADIO BUTTON DATA WITH getelementsbyname() grabbing the data for a radio button is slightly different than with the text button parseint(document.getelementsbyname('deliverytype')[j].value) radio buttons don t have an id like a text box, they have a name so, in order to access them, we need to get the elements of a group of radio buttons by their name your turn: add a for-loop to access the contents of the container/packaging data 21
22 22 PUTTING DATA BACK INTO THE FORM
23 TOTAL COST we need to tell the user the total cost of the purchase Total cost is a form text field... it s like how we accessed the jelly bean/gummy bear data but in reverse add up all the cost variables for each item purchased, put it into your total variable I.e., totalcost = gbearscost + jbeanscost + packagecost + deliverycost; assign the value of the total variable back into the element of the form with the id totalcost formdocument.getelementbyid('totalcost').value = totalcost; now, display an alert thanking the customer for their purchase and we re all done with the order() function 23
24 PRINTING A RECEIPT WITH A SECOND FUNCTION 24
25 CREATING THE SECOND FUNCTION You a way of telling the program to print a receipt when a button is clicked <input name="printreceipt" value="print Receipt!" type="button" onclick="printrec()"/> Create a second function AFTER the order() function why? order of your code is important. We re going to call the order() function from our receipt printing function if the receipt printing function is put before the order() function it won t actually know what the order() function is computers aren t smart, they do what you tell them to do... in order 25
26 PRINTREC() FUNCTION function printrec() { order(); document.write("<h1>your Receipt</h1>"); // other stuff goes in here... I ll let you fill it in } document.write("customer Name: "+ name); 26
27 27 DEBUGGING JAVASCRIPT
28 SCRIPT NOT WORKING? Common places to look for errors Did you spell variables correctly? Is your code in order? Are you trying to use variables before they have a value associated with them American English spelling of words like color Are all semi-colons where they need to be? Use syntax highlighting to find errors Did you concatenate your strings properly? + in the right places Proper use of double quotation marks Using the error console in Firefox to find problems with your script Tools Error Console Tip: clear the error console, then force refresh Errors option will give you information about what line of code has the problem 28
29 WHERE YOU CAN GET HELP WITH ASSIGNMENT 4 OR THE ADDITIONAL EXERCISES IN TUTORIAL 7 29
30 GETTING HELP Your instructor (free...well...cost of tuition) can help clarify assignment guidelines, requirements, marking scheme, and can generally help you debug Computer Science Help Desk (free) in the little room between the open Mac lab and the big open dual-boot Spinks lab there s a lab advisor schedule on the wall if someone is scheduled but not physically present, write your computer name (located on the label on the box) on the whiteboard CS Tutors ($$) Online specifically
31 31 QUESTIONS?
CMPT 100 : INTRODUCTION TO
CMPT 100 : INTRODUCTION TO COMPUTING TUTORIAL #5 : JAVASCRIPT 2 GUESSING GAME 1 By Wendy Sharpe BEFORE WE GET STARTED... If you have not been to the first tutorial introduction JavaScript then you must
More informationCMPT 100 : INTRODUCTION TO
CMPT 100 : INTRODUCTION TO COMPUTING TUTORIAL #1 : GETTING STARTED 1 By Wendy Sharpe OVERVIEW OF TUTORIAL #1 Speed meet & greet Logging on/off computers and synchronizing passwords via PAWS Using 3 rd
More informationc122mar413.notebook March 06, 2013
These are the programs I am going to cover today. 1 2 Javascript is embedded in HTML. The document.write() will write the literal Hello World! to the web page document. Then the alert() puts out a pop
More informationExercise 1 Using Boolean variables, incorporating JavaScript code into your HTML webpage and using the document object
CS1046 Lab 5 Timing: This lab should take you approximately 2 hours. Objectives: By the end of this lab you should be able to: Recognize a Boolean variable and identify the two values it can take Calculate
More informationORB Education Quality Teaching Resources
JavaScript is one of the programming languages that make things happen in a web page. It is a fantastic way for students to get to grips with some of the basics of programming, whilst opening the door
More informationEnhancing Web Pages with JavaScript
Enhancing Web Pages with JavaScript Introduction In this Tour we will cover: o The basic concepts of programming o How those concepts are translated into JavaScript o How JavaScript can be used to enhance
More informationWeb Programming and Design. MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh
Web Programming and Design MPT Junior Cycle Tutor: Tamara Demonstrators: Aaron, Marion, Hugh Plan for the next 5 weeks: Introduction to HTML tags, creating our template file Introduction to CSS and style
More informationCS1046 Lab 4. Timing: This lab should take you 85 to 130 minutes. Objectives: By the end of this lab you should be able to:
CS1046 Lab 4 Timing: This lab should take you 85 to 130 minutes. Objectives: By the end of this lab you should be able to: Define the terms: function, calling and user-defined function and predefined function
More informationProject 2: After Image
Project 2: After Image FIT100 Winter 2007 Have you ever stared at an image and noticed that when it disappeared, a shadow of the image was still briefly visible. This is called an after image, and we experiment
More informationFunctions. INFO/CSE 100, Spring 2006 Fluency in Information Technology.
Functions INFO/CSE 100, Spring 2006 Fluency in Information Technology http://www.cs.washington.edu/100 4/24/06 fit100-12-functions 1 Readings and References Reading» Fluency with Information Technology
More informationProgramming language components
Programming language components syntax: grammar rules for defining legal statements what's grammatically legal? how are things built up from smaller things? semantics: what things mean what do they compute?
More informationGetting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners
Getting Started Excerpted from Hello World! Computer Programming for Kids and Other Beginners EARLY ACCESS EDITION Warren D. Sande and Carter Sande MEAP Release: May 2008 Softbound print: November 2008
More informationINTRODUCTION TO JAVASCRIPT
INTRODUCTION TO JAVASCRIPT Overview This course is designed to accommodate website designers who have some experience in building web pages. Lessons familiarize students with the ins and outs of basic
More informationBy the end of this section of the practical, the students should be able to:
By the end of this section of the practical, the students should be able to: Write JavaScript to generate HTML Create simple scripts which include input and output statements, arithmetic, relational and
More informationTutorial. Activities. Code o o. Editor: Notepad Focus : Text manipulation & webpage skeleton. Open Notepad
Tutorial Activities Code o o Editor: Notepad Focus : Text manipulation & webpage skeleton Open Notepad Click in the search bar and type notepad to load it up, you should see something like this: Type in
More informationCOMP 1130 Programming Fundamentals (Javascript Rocks)
COMP 1130 Programming Fundamentals (Javascript Rocks) Class Website URL Teacher Contact Information High School Credits Concurrent Enrollment Course Description http://online.projectsocrates.org Mr. Roggenkamp
More informationHello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications
Hello World! Computer Programming for Kids and Other Beginners by Warren Sande and Carter Sande Chapter 1 Copyright 2009 Manning Publications brief contents Preface xiii Acknowledgments xix About this
More information(try adding using css to add some space between the bottom of the art div and the reset button, this can be done using Margins)
Pixel Art Editor Extra Challenges 1. Adding a Reset button Add a reset button to your HTML, below the #art div. Pixels go here reset The result should look something
More information<form>. input elements. </form>
CS 183 4/8/2010 A form is an area that can contain form elements. Form elements are elements that allow the user to enter information (like text fields, text area fields, drop-down menus, radio buttons,
More informationReact. HTML code is made up of tags. In the example below, <head> is an opening tag and </head> is the matching closing tag.
Document Object Model (DOM) HTML code is made up of tags. In the example below, is an opening tag and is the matching closing tag. hello The tags have a tree-like
More informationNOTE: There are an awful lot of synonyms for "function" "routine, map [ ], procedure, [ ], subroutine, [ ], subprogram, [ ], function"
Functions Basic Functions NOTE: There are an awful lot of synonyms for "function" "routine, map [ ], procedure, [ ], subroutine, [ ], subprogram, [ ], function" From http://www.synonyms.net/synonym/function:
More informationCOMS 469: Interactive Media II
COMS 469: Interactive Media II Agenda Review Data Types & Variables Decisions, Loops, and Functions Review gunkelweb.com/coms469 Review Basic Terminology Computer Languages Interpreted vs. Compiled Client
More informationJavascript Lecture 23
Javascript Lecture 23 Robb T. Koether Hampden-Sydney College Mar 9, 2012 Robb T. Koether (Hampden-Sydney College) JavascriptLecture 23 Mar 9, 2012 1 / 23 1 Javascript 2 The Document Object Model (DOM)
More informationWebsite Development Komodo Editor and HTML Intro
Website Development Komodo Editor and HTML Intro Introduction In this Lecture and Tour we will cover: o Use of the editor that will be used for the Website Development and Javascript Programming sections
More informationManju Muralidharan Priya. CS4PM Web Aesthetics and Development WEEK 11
CS4PM Web Aesthetics and Development WEEK 11 Objective: Understand basics of JScript Outline: a. Basics of JScript Reading: Refer to w3schools websites and use the TRY IT YOURSELF editor and play with
More information<script> function yourfirstfunc() { alert("hello World!") } </script>
JavaScript: Lesson 1 Terms: HTML: a mark-up language used for web pages (no power) CSS: a system for adding style to web pages css allows developers to choose how to style the html elements in a web page
More informationSection 1. How to use Brackets to develop JavaScript applications
Section 1 How to use Brackets to develop JavaScript applications This document is a free download from Murach books. It is especially designed for people who are using Murach s JavaScript and jquery, because
More informationJava Programming Fundamentals - Day Instructor: Jason Yoon Website:
Java Programming Fundamentals - Day 1 07.09.2016 Instructor: Jason Yoon Website: http://mryoon.weebly.com Quick Advice Before We Get Started Java is not the same as javascript! Don t get them confused
More informationSoftware. Programming Languages. Types of Software. Types of Languages. Types of Programming. Software does something
Software Software does something LBSC 690: Week 10 Programming, JavaScript Jimmy Lin College of Information Studies University of Maryland Monday, April 9, 2007 Tells the machine how to operate on some
More informationCreating Your Web Site
Creating Your Web Site Students who are serious about wanting to be writers must create their own web sites to display their work. This is what professionals want to see an easy place to access your work
More informationLesson 1: Writing Your First JavaScript
JavaScript 101 1-1 Lesson 1: Writing Your First JavaScript OBJECTIVES: In this lesson you will be taught how to Use the tag Insert JavaScript code in a Web page Hide your JavaScript
More informationCSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch
CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch Purpose: We will take a look at programming this week using a language called Scratch. Scratch is a programming language that was developed
More informationControlled Assessment Task. Question 1 - Describe how this HTML code produces the form displayed in the browser.
Controlled Assessment Task Question 1 - Describe how this HTML code produces the form displayed in the browser. The form s code is displayed in the tags; this creates the object which is the visible
More informationA340 Laboratory Session #5
A340 Laboratory Session #5 LAB GOALS Creating multiplication table using JavaScript Creating Random numbers using the Math object Using your text editor (Notepad++ / TextWrangler) create a web page similar
More information1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.
1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document. 2. W3Schools has a lovely html tutorial here (it s worth the time): http://www.w3schools.com/html/default.asp
More informationBeginning HTML. The Nuts and Bolts of building Web pages.
Beginning HTML The Nuts and Bolts of building Web pages. Overview Today we will cover: 1. what is HTML and what is it not? Building a simple webpage Getting that online. What is HTML? The language of the
More informationQ1. What is JavaScript?
Q1. What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight programming language JavaScript is usually embedded
More informationCSC Web Programming. Introduction to JavaScript
CSC 242 - Web Programming Introduction to JavaScript JavaScript JavaScript is a client-side scripting language the code is executed by the web browser JavaScript is an embedded language it relies on its
More informationProgramming Lab 1 (JS Hwk 3) Due Thursday, April 28
Programming Lab 1 (JS Hwk 3) Due Thursday, April 28 Lab You may work with partners for these problems. Make sure you put BOTH names on the problems. Create a folder named JSLab3, and place all of the web
More informationLesson 1. Introduction to Programming OBJECTIVES
Introduction to Programming If you re new to programming, you might be intimidated by code and flowcharts. You might even wonder how you ll ever understand them. This lesson offers some basic ideas and
More informationJavaScript. Advanced HTML
JavaScript You will learn more advanced html tags for creating graphical GUI controls and the basics of JavaScript programming. Pictures courtesy of Advanced HTML In the last section you learned how to
More informationPlace User-Defined Functions in the HEAD Section
JavaScript Functions Notes (Modified from: w3schools.com) A function is a block of code that will be executed when "someone" calls it. In JavaScript, we can define our own functions, called user-defined
More informationCMSC 201 Fall 2016 Lab 09 Advanced Debugging
CMSC 201 Fall 2016 Lab 09 Advanced Debugging Assignment: Lab 09 Advanced Debugging Due Date: During discussion Value: 10 points Part 1: Introduction to Errors Throughout this semester, we have been working
More informationArrays/Branching Statements Tutorial:
Arrays/Branching Statements Tutorial: In the last tutorial, you created a button that, when you clicked on it (the onclick event), changed another image on the page. What if you have a series of pictures
More informationGetting started with jquery MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University
Getting started with jquery MIS 2402 Konstantin Bauman Department of MIS Fox School of Business Temple University Exam 2 Date: 11/06/18 four weeks from now! JavaScript, jquery 1 hour 20 minutes Use class
More informationLab 3 - Pizza. Purpose. Assignment
Lab 3 - Pizza Purpose To assess your ability to apply the knowledge and skills developed in weeks 1 through 9. Emphasis will be placed on the following learning outcomes: 1. Create syntactically correct
More informationThe first sample. What is JavaScript?
Java Script Introduction JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox, Chrome, Opera, and Safari. In this lecture
More informationJavaScript CS 4640 Programming Languages for Web Applications
JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation
More informationCISC 1600 Lecture 2.4 Introduction to JavaScript
CISC 1600 Lecture 2.4 Introduction to JavaScript Topics: Javascript overview The DOM Variables and objects Selection and Repetition Functions A simple animation What is JavaScript? JavaScript is not Java
More informationExercise 1: Basic HTML and JavaScript
Exercise 1: Basic HTML and JavaScript Question 1: Table Create HTML markup that produces the table as shown in Figure 1. Figure 1 Question 2: Spacing Spacing can be added using CellSpacing and CellPadding
More informationCS Multimedia and Communications REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB!
CS 1033 Multimedia and Communications REMEMBER TO BRING YOUR MEMORY STICK TO EVERY LAB! Lab 06: Introduction to KompoZer (Website Design - Part 3 of 3) Lab 6 Tutorial 1 In this lab we are going to learn
More informationWhy Use A JavaScript Library?
Using JQuery 4 Why Use A JavaScript Library? Okay, first things first. Writing JavaScript applications from scratch can be difficult, time-consuming, frustrating, and a real pain in the, ahem, britches.
More informationCOMS 469: Interactive Media II
COMS 469: Interactive Media II Agenda Class Roster Course Web Site & Syllabus JavaScript Introduction (ch. 1) gunkelweb.com/coms469 Introduction to JavaScript Chapter One Introduction to JavaScript and
More informationTOPIC 2 INTRODUCTION TO JAVA AND DR JAVA
1 TOPIC 2 INTRODUCTION TO JAVA AND DR JAVA Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson, and instructor materials prepared
More informationClient Side JavaScript and AJAX
Client Side JavaScript and AJAX Client side javascript is JavaScript that runs in the browsers of people using your site. So far all the JavaScript code we've written runs on our node.js server. This is
More informationGoogle Earth: Significant Places in Your Life Got Maps? Workshop June 17, 2013
Google Earth: Significant Places in Your Life Got Maps? Workshop June 17, 2013 1. Open Google Earth. 2. Familiarize yourself with Google Earth s navigational features by zooming into Furman s campus, your
More informationThings to note: Each week Xampp will need to be installed. Xampp is Windows software, similar software is available for Mac, called Mamp.
Tutorial 8 Editor Brackets Goals Introduction to PHP and MySql. - Set up and configuration of Xampp - Learning Data flow Things to note: Each week Xampp will need to be installed. Xampp is Windows software,
More informationfunction < name > ( < parameter list > ) { < statements >
Readings and References Functions INFO/CSE 100, Autumn 2004 Fluency in Information Technology http://www.cs.washington.edu/100 Reading» Fluency with Information Technology Chapter 20, Abstraction and Functions
More informationLast &me: Javascript (forms and func&ons)
Let s debug some code together: hkp://www.clsp.jhu.edu/~anni/cs103/test_before.html hkp://www.clsp.jhu.edu/~anni/cs103/test_arer.html
More informationAlfresco Voice Writing for the user interface
Alfresco Voice Writing for the user interface One day I will find the right words, and they will be simple. Jack Kerouac Contents Writing Tone - how to write Language - what to write Capitalization Abbreviations
More informationwrite vs. writeln Prompting as Page Loads Today s Goals CSCI 2910 Client/Server-Side Programming Intermediate File vs. HTML Output
CSCI 2910 Client/Server-Side Programming Topic: JavaScript Part 2 Today s Goals Today s lecture will cover: More objects, properties, and methods of the DOM The Math object Introduction to form validation
More informationTUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL
TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL We have spent the first part of the course learning Excel: importing files, cleaning, sorting, filtering, pivot tables and exporting
More informationAdding Content to Blackboard
Adding Content to Blackboard Objectives... 2 Task Sheet for: Adding Content to Blackboard... 3 What is Content?...4 Presentation Type and File Formats... 5 The Syllabus Example... 6 PowerPoint Example...
More informationWWU CSCI 101 Project 2. Project 2 - Fence Pricing Calculator. Goals: Guideline: 1. Familiarity with web page development using HTML and JavaScript
Project 2 - Fence Pricing Calculator Goals: 1. Familiarity with web page development using HTML and JavaScript 2. Organizing ideas and presenting ideas in a logical fashion 3. Create a calculator-style
More informationModule 1: Introduction RStudio
Module 1: Introduction RStudio Contents Page(s) Installing R and RStudio Software for Social Network Analysis 1-2 Introduction to R Language/ Syntax 3 Welcome to RStudio 4-14 A. The 4 Panes 5 B. Calculator
More informationExercise 6 - Addressing a Message
Exercise 6 - Addressing a Message All e-mail messages have to include an address for an e-mail to be delivered, just as a normal letter has to have a house address. An e-mail address is made up of: a user
More informationLearning vrealize Orchestrator in action V M U G L A B
Learning vrealize Orchestrator in action V M U G L A B Lab Learning vrealize Orchestrator in action Code examples If you don t feel like typing the code you can download it from the webserver running on
More informationLesson 7: If Statement and Comparison Operators
JavaScript 101 7-1 Lesson 7: If Statement and Comparison Operators OBJECTIVES: In this lesson you will learn about Branching or conditional satements How to use the comparison operators: ==,!=, < ,
More informationUnifer Documentation. Release V1.0. Matthew S
Unifer Documentation Release V1.0 Matthew S July 28, 2014 Contents 1 Unifer Tutorial - Notes Web App 3 1.1 Setting up................................................. 3 1.2 Getting the Template...........................................
More informationCS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG
CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG 1 Notice Reading Assignment Chapter 1: Introduction to Java Programming Homework 1 It is due this coming Sunday
More informationCommand-driven, event-driven, and web-based software
David Keil Spring 2009 Framingham State College Command-driven, event-driven, and web-based software Web pages appear to users as graphical, interactive applications. Their graphical and interactive features
More informationSession 3: JavaScript - Structured Programming
INFM 603: Information Technology and Organizational Context Session 3: JavaScript - Structured Programming Jimmy Lin The ischool University of Maryland Thursday, September 25, 2014 Source: Wikipedia Types
More informationTUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL
TUTORIAL FOR IMPORTING OTTAWA FIRE HYDRANT PARKING VIOLATION DATA INTO MYSQL We have spent the first part of the course learning Excel: importing files, cleaning, sorting, filtering, pivot tables and exporting
More informationCS 126 Lecture P1: Introduction to C
CS 126 Lecture P1: Introduction to C Administrivia Background Syntax Libraries Algorithms Outline CS126 2-1 Randy Wang To Get Started Visit course web page: - http://www.cs.princeton.edu/courses/cs126
More informationJavaScript code is inserted between tags, just like normal HTML tags:
Introduction to JavaScript In this lesson we will provide a brief introduction to JavaScript. We won t go into a ton of detail. There are a number of good JavaScript tutorials on the web. What is JavaScript?
More informationPES DEGREE COLLEGE BANGALORE SOUTH CAMPUS 1 K.M. before Electronic City, Bangalore WEB PROGRAMMING Solution Set II
PES DEGREE COLLEGE BANGALORE SOUTH CAMPUS 1 K.M. before Electronic City, Bangalore 560 100 WEB PROGRAMMING Solution Set II Section A 1. This function evaluates a string as javascript statement or expression
More informationSection 2. Sending s
Start IT (itq) Using E-mail Section 2 Sending E-mails Topics contained within this section: Composing E-mail Using Addressing Using Spell Checking Sending Messages Understanding Guidelines Outlook 2007
More information1 Getting started with Processing
cis3.5, spring 2009, lab II.1 / prof sklar. 1 Getting started with Processing Processing is a sketch programming tool designed for use by non-technical people (e.g., artists, designers, musicians). For
More informationOpen and respond to this poll: PollEv.com/comp110. Calling Methods Mr. Roboto
Open and respond to this poll: PollEv.com/comp110 Lecture 1 Calling Methods Mr. Roboto Fall 2016 Special thanks to Dr. Andy van Dam, my grad school advisor, and Brown s CS15 course for this fantastic method
More informationWeb Site Development with HTML/JavaScrip
Hands-On Web Site Development with HTML/JavaScrip Course Description This Hands-On Web programming course provides a thorough introduction to implementing a full-featured Web site on the Internet or corporate
More informationAPPM 2460 Matlab Basics
APPM 2460 Matlab Basics 1 Introduction In this lab we ll get acquainted with the basics of Matlab. This will be review if you ve done any sort of programming before; the goal here is to get everyone on
More informationBy the end of this section of the practical, the students should be able to:
By the end of this section of the practical, the students should be able to: Learn about the Document Object Model and the Document Object Model hierarchy Create and use the properties, methods and event
More informationElementary Computing CSC 100. M. Cheng, Computer Science
Elementary Computing CSC 100 1 Basic Programming Concepts A computer is a kind of universal machine. By using different software, a computer can do different things. A program is a sequence of instructions
More informationA.A. 2008/09. Why introduce JavaScript. G. Cecchetti Internet Software Technologies
Internet t Software Technologies JavaScript part one IMCNE A.A. 2008/09 Gabriele Cecchetti Why introduce JavaScript To add dynamicity and interactivity to HTML pages 2 What s a script It s a little interpreted
More informationEXERCISE: Introduction to client side JavaScript
EXERCISE: Introduction to client side JavaScript Barend Köbben Version 1.3 March 23, 2015 Contents 1 Dynamic HTML and scripting 3 2 The scripting language JavaScript 3 3 Using Javascript in a web page
More informationCS 110 Exam 2 Spring 2011
CS 110 Exam 2 Spring 2011 Name (print): Integrity: By taking this exam, you pledge that this is your work and you have neither given nor received inappropriate help during the taking of this exam in compliance
More informationCSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I
CSCI 1100L: Topics in Computing Lab Lab 1: Introduction to the Lab! Part I Welcome to your CSCI-1100 Lab! In the fine tradition of the CSCI-1100 course, we ll start off the lab with the classic bad joke
More informationLab 7: OCaml 12:00 PM, Oct 22, 2017
CS17 Integrated Introduction to Computer Science Hughes Lab 7: OCaml 12:00 PM, Oct 22, 2017 Contents 1 Getting Started in OCaml 1 2 Pervasives Library 2 3 OCaml Basics 3 3.1 OCaml Types........................................
More information**Method 3** By attaching a style sheet to your web page, and then placing all your styles in that new style sheet.
CSS Tutorial Part 1: Introduction: CSS adds style to tags in your html page. With HTML you told the browser what things were (e.g., this is a paragraph). Now you are telling the browser how things look
More informationSoundburst has been a music provider for Jazzercise since Our site is tailored just for Jazzercise instructors. We keep two years of full
Soundburst has been a music provider for Jazzercise since 2001. Our site is tailored just for Jazzercise instructors. We keep two years of full R-sets and at least four years of individual tracks on our
More informationvar num1 = prompt("enter a number between 1 and 12","1"); var promptstring = "What is " + num1 + " times 3?"; var num2 = prompt(promptstring);
JavaScript Week 2: Last week we learned about the document, which is your html page, and document.write, which is one way in which javascript allows you to write html code to your web page. We also learned
More informationWeb Design Competition File Upload Tutorial
Web Design Competition File Upload Tutorial Designed for use by the Michigan Council of Women in Technology Copyright 2016 Patricia Howard All Rights Reserved Welcome. We ll start with a quick overview
More informationENCM 339 Fall 2017: Editing and Running Programs in the Lab
page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a
More informationWeb Programming/Scripting: JavaScript
CS 312 Internet Concepts Web Programming/Scripting: JavaScript Dr. Michele Weigle Department of Computer Science Old Dominion University mweigle@cs.odu.edu http://www.cs.odu.edu/~mweigle/cs312-f11/ 1 Outline!
More informationHomework #1: SSH. Step 1: From the start button (lower left hand corner) type Secure. Then click on the Secure Shell File Transfer Client.
Homework #1: SSH Due WEEK 3 at the BEGINNING of lab CSE 3, Spring 2018 A. The program Some students had trouble using this program in the past. It isn t too bad if you just take a few minutes to read and
More informationCSCU9B2 Practical 1: Introduction to HTML 5
CSCU9B2 Practical 1: Introduction to HTML 5 Aim: To learn the basics of creating web pages with HTML5. Please register your practical attendance: Go to the GROUPS\CSCU9B2 folder in your Computer folder
More informationJS Tutorial 3: InnerHTML Note: this part is in last week s tutorial as well, but will be included in this week s lab
JS Tutorial 3: InnerHTML Note: this part is in last week s tutorial as well, but will be included in this week s lab What if we want to change the text of a paragraph or header on a page? You can use:
More informationVIMS Individual Users Guide. How to access your VIMS site, login and use all the features!
VIMS Individual Users Guide www.myvims.com How to access your VIMS site, login and use all the features! Left Click Your Mouse to Advance Slides, Right click to back up one or press ESC to exit presentation.
More informationBasics of Adobe Premiere
Basics of Adobe Premiere Getting started: The first thing you ll see when you open Adobe Premiere is a window asking to open a project or start a new one. Let s start a new one. (Images from CS6 version,
More informationLab 8 CSE 3,Fall 2017
Lab 8 CSE 3,Fall 2017 In this lab we are going to take what we have learned about both HTML and JavaScript and use it to create an attractive interactive page. Today we will create a web page that lets
More information