Learning JavaScript. A C P K Siriwardhana, BSc, MSc

Size: px
Start display at page:

Download "Learning JavaScript. A C P K Siriwardhana, BSc, MSc"

Transcription

1 Learning JavaScript A C P K Siriwardhana, BSc, MSc

2 Condition Statements If statements loop statements switch statement

3 IF THEN ELSE If something is true, take a specified action. If false, take some other action (including doing nothing). INCREMENT (DECREMENT) A special type of assignment statement, such as x=x+1. INITIALIZE A special kind of assignment statement used to set initial values in a program. LOOP (conditions) END LOOP Execute instructions repeatedly until (or as long as) certain conditions are met.

4 if (condition) code to be executed if condition is true

5 <html><head><title>my Page</title></head> <script type="text/javascript"> var d = new Date() var time = d.gethours() if (time < 12) document.write("<b>good morning</b>") </script> <p>this example demonstrates the If statement.</p> <p>if the time on your browser is less than 12,you will get a "Good morning" greeting.</p> </body> </html>

6 if (condition) code to be executed if condition is true Else code to be executed if condition is false

7 <html><head><title>my Page</title></head> <body> <script type="text/javascript"> var d = new Date() var time = d.gethours() if (time < 12) document.write("<b>good Morning</b>") else document.write("<b>good Day</b>") </script> <p>this example demonstrates the If...Else statement.</p> <p>if the time on your browser is less than 12,you will get a "Good Morning" greeting. Otherwise you will get a "Good Day" greeting.</p> </body> </html>

8 <html><head><title>my Page</title> <script type="text/javascript"> function ifclosed() document.write("mywindow has been closed!"); function ifnotclosed()document.write("mywindow has not been closed!"); function checkwin() if (mywindow.closed) ifclosed(); else ifnotclosed(); </script> </head> <body> <script type="text/javascript"> mywindow = window.open('','','width=200,height=100'); mywindow.document.write("this is 'mywindow'"); </script> <input type="button" value="has 'mywindow' been closed?" onclick="checkwin()" /> </body> </html>

9 if (condition1) code to be executed if condition1 is true Else if (condition2) code to be executed if condition2 is true Else code to be executed if all condition are false

10 <html><head><title>my Page</title> <script language="javascript"> function FindGrade() var valmarks = parseint(document.getelementbyid("marks").value); if (valmarks>70) gradevalue = "A"????????????????????????????????? document.getelementbyid("grade").value = gradevalue; </script> </head> <body> <form> <input type="text" name="marks" id="marks" value = " " > <input type="button" value="sub" onclick=" FindGrade();"> <input type="text" name=" grade " id="grade" value = " " > </form> </body> </html>

11 <html><head><title>my Page</title> <script language="javascript"> function FindGrade() var valmarks = parseint(document.getelementbyid("marks").value); if (valmarks>70) gradevalue = "A" else if(valmarks>60) gradevalue = "B" else if(valmarks>50) gradevalue = "C" else if(valmarks>40) gradevalue = "D" else if(valmarks>30) gradevalue = "E" else gradevalue = "F" document.getelementbyid("grade").value = gradevalue; </script> </head> <body> <form> <input type="text" name="marks" id="marks" value = " " > <input type="button" value="sub" onclick=" FindGrade();"> <input type="text" name=" grade " id="grade" value = " " > </form> </body> </html>

12 JavaScript comparators There are several operators used for making comparisons between variables The main arithmetic comparators are: == equal < less than <= less than or equal to > greater than >= greater than or equal to!= not equal to

13 JavaScript Logic When making comparison you can also use logic functions &&! and or (that s two pipes ; shift backslash) not Eg: if (age > 18 && age < 60) status = Adults ; else status = Young or very old ;

14 JavaScript Logic <html><head><title>my Page</title> <script type="text/javascript"> function Findage() var age = parseint(document.getelementbyid("myage").value); if (age > 18 && age < 60) document.write("<b> Adults!</b>"); else document.write("<b> Young or very old!</b>"); </script> </head> <body><form> <input type="text" name="myage" id="myage" value = " " > <input type="button" value="sub" onclick=" Findage();"> </form> </body> </html>

15 <html><head><title>my Page</title></head> <body> <script type="text/javascript"> var now = new Date(); var hour = now.gethours(); if (hour > 5 && hour <= 12) document.write("<b>good Morning!</b>"); else if (hour > 12 && hour <= 17) document.write("<b>good Afternoon!</b>"); else document.write("<b>good Evening!</b>"); </script> </body> </html>

16 JavaScript Form Validation <html><head><title>my Page</title> <script type="text/javascript"> function validateform() if(document.getelementbyid("username").value == '') alert('please enter Username'); document.getelementbyid("username").focus(); return(false); if(document.getelementbyid("password").value == '') alert('please enter Password'); document.getelementbyid("password").focus(); return(false); return(true); </script> <body>

17 JavaScript Form Validation <body> <form action="" onsubmit="return validateform()"> <table width="400" border="0" cellspacing="0" cellpadding="0"> <tr> <td>user Name</td> <td> <input name="username" type="text" id="username" class="" > </td> </tr> <tr> <td>password</td> <td> <input name="password" type="text" id="password" class="" > </td> </tr> <tr> <td> </td> <td> <input type="submit" name="sub" value="submit " id="sub" > </td> </tr> </table> </form> </body> </html>

18 The JavaScript Switch Statement Use the switch statement to select one of many blocks of code to be executed. <html><head><title>my Page</title></head> <body> <script type="text/javascript"> var d=new Date(); var theday=d.getday(); switch (theday) case 4: document.write("<b> Thursday </b>"); break; case 6: document.write("<b>super Saturday</b>"); break; case 0: document.write("<b>sleepy Sunday</b>"); break; default: document.write("<b>i'm really looking forward to this weekend!</b>"); </script> <p>this JavaScript will generate a different greeting based on what day it is. Note that Sunday=0, Monday=1, Tuesday=2, etc.</p> </body></html>

JavaScript s role on the Web

JavaScript s role on the Web Chris Panayiotou JavaScript s role on the Web JavaScript Programming Language Developed by Netscape for use in Navigator Web Browsers Purpose make web pages (documents) more dynamic and interactive Change

More information

What is Java Script? Writing to The HTML Document. What Can JavaScript do? CMPT 165: Java Script

What is Java Script? Writing to The HTML Document. What Can JavaScript do? CMPT 165: Java Script What is Java Script? CMPT 165: Java Script Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University November 7, 2011 JavaScript was designed to add interactivity to HTML pages

More information

<form>. input elements. </form>

<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 information

Just add an HTML comment tag <!-- before the first JavaScript statement, and an end-of comment tag --> after the last JavaScript statement, like this:

Just add an HTML comment tag <!-- before the first JavaScript statement, and an end-of comment tag --> after the last JavaScript statement, like this: JavaScript Basic JavaScript How To and Where To JavaScript Statements and Comments JavaScript Variables JavaScript Operators JavaScript Comparisons JavaScript If Else JavaScript Loops JavaScript Flow Control

More information

Introduction to JavaScript

Introduction to JavaScript 127 Lesson 14 Introduction to JavaScript Aim Objectives : To provide an introduction about JavaScript : To give an idea about, What is JavaScript? How to create a simple JavaScript? More about Java Script

More information

c360 Web Connect Configuration Guide Microsoft Dynamics CRM 2011 compatible c360 Solutions, Inc. c360 Solutions

c360 Web Connect Configuration Guide Microsoft Dynamics CRM 2011 compatible c360 Solutions, Inc.   c360 Solutions c360 Web Connect Configuration Guide Microsoft Dynamics CRM 2011 compatible c360 Solutions, Inc. www.c360.com c360 Solutions Contents Overview... 3 Web Connect Configuration... 4 Implementing Web Connect...

More information

blink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/

blink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/ blink.html 1/1 3: blink.html 5: David J. Malan Computer Science E-75 7: Harvard Extension School 8: 9: --> 11:

More information

JavaScript Introduction

JavaScript Introduction JavaScript 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. What is JavaScript?

More information

New Media Production Lecture 7 Javascript

New Media Production Lecture 7 Javascript New Media Production Lecture 7 Javascript Javascript Javascript and Java have almost nothing in common. Netscape developed a scripting language called LiveScript. When Sun developed Java, and wanted Netscape

More information

Controlled 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. 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 information

COM1004 Web and Internet Technology

COM1004 Web and Internet Technology COM1004 Web and Internet Technology When a user submits a web form, how do we save the information to a database? How do we retrieve that data later? ID NAME EMAIL MESSAGE TIMESTAMP 1 Mike mike@dcs Hi

More information

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL Chapter4: HTML Table and Script page, HTML5 new forms Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL Objective To know HTML5 creating a new style form. To understand HTML table benefits

More information

Technical Guide Login Page Customization

Technical Guide Login Page Customization Released: 2017-11-15 Doc Rev No: R2 Copyright Notification Edgecore Networks Corporation Copyright 2019 Edgecore Networks Corporation. The information contained herein is subject to change without notice.

More information

Enterprise Knowledge Platform Adding the Login Form to Any Web Page

Enterprise Knowledge Platform Adding the Login Form to Any Web Page Enterprise Knowledge Platform Adding the Login Form to Any Web Page EKP Adding the Login Form to Any Web Page 21JAN03 2 Table of Contents 1. Introduction...4 Overview... 4 Requirements... 4 2. A Simple

More information

Dynamic Form Processing Tool Version 5.0 November 2014

Dynamic Form Processing Tool Version 5.0 November 2014 Dynamic Form Processing Tool Version 5.0 November 2014 Need more help, watch the video! Interlogic Graphics & Marketing (719) 884-1137 This tool allows an ICWS administrator to create forms that will be

More information

Exercise 1: Basic HTML and JavaScript

Exercise 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 information

Web Programming/Scripting: JavaScript

Web 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 information

HTML Forms IT WS I - Lecture 11

HTML Forms IT WS I - Lecture 11 HTML Forms IT WS I - Lecture 11 Saurabh Barjatiya International Institute Of Information Technology, Hyderabad 04 October, 2009 Contents Seeing submitted values 1 Seeing submitted values 2 3 Seeing submitted

More information

By: JavaScript tutorial-a simple calculator

By:  JavaScript tutorial-a simple calculator JavaScript tutorial-a simple calculator In this small sample project, you will learn to create a simple JavaScript calculator. This calculator has only one text box and sixteen buttons. The text box allows

More information

JavaScript CSCI 201 Principles of Software Development

JavaScript CSCI 201 Principles of Software Development JavaScript CSCI 201 Principles of Software Development Jeffrey Miller, Ph.D. jeffrey.miller@usc.edu Outline JavaScript Program USC CSCI 201L JavaScript JavaScript is a front-end interpreted language that

More information

CITS1231 Web Technologies. JavaScript

CITS1231 Web Technologies. JavaScript CITS1231 Web Technologies JavaScript Contents Introduction to JavaScript Variables Operators Conditional Statements Program Loops Popup Boxes Functions 2 User Interaction User interaction requires web

More information

1/22/2017. Chapter 2. Functions and Control Structures. Calling Functions. Objectives. Defining Functions (continued) Defining Functions

1/22/2017. Chapter 2. Functions and Control Structures. Calling Functions. Objectives. Defining Functions (continued) Defining Functions Chapter 2 Functions and Control Structures PHP Programming with MySQL 2 nd Edition Objectives In this chapter, you will: Study how to use functions to organize your PHP code Learn about variable scope

More information

Session 16. JavaScript Part 1. Reading

Session 16. JavaScript Part 1. Reading Session 16 JavaScript Part 1 1 Reading Reading Wikipedia en.wikipedia.org/wiki/javascript / p W3C www.w3.org/tr/rec-html40/interact/scripts.html Web Developers Notes www.webdevelopersnotes.com/tutorials/javascript/

More information

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010 Lecture 22 Javascript Announcements Homework#7 now due 11/24 at noon Reminder: beginning with Homework #7, Javascript assignments must be submitted using a format described in an attachment to HW#7 I will

More information

Q1. What is JavaScript?

Q1. 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 information

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010

Javascript. UNIVERSITY OF MASSACHUSETTS AMHERST CMPSCI 120 Fall 2010 Lecture 21 Javascript Announcements Reminder: beginning with Homework #7, Javascript assignments must be submitted using a format described in an attachment to HW#7 3rd Exam date set for 12/14 in Goessmann

More information

Syllabus - July to Sept

Syllabus - July to Sept Class IX Sub: Computer Syllabus - July to Sept What is www: The World Wide Web (www, W3) is an information space where documents and other web resources are identified by URIs, interlinked by hypertext

More information

Programming Language. Control Structures: Selection (switch) Eng. Anis Nazer First Semester

Programming Language. Control Structures: Selection (switch) Eng. Anis Nazer First Semester Programming Language Control Structures: Selection (switch) Eng. Anis Nazer First Semester 2018-2019 Multiple selection choose one of two things if/else choose one from many things multiple selection using

More information

function makeline(length, ch){ var str = ""; if (length >= 3)

function makeline(length, ch){ var str = ; if (length >= 3) ITEC 136 Business Programming Concepts Week 06, Part 01 Overview 1 Week 6 Overview Week 5 review Exam 1 (no new material) 2 Outcomes Week 6 Overview Sketch the solution to a problem requiring iteration.

More information

Javascript Lecture 23

Javascript 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 information

Chapter 8. Programming the Web. For the book Mapping in the Cloud Guilford Press Michael P. Peterson

Chapter 8. Programming the Web. For the book Mapping in the Cloud Guilford Press Michael P. Peterson Chapter 8 Programming the Web For the book Mapping in the Cloud Guilford Press Michael P. Peterson Javascript in Body Code Result This is a normal HTML document.

More information

Wed 02 Nov :01:06 AM EST modpow.html

Wed 02 Nov :01:06 AM EST modpow.html Wed 02 Nov 2005 02:01:06 AM EST modpow.html

More information

Consider the following file A_Q1.html.

Consider the following file A_Q1.html. Consider the following file A_Q1.html. 1 2 3 Q1A 4 5 6 7 function check () { 8 } 9 10 11

More information

Relational & Logical Operators, if and switch Statements

Relational & Logical Operators, if and switch Statements 1 Relational & Logical Operators, if and switch Statements Topics Relational Operators and Expressions The if Statement The if- Statement Nesting of if- Statements switch Logical Operators and Expressions

More information

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data"

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data CS 418/518 Web Programming Spring 2014 HTML Tables and Forms Dr. Michele Weigle http://www.cs.odu.edu/~mweigle/cs418-s14/ Outline! Assigned Reading! Chapter 4 "Using Tables to Display Data"! Chapter 5

More information

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI INDEX No. Title Pag e No. 1 Implements Basic HTML Tags 3 2 Implementation Of Table Tag 4 3 Implementation Of FRAMES 5 4 Design A FORM

More information

CGS 3066: Spring 2015 JavaScript Reference

CGS 3066: Spring 2015 JavaScript Reference CGS 3066: Spring 2015 JavaScript Reference Can also be used as a study guide. Only covers topics discussed in class. 1 Introduction JavaScript is a scripting language produced by Netscape for use within

More information

1.2 * allow custom user list to be passed in * publish changes to a channel

1.2 * allow custom user list to be passed in * publish changes to a channel ToDoList /*** USAGE: ToDoList() Embed a TODO-list into a page. The TODO list allows users to cre Items that are due are highlighted in yellow, items passed due ar list can be added to any page. The information

More information

Client-side Processing

Client-side Processing Client-side Processing 1 Examples: Client side processing 1. HTML 2. Plug-ins 3. Scrips (e.g. JavaScript, VBScript, etc) 4. Applet 5. Cookies Other types of client-side processing 1. Cascading style sheets

More information

ToDoList. 1.2 * allow custom user list to be passed in * publish changes to a channel ***/

ToDoList. 1.2 * allow custom user list to be passed in * publish changes to a channel ***/ /*** USAGE: ToDoList() Embed a TODO-list into a page. The TODO list allows users to create new items, assign them to other users, and set deadlines. Items that are due are highlighted in yellow, items

More information

DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering. Algorithm lab- PCS-553 LAB MANUAL

DEV BHOOMI INSTITUTE OF TECHNOLOGY Department of Computer Science and Engineering. Algorithm lab- PCS-553 LAB MANUAL Department of Computer Science and Engineering Year: 3rd Semester: 5th Algorithm lab- PCS-553 Prepared By: HOD(CSE) 1 Department of Computer Science and Engineering INDEX S.No Practical s Name Tools Remark

More information

SmileTiger emeeting Server 2008 Integration Guide

SmileTiger emeeting Server 2008 Integration Guide SmileTiger emeeting Server 2008 Integration Guide SmileTiger Software Corporation 11615 Sir Francis Drake Drive Charlotte, NC 28277 USA Tel: + 1 704 321 9068 Fax: +1 704 321 5129 http://www.smiletiger.com

More information

Control Flow. INFO/CSE 100, Spring 2006 Fluency in Information Technology.

Control Flow. INFO/CSE 100, Spring 2006 Fluency in Information Technology. Control Flow INFO/CSE 100, Spring 2006 Fluency in Information Technology http://www.cs.washington.edu/100 1 Reading Readings and References» Fluency with Information Technology Chapter 21, Iteration Principles

More information

Lab 7 Introduction to MySQL

Lab 7 Introduction to MySQL Lab 7 Introduction to MySQL Objectives: During this lab session, you will - Learn how to access the MySQL Server - Get hand-on experience on data manipulation and some PHP-to-MySQL technique that is often

More information

CSC 337. JavaScript Object Notation (JSON) Rick Mercer

CSC 337. JavaScript Object Notation (JSON) Rick Mercer CSC 337 JavaScript Object Notation (JSON) Rick Mercer Why JSON over XML? JSON was built to know JS JSON JavaScript Object Notation Data-interchange format Lightweight Replacement for XML It's just a string

More information

By 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: 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 information

5. An Introduction to JavaScript

5. An Introduction to JavaScript Web Technologies 1 5. An Introduction to JavaScript 1. What is DHTML? Dynamic HTML, or DHTML, is an umbrella term for a collection of technologies used together to create interactive and animated web sites

More information

Assessment: Course Four Column SPRING / SUMMER 2016

Assessment: Course Four Column SPRING / SUMMER 2016 Assessment: Course Four Column SPRING / SUMMER 2016 El Camino: Course SLOs (MATH) - Computer Sciences ECC: CSCI 12:Programming for Internet Applications using PHP, JavaScript, and XHTML Course SLOs SLO

More information

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013 CHAPTER 1: BASIC CONCEPTS OF WEB DESIGNING 1. What is the web? What are the three ways you can build a webpage? The World Wide Web (abbreviated as WWW or W3, commonly known as the web), is a system of

More information

Command-driven, event-driven, and web-based software

Command-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 information

Developing Ajax Applications using EWD and Python. Tutorial: Part 2

Developing Ajax Applications using EWD and Python. Tutorial: Part 2 Developing Ajax Applications using EWD and Python Tutorial: Part 2 Chapter 1: A Logon Form Introduction This second part of our tutorial on developing Ajax applications using EWD and Python will carry

More information

EXPERIMENT OBJECTIVE:

EXPERIMENT OBJECTIVE: EXPERIMENT-1 1.1 To accept a number from one text field in the range of 0 to 999 and shows it in another text field in words. If the number is out of range, it should show out of range and if it is not

More information

PHP 5 if...else...elseif Statements

PHP 5 if...else...elseif Statements PHP 5 if...else...elseif Statements Conditional statements are used to perform different actions based on different conditions. PHP Conditional Statements Very often when you write code, you want to perform

More information

Software. Programming Languages. Types of Software. Types of Languages. Types of Programming. Software does something

Software. 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 information

LAB Test 1. Rules and Regulations:-

LAB Test 1. Rules and Regulations:- LAB Test 1 Rules and Regulations:- 1. Individual Test 2. Start at 3.10 pm until 4.40 pm (1 Hour and 30 Minutes) 3. Open note test 4. Send the answer to h.a.sulaiman@ieee.org a. Subject: [LabTest] Your

More information

Unit 20 - Client Side Customisation of Web Pages. Week 4 Lesson 5 Fundamentals of Scripting

Unit 20 - Client Side Customisation of Web Pages. Week 4 Lesson 5 Fundamentals of Scripting Unit 20 - Client Side Customisation of Web Pages Week 4 Lesson 5 Fundamentals of Scripting The story so far... three methods of writing CSS: In-line Embedded }These are sometimes called External } block

More information

Introduction to JavaScript, Part 2

Introduction to JavaScript, Part 2 Introduction to JavaScript, Part 2 Luka Abrus Technology Specialist, Microsoft Croatia Interaction In the first part of this guide, you learned how to use JavaScript, how to write code and how to see if

More information

HTML forms and the dynamic web

HTML forms and the dynamic web HTML forms and the dynamic web Antonio Lioy < lioy@polito.it > english version created by Marco D. Aime < m.aime@polito.it > Politecnico di Torino Dip. Automatica e Informatica timetable.html departure

More information

5. JavaScript Basics

5. JavaScript Basics CHAPTER 5: JavaScript Basics 88 5. JavaScript Basics 5.1 An Introduction to JavaScript A Programming language for creating active user interface on Web pages JavaScript script is added in an HTML page,

More information

Functions. INFO/CSE 100, Spring 2006 Fluency in Information Technology.

Functions. 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 information

M275 - Web Development using PHP and MySQL

M275 - Web Development using PHP and MySQL Arab Open University Faculty of computer Studies M275 - Web Development using PHP and MySQL Chapter 6 Flow Control Functions in PHP Summary This is a supporting material to chapter 6. This summary will

More information

Then there are methods ; each method describes an action that can be done to (or with) the object.

Then there are methods ; each method describes an action that can be done to (or with) the object. When the browser loads a page, it stores it in an electronic form that programmers can then access through something known as an interface. The interface is a little like a predefined set of questions

More information

1. Variables, Again 2. JavaScript Operators Types 3. Iteration: the for-loop 4. Working with Strings 5. Making Decisions 6.

1. Variables, Again 2. JavaScript Operators Types 3. Iteration: the for-loop 4. Working with Strings 5. Making Decisions 6. CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB By Hassan S. Shavarani UNIT7: WORKING WITH JAVASCRIPT 1 TOPICS 1. Variables, Again 2. JavaScript Operators Types 3. Iteration: the for-loop

More information

Client vs Server Scripting

Client vs Server Scripting Client vs Server Scripting PHP is a server side scripting method. Why might server side scripting not be a good idea? What is a solution? We could try having the user download scripts that run on their

More information

Guide to Integrate. ADSelfService Plus with. Outlook Web App.

Guide to Integrate. ADSelfService Plus with. Outlook Web App. Guide to Integrate ADSelfService Plus with Outlook Web App Contents Document Summary 1 ADSelfService Plus Overview 1 ADSelfService Plus Integration with Outlook Web App 1 Steps Involved 2 Step 1: Locate

More information

Session 6. JavaScript Part 1. Reading

Session 6. JavaScript Part 1. Reading Session 6 JavaScript Part 1 Reading Reading Wikipedia en.wikipedia.org/wiki/javascript Web Developers Notes www.webdevelopersnotes.com/tutorials/javascript/ JavaScript Debugging www.w3schools.com/js/js_debugging.asp

More information

For FreeNAS 0.7 all extensions must meet the following implementation rules (i will check how to block them if they do not do that):

For FreeNAS 0.7 all extensions must meet the following implementation rules (i will check how to block them if they do not do that): Extensions must meet the following rules by votdev» Tue Jul 14, 2009 7:18 am Hi all, For FreeNAS 0.7 all extensions must meet the following implementation rules (i will check how to block them if they

More information

DC71 INTERNET APPLICATIONS DEC 2014

DC71 INTERNET APPLICATIONS DEC 2014 Q.2 a. What are the Core Attributes of XHTML elements? Id - Uniquely identifies the element in a page. All ids in a document must be distinct. Among other uses, a URL ending in #some id can lead directly

More information

INDIAN SCHOOL DARSAIT FIRST TERM EXAM- MAY 2017 MULTIMEDIA AND WEB TECHNOLOGY (067) SAMPLE PAPER Class: XI Max.Marks: 70

INDIAN SCHOOL DARSAIT FIRST TERM EXAM- MAY 2017 MULTIMEDIA AND WEB TECHNOLOGY (067) SAMPLE PAPER Class: XI Max.Marks: 70 INDIAN SCHOOL DARSAIT FIRST TERM EXAM- MAY 07 MULTIMEDIA AND WEB TECHNOLOGY (067) SAMPLE PAPER Class: XI Max.Marks: 70 Date: 6-09-07 Time: 3hr. Answer the following questions based on HTML. a) Differentiate

More information

Let's Look Back. We talked about how to create a form in HTML. Forms are one way to interact with users

Let's Look Back. We talked about how to create a form in HTML. Forms are one way to interact with users Introduction to PHP Let's Look Back We talked about how to create a form in HTML Forms are one way to interact with users Users can enter information into forms which can be used by you (programmer) We

More information

CSC 551: Web Programming. Spring 2004

CSC 551: Web Programming. Spring 2004 CSC 551: Web Programming Spring 2004 Event-driven programs and HTML form elements event-driven programs ONLOAD, ONUNLOAD HTML forms & attributes button, text box, text area selection list, radio button,

More information

Flow Control: Branches and loops

Flow Control: Branches and loops Flow Control: Branches and loops In this context flow control refers to controlling the flow of the execution of your program that is, which instructions will get carried out and in what order. In the

More information

JavaScript. Like PHP, JavaScript is a modern programming language that is derived from the syntax at C.

JavaScript. Like PHP, JavaScript is a modern programming language that is derived from the syntax at C. Like PHP, JavaScript is a modern programming language that is derived from the syntax at C. It has been around just about as long as PHP, also having been invented in 1995. JavaScript, HTML, and CSS make

More information

주소록만들기 주소록. Input 페이지 Edit 페이지 Del 페이지

주소록만들기 주소록. Input 페이지 Edit 페이지 Del 페이지 주소록프로젝트 주소록만들기 주소록 List 페이지 Input 페이지 Edit 페이지 Del 페이지 Inputpro 페이지 Editpro 페이지 Address_Input.html 주소입력페이지 td,li,input{font-size:9pt} 주소입력

More information

COPYRIGHT 2012 DROIDLA LIMITED

COPYRIGHT 2012 DROIDLA LIMITED Integrating with your Website COPYRIGHT 2012 DROIDLA LIMITED ALL RIGHTS RESERVED DROIDLA LIMITED v1.0 - NOVEMBER 2012 Contents OVERVIEW OF THE INTEGRATION PROCESS... 2 1. CREATE AN ACCOUNT... 2 2. ACCEPT

More information

Assessment - Unit 3 lessons 16-21

Assessment - Unit 3 lessons 16-21 Name(s) Period Date Assessment - Unit 3 lessons 16-21 1. Which of the following statements about strings in JavaScript is FALSE? a. Strings consist of a sequence of concatenated ASCII characters. b. Strings

More information

Final Examination Semester 1 / Year 2012

Final Examination Semester 1 / Year 2012 Final Examination Semester 1 / Year 2012 COURSE : INTERNET APPLICATION COURSE CODE : CSIS1013 TIME : 2 1/2 HOURS DEPARTMENT : COMPUTER SCIENCE LECTURER : TEE CHENG SIEW Student s ID : Batch No. : Notes

More information

Boolean Data-Type. Boolean Data Type (false, true) i.e. 3/6/2018. The type bool is also described as being an integer: bool bflag; bflag = true;

Boolean Data-Type. Boolean Data Type (false, true) i.e. 3/6/2018. The type bool is also described as being an integer: bool bflag; bflag = true; Programming in C++ If Statements If the sun is shining Choice Statements if (the sun is shining) go to the beach; True Beach False Class go to class; End If 2 1 Boolean Data Type (false, ) i.e. bool bflag;

More information

INFO / CSE 100 FINAL EXAM SOLUTIONS March 19, 2009

INFO / CSE 100 FINAL EXAM SOLUTIONS March 19, 2009 INFO / CSE 100 FINAL EXAM SOLUTIONS March 19, 2009 1. (5 points) You have a PowerPoint file on your computer called presentation.ppt. You change the filename to presentation.txt and open the file in a

More information

SCRIPTING, DATABASES, SYSTEM ARCHITECTURE

SCRIPTING, DATABASES, SYSTEM ARCHITECTURE introduction to SCRIPTING, DATABASES, SYSTEM ARCHITECTURE PHP II: while loops, for loops, functions Claus Brabrand ((( brabrand@itu.dk ))) Associate Professor, Ph.D. ((( Software and Systems ))) IT University

More information

CGI Programming. What is "CGI"?

CGI Programming. What is CGI? CGI Programming What is "CGI"? Common Gateway Interface A means of running an executable program via the Web. CGI is not a Perl-specific concept. Almost any language can produce CGI programs even C++ (gasp!!)

More information

The Web: Concepts and Technology

The Web: Concepts and Technology The Web: Concepts and Technology Web Services Feb 10 1 Eugene Agichtein CS 190: The Web: Concepts and Technology, Emory University Spring 2009 Today s Plan Javascript wrap-up: p Objects Functions Loops

More information

Internet Technologies 5-Dynamic Web. F. Ricci 2010/2011

Internet Technologies 5-Dynamic Web. F. Ricci 2010/2011 Internet Technologies 5-Dynamic Web F. Ricci 2010/2011 Content The "meanings" of dynamic Building dynamic content with Java EE (server side) HTML forms: how to send to the server the input PHP: a simpler

More information

Practice problems. 1 Draw the output for the following code. 2. Draw the output for the following code.

Practice problems. 1 Draw the output for the following code. 2. Draw the output for the following code. Practice problems. 1 Draw the output for the following code. form for Spring Retreat Jacket company Spring Retreat Jacket Order Form please fill in this form and click on

More information

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II CHAPTER 1: HTML 1. What is HTML? Define its structure. a. HTML [Hypertext Markup Language] is the main markup language for creating web pages and other information that can be displayed in a web browser.

More information

Tutorial. FlexBrowser_Tutorial.doc. FlexBrowser Tutorial 1

Tutorial. FlexBrowser_Tutorial.doc. FlexBrowser Tutorial 1 Tutorial FlexBrowser Tutorial... 3 This document... 3 FlexBrowser Introduction... 3 Implemented Symbol Pocket Browser s META Tags... 4 Scan & Navigate Tag... 4 Scanner Tag... 5 OnKey Tag... 7 Enabling

More information

HTML, CSS, JavaScript

HTML, CSS, JavaScript HTML, CSS, JavaScript Encoding Information: There s more! Bits and bytes encode the information, but that s not all Tags encode format and some structure in word processors Tags encode format and some

More information

Hyperlinks, Tables, Forms and Frameworks

Hyperlinks, Tables, Forms and Frameworks Hyperlinks, Tables, Forms and Frameworks Web Authoring and Design Benjamin Kenwright Outline Review Previous Material HTML Tables, Forms and Frameworks Summary Review/Discussion Email? Did everyone get

More information

Introduction to DHTML

Introduction to DHTML Introduction to DHTML HTML is based on thinking of a web page like a printed page: a document that is rendered once and that is static once rendered. The idea behind Dynamic HTML (DHTML), however, is to

More information

Chapter 2: Functions and Control Structures

Chapter 2: Functions and Control Structures Chapter 2: Functions and Control Structures TRUE/FALSE 1. A function definition contains the lines of code that make up a function. T PTS: 1 REF: 75 2. Functions are placed within parentheses that follow

More information

PIC 40A. Review for the Final. Copyright 2011 Jukka Virtanen UCLA 1 06/05/15

PIC 40A. Review for the Final. Copyright 2011 Jukka Virtanen UCLA 1 06/05/15 PIC 40A Review for the Final 06/05/15 Copyright 2011 Jukka Virtanen UCLA 1 Overview Final is on: Monday, June 08, 2015 11:30 AM - 2:30 PM Geology 4645 Double check on myucla.edu. 06/05/15 Copyright Jukka

More information

MULTIMEDIA AND WEB TECHNOLOGY

MULTIMEDIA AND WEB TECHNOLOGY SET-4 Series GBM Code No. 89 Roll No. Candidates must write the Code on the title page of the answer-book. Please check that this question paper contains 9 printed pages. Code number given on the right

More information

Programing for Digital Media EE1707. Lecture 3 JavaScript By: A. Mousavi and P. Broomhead SERG, School of Engineering Design, Brunel University, UK

Programing for Digital Media EE1707. Lecture 3 JavaScript By: A. Mousavi and P. Broomhead SERG, School of Engineering Design, Brunel University, UK Programing for Digital Media EE1707 Lecture 3 JavaScript By: A. Mousavi and P. Broomhead SERG, School of Engineering Design, Brunel University, UK 1 JavaScript Syntax Cont. 1. Conditional statements 2.

More information

Advanced UI Customization for Microsoft CRM

Advanced UI Customization for Microsoft CRM Advanced UI Customization for Microsoft CRM Hello Microsoft CRM Gurus! Today I would like to show you some really cute tricks how to extend the User Interface (UI) of Microsoft CRM. There are great tools

More information

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013 The Hypertext Markup Language (HTML) Part II Hamid Zarrabi-Zadeh Web Programming Fall 2013 2 Outline HTML Structures Tables Forms New HTML5 Elements Summary HTML Tables 4 Tables Tables are created with

More information

MI1004 Script programming and internet applications

MI1004 Script programming and internet applications MI1004 Script programming and internet applications Course content and details Learn > Course information > Course plan Learning goals, grades and content on a brief level Learn > Course material Study

More information

Lecture 08. Tables in HTML. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Lecture 08. Tables in HTML. Mr. Mubashir Ali Lecturer (Dept. of Computer Science) Lecture 08 Tables in HTML Mr. Mubashir Ali Lecturer (Dept. of dr.mubashirali1@gmail.com 1 Summary of the previous lecture Adding images to web page Using images as links Image map Adding audio and video

More information

Marking Scheme Multimedia and Web Technology Class: XII Session

Marking Scheme Multimedia and Web Technology Class: XII Session Q1(a) Marking Scheme Multimedia and Web Technology Class: XII Session 018-19 Shreya wants to work on a database management software. Suggest her any two examples of common database management system. 1

More information

Introduction to Computer Science (I1100) Internet. Chapter 7

Introduction to Computer Science (I1100) Internet. Chapter 7 Internet Chapter 7 606 HTML 607 HTML Hypertext Markup Language (HTML) is a language for creating web pages. A web page is made up of two parts: the head and the body. The head is the first part of a web

More information