Introduction to Programming the WWW I

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

The Web Wizards Guide To JavaScript Chapter 1 JavaScript Basics.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
JavaScript Objects - DOM CST 200 JavaScript. Objectives Introduce JavaScript objects Introduce Document Object Model Introduce window object Introduce.
Tutorial 13 Working with Objects and Styles. XP Objectives Learn about objects and the document object model Reference documents objects by ID, name,
CSC 2720 Building Web Applications JavaScript. Introduction  JavaScript is a scripting language most often used for client-side web development.  JavaScript.
Introduction to JavaScript. Aim To enable you to write you first JavaScript.
DHTML - Introduction Introduction to DHTML, the DOM, JS review.
DHTML. What is DHTML?  DHTML is the combination of several built-in browser features in fourth generation browsers that enable a web page to be more.
INTRODUCTION TO DHTML. TOPICS TO BE DISCUSSED……….  Introduction Introduction  UsesUses  ComponentsComponents  Difference between HTML and DHTMLDifference.
HTML Forms and Scripts. Session overview What are forms? Static vs dynamic Client-side scripts –JavaScript.
Advanced Web Design Scripting Tutorial Chapters. Scripting Intro The scripting part of the forthcoming Advanced Web Design textbook introduces you to.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
SEG3210 DHTML Tutorial. DHTML DHTML is a combination of technologies used to create dynamic and interactive Web sites. –HTML - For creating text and image.
Lab 3: Language Structures User Interface Lab: GUI Lab Sep. 9 th, 2014.
Creating an Animated Web Page
Working with Objects Creating a Dynamic Web Page.
CITS1231 Web Technologies JavaScript and Document Object Model.
XP Tutorial 4 New Perspectives on JavaScript, Comprehensive1 Working with Objects Creating an Animated Web Page.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Javascript. Outline Introduction Fundamental of JavaScript Javascript events management DOM and Dynamic HTML (DHTML)
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
An Introduction to JavaScript Summarized from Chapter 6 of “Web Programming: Building Internet Applications”, 3 rd Edition.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
XP Tutorial 12 New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with Special Effects Creating Rollovers, Menus, Filters, and Transitions.
DHTML - Introduction Chapter Introduction to DHTML, the DOM, JS review.
Interactive Client-Side Technologies MMIS 656 Web Design Technologies Acknowledgements: Estrella, S. (2003). The Web Wizard’s Guide to DHTML and CSS.
DHTML: Working with Objects Creating a Dynamic Web Page.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 7.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 13 - Dynamic HTML: Object Model and Collections Outline 13.1 Introduction 13.2 Object Referencing.
Javascript. What is JavaScript? Scripting (interpreted) language designed for the web Beware: JavaScript is case sensitive.
44238: Dynamic Web-site Development Client Side Programming Ian Perry Room:C48 Extension:7287
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 10.
CSC318 – DYNAMIC WEB APPLICATION DEVELOPMENT BY: SITI NURBAYA ISMAIL FACULTY of COMPUTER and MATHEMATICAL SCIENCES.
TOPIC II Dynamic HTML Prepared by: Nimcan Cabd Cali.
JavaScript Introduction. Slide 2 Lecture Overview JavaScript background The purpose of JavaScript A first JavaScript example Introduction to getElementById.
Java Script About Java Script Document Object Model Incorporating JavaScript Adding JavaScript to HTML Embedding a Javascript External Scripts Javascript.
JavaScript Overview Developer Essentials How to Code Language Constructs The DOM concept- API, (use W3C model) Objects –properties Methods Events Applications;
INTRODUCTION JavaScript can make websites more interactive, interesting, and user-friendly.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 9.
JavaScript & Introduction to AJAX
Introduction to JavaScript LIS390W1A Web Technologies and Techniques 24 Oct M. Cameron Jones.
Chapter 10 Dynamic HTML (DHTML) JavaScript, Third Edition.
Javascript Basic Concepts Presentation By: Er. Sunny Chanday Lecturer CSE/IT RBIENT.
The Web Wizard’s Guide To DHTML and CSS Chapter 2 A Review of CSS2 and JavaScript.
Chapter 13: DHTML: Object Model and Collections CIS 275—Web Application Development for Business I.
Introduction to JavaScript MIS 3502, Fall 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 9/29/2016.
DHTML.
Build in Objects In JavaScript, almost "everything" is an object.
Project 1 Introduction to HTML.
Programming Web Pages with JavaScript
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Chapter 6 JavaScript: Introduction to Scripting
Chapter 1 Introduction to HTML.
JavaScript is a programming language designed for Web pages.
Project 1 Introduction to HTML.
Section 17.1 Section 17.2 Add an audio file using HTML
Exploring JavaScript Ch 14
Introduction to JavaScript
JavaScript.
JavaScript Introduction
The Web Wizard’s Guide To JavaScript
Chapter 13 - Dynamic HTML: Object Model and Collections
Introduction to Programming the WWW I
Introduction to DHTML, the DOM, JS review
JavaScript Basics What is JavaScript?
Introduction to JavaScript
Web Programming and Design
Web Programming and Design
Presentation transcript:

Introduction to Programming the WWW I CMSC 10100-1 Winter 2003 Lecture 9

Javascript Scripting language Started in 1995 - Netscape 2.0 Interpreted by browser Interacts with Web pages Started in 1995 - Netscape 2.0 Microsoft followed suit Long wranglings over standardizing it across browsers

What’s an object? Properties (have values) Abilities (methods) can be accessed, set, etc Abilities (methods) Everything in the Web page is modelled by an “object”

Some sample Javascript See examples from Chapter 1 of JS Events: respond to user action Send messages, get input form user

More Javascript Variables: like “x” in algebra -- a name that stands for some other value var myColor = “pink”; window.document.bgColor = myColor;

Arrays An array is a collection of variables in some particular order: var mycolors = new Array(); mycolors[0] = “red”; mycolors[1] = “pink”; mycolors[2] = “blue”;

Methods Dogs bark, cats pur, cars slow down document.write(“Hello world!”) Lots of predefined methods for manipulating Web pages, we’ll also learn how to define our own

Assignment & Comparison You can change the values of variables: mynumber = 42; mynumber += 37; mynumber -= 28;

Comparison 39 == 30 + 9; // True 39 >= 39; // True 2 != 2 // False

Functions You can write functions to perform specific tasks where the input might be different: Listing 1.3 in JS book

The DOM A hierarchical model to represent the objects created by a Web browser document.getElementById();

DHTML DHTML (Dynamic HTML) Style sheets for color, layout, positioning Javascript to update these things Every object has a “style” property Requires learning some about programming and a lot about Web pages Example: Hot air balloon

What’s on the horizon: Dynamically modifying page content/appearance rollovers style changes Dynamic visibility sliding, drop down menus text popups