SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.

Slides:



Advertisements
Similar presentations
Computer and Communication Fundamental Basic web programming Lecture 8 Rina Zviel-Girshin.
Advertisements

Lesson 12- Unit L Programming Web Pages with JavaScript.
The Web Warrior Guide to Web Design Technologies
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
JavaScript- Introduction. What it is and what it does? What it is? It is NOT Java It is NOT Server-side programming Users can see code It is a client-side.
Tutorial 6 Working with Web Forms
Web Page Development Identify elements of a Web Page Start Notepad
Web Page Behavior IS 373—Web Standards Todd Will.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements.
Lesson 8 Creating Forms with JavaScript
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
JavaScript & jQuery the missing manual Chapter 11
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
Event-driven Programming
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
DHTML: Dynamic HTML Internet Technology1. What is DHTML? A collection of enhancements to HTML ► To create dynamic and interactive websites Combination.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
CO1552 Web Application Development HTML Forms, Events and an introduction to JavaScript.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements  Always name.
JavaScript - A Web Script Language Fred Durao
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
1 JavaScript
Web Development 101 Presented by John Valance
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
XP Tutorial 8 Adding Interactivity with ActionScript.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
Forms Collecting Data CSS Class 5. Forms Create a form Add text box Add labels Add check boxes and radio buttons Build a drop-down list Group drop-down.
1 CSC160 Chapter 7: Events and Event Handlers. 2 Outline Event and event handlers onClick event handler onMouseOver event handler onMouseOut event handler.
HTML Overview Part 5 – JavaScript 1. Scripts 2  Scripts are used to add dynamic content to a web page.  Scripts consist of a list of commands that execute.
JavaScript Challenges Answers for challenges
Event Handling. Objectives Using event handlers Simulating events Using event-related methods.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Web Authoring with Dreamweaver. Unit Objectives  Be able to define keywords: HTML, HTTP (protocol), browser, web server, client/server, tag, attribute,
INTRODUCTION JavaScript can make websites more interactive, interesting, and user-friendly.
USING JAVASCRIPT TO SHOW AN ALERT Web Design Sec 6-2 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
Review of HTML and CSS A (very) brief review of some key fundamentals to be aware of in IT-238.
JavaScript Functions. CSS Inheritance Which formatting applies? x y z input { display: block; } input.pref { background:red; } If you have a selector.
SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
CSC 121 Computers and Scientific Thinking Fall Event-Driven Programming.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
JavaScript JavaScript is a programming language that web browsers understand. You can use it to make your web pages interactive by: Responding to user.
HTML Elements: Forms and Controls Chapter 9 B. Ramamurthy.
Web Programming Java Script-Introduction. What is Javascript? JavaScript is a scripting language using for the Web. JavaScript is a programming language.
Client-side (JavaScript) Validation. Associating a function with a click event – Part 1 Use the input tag’s onclick attribute to associate a function.
Advanced HTML Tags:.
Introduction to.
Human Computer Interaction
JavaScript.
JavaScript functions.
Section 17.1 Section 17.2 Add an audio file using HTML
JavaScript Forms Adding User Input.
DHTML Javascript Internet Technology.
WEB PROGRAMMING JavaScript.
DHTML Javascript Internet Technology.
JavaScript Forms Adding User Input.
Functions, Regular expressions and Events
Events: Changed and Input
Presentation transcript:

SERVER web page repository WEB PAGE instructions stores information and instructions BROWSER retrieves web page and follows instructions Server Web Server Pages Client Browser 1 3 2

 Two places you can change › Browser: JavaScript › Server: php  General rule: › do it in the browser if you can  Why? › Distribute the work › Consider the difference in the time function… Server Web Server Pages Client Browser 1 3 2

HTML Content CSS Presentation JavaScript Behavior

 Simple programming tool  Functions › react to events › read and write HTML elements › dynamic text › compute functions › change pictures  w3schools, codecademy w3schoolscodecademy

 Set of ORDERED instructions  Recipe  Difference between 1. Melt butter 2. Add flour  And 1. Add flour 2. Melt butter

 JavaScript: series of statements  Each statement = instruction step  Always ends with a ;  Consists of › actions › information to act on

 All begin with =  Actions › Operators › Functions  Information › cells › literals (numbers, strings)

 Our first JavaScript statement  Puts up a box that user MUST clear  Can experiment on jsfiddlejsfiddle  Format alert (string);  String › Literal: simply put it in quotation marks  Can use ‘ or “ but must match › Can build up (concatenate) with +

 Different actions on different types of data  Can’t do math on strings  CAN print numbers  Don’t be fooled by that +: does NOT mean add  Strings › Note that “a b “ and ”a b” are DIFFERENT › Inside literals, blanks are significant

1. String 2. Number 3. String and number 4. Added numbers 5. String and added numbers

 Invoke JavaScript and something changes  Invocation occurs when an EVENT happens  Events occur when › User input from mouse or keyboard  Mouse movement  Mouse click  Key presses › HTML elements change (e.g., page loaded)  Simplest event: mouse click ONCLICK

 Attribute that can be added to most any HTML element  Takes a single JavaScript statement.

 Jsfiddle  Web page

  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements

 HTML tag › Defines what its intent is  Default formatting creates a button  Attribute type › button: general purpose › reset: clear all fields in the form  and can use onclick › Note the benefit of ‘ here!

 Very similar to how you format navigation links  Can use hover pseudo-element  Can use img for background

 Jsfiddle  Web page

 But we’d also like to let users give us information  Request input  Lots of types  Use name to identify the element

 Nice new option  Drop-down list  Supports autocomplete  Supported on most browsers › NOT Safari

Use tags that define the meaning

 In JavaScript form-name.field-name.value  Note that the first 2 parts of this are just normal selector notation (like you use in css)  The.value is to be used exactly and says to use that tag’s value  (Note this is only the first and simplest way to access information)  Can set initial value (default, hint)

 Text input › Jsfiddle › Web page  Numeric input › Jsfiddle › Web page