CHAP 3. FORM API.  Forms should still be encapsulated in a element where the basic submission attributes are set.  Forms still send the values of the.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Tutorial 6 Creating a Web Form
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Ch3: Introduction to HTML5 part 2 Dr. Abdullah Almutairi ISC 340 Fall 2014.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
CHAPTER 30 THE HTML 5 FORMS PROCESSING. LEARNING OBJECTIVES What the three form elements are How to use the HTML 5 tag to specify a list of words’ form.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
Modern JavaScript Develop And Design Instructor’s Notes Chapter 2- JavaScript in Action Modern JavaScript Design And Develop Copyright © 2012 by Larry.
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Chapter 10 Form Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
CST JavaScript Validating Form Data with JavaScript.
HTML 5 Tutorial Chapter 9 Form Attributes. New Form Attributes HTML5 has several new elements and attributes for forms. New form attributes : autocomplete.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Chapter 3. Table have many uses in a HTML design but are mostly used for the organization of your web site. Tables also give vertical and horizontal structure.
IS1500: Introduction to Web Development
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML5 …web is getting sexy. What is HTML5? - It is still HTML, successor of HTML4x - It is ENRICHED HTML - It is still UNDER DEVELOPMENT - Backward Compatible.
Dr Walid M. Aly Illuminating Computer Science CCIT 4-6Sep 1.
Client-Side programming with JavaScript 3
JavaScript Form Validation
4-Sep-15 HTML Forms Mrs. Goins Web Design Class. Parts of a Web Form A Form is an area that can contain Form Control/Elements. Each piece of information.
Building the User Interface by Using HTML5: Organization, Input, and Validation Lesson 3.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Neal Stublen Improvements  New form elements  Assist with validation  Consistency across sites  Changes reduce the need for common.
© 2004 – 2014 Web Site Optimizers, LLC 1 HTML5 Forms Make Life Easy For Your Mobile Users Tom Bowen President Web Site
Tables and Forms HTML5 Tables and Forms. Table Overview table element ( ) Attributes: align (left, right, center), bgcolor, border, cellpadding, cellspacing,
Using Client-Side Scripts to Enhance Web Applications 1.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
HTML Forms.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Dreamweaver MX. 2 Overview of Templates n Forms enable you to collect data from ______. n A form contains ________ such as text fields, radio buttons,
  Just another way to collect pieces together (like div, section)  Anything can be in there  Formatting just like all other elements  Always name.
XHTML & Forms. PHP and the WWW PHP and HTML forms – Forms are the main way users can interact with your PHP scrip Typical usage of the form tag in HTML.
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.
Internet & World Wide Web How to Program, 5/e. Copyright © Pearson, Inc All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
Copyright © Terry Felke-Morris HTML5: TEXT BOX Accepts text information in address format Common Attributes: ◦ type=“ ” ◦ name ◦ id ◦
Web Technologies Lecture 3 Web forms. HTML5 forms A component of a webpage that has form controls – Text fields – Buttons – Checkboxes – Range controls.
HTML Forms Forms, Controls, Fields, Inputs, Submission, Validation SoftUni Team Technical Trainers Software University
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Website Forms / Data Acquisition.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
HTML5 Forms Forms are used to capture user input …
1 State and Session Management HTTP is a stateless protocol – it has no memory of prior connections and cannot distinguish one request from another. The.
HTML 5 Form elements Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
03 – HTML (2) Informatics Department Parahyangan Catholic University.
1 Web Engineering Forms Lecture 05. FORMS Its how HTML does interactivity. There are quite new feature in HTML5. But the fundamental idea does not change.
Tutorial 6 Creating a Web Form
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.
Lesson 5 Introduction to HTML Forms. Lesson 5 Forms A form is an area that can contain form elements. Form elements are elements that allow the user to.
Unit 4 Working with data. Form Element HTML forms are used to pass data to a server. A form can contain input elements like text fields, checkboxes, radio-buttons,
Ashima Wadhwa Java Script And Forms. Introduction Forms: –One of the most common Web page elements used with JavaScript –Typical forms you may encounter.
Chapter 5 Validating Form Data with JavaScript
HTML 5.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Chapter 3 Introduction to HTML5: Part 2
Validation and Building Small Apps
IS333: MULTI-TIER APPLICATION DEVELOPMENT
Introducing Forms.
HTML5 Level II Session III
JavaScript Form Validation
Session IV Chapter 10 – How to Work with Forms and Data Validation
Session III Chapter 10 – How to Work with Forms and Data Validation
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

CHAP 3. FORM API

 Forms should still be encapsulated in a element where the basic submission attributes are set.  Forms still send the values of the controls to the server when the user or the application programmer submits the page.  All of the familiar form controls—text fields, radio buttons, check boxes, and so on—are still present and working as before (albeit with some new features).  Form controls are still fully scriptable for those who wish to write their own modifiers and handlers. OVERVIEW OF HTML5 FORMS

 HTML5 Forms encompasses a great number of new APIs and elements types, and support for them is all over the map now. In order to wrap our heads around all the new functionality, we will address it by breaking it into two categories  New input types  New functions and attributes FUNCTIONAL FORMS

TypePurpose telTelephone number. (Currently Not support by any browser) address text field. urlWeb location URL. searchTerm to supply to a search engine. For example, the search bar atop a browser. rangeNumeric selector within a range of values, typically visualized as a slider. AN INPUT CATALOG Example

Exercise text tel date range

 The placeholder Attribute  Gives input controls an easy way to provide descriptive, alternate hint text which is shown only when the user has not yet entered any values.  Runner:  document.myFormName.myInputId.placeholder = "First and last name"  The autocomplete Attribute  Tells the browser whether or not the value of this input should be saved for future.   document.myFormName.myInputId.autocomplete = "off"  The autofocus Attribute  Lets a developer specify that a given form element should take input focus immediately when the page loads.   document.myFormName.myInputId.autocomplete = true USING THE HTML5 FORMS APIS

 The list Attribute and the datalist Element  Specify a list of possible values foran input. USING THE HTML5 FORMS APIS (CONT.) document.myFormName.myInputId.list = “contactList”

 The min and max Attributes  Allow a numerical input to be constrained to minimum and maximum values.   document.myFormName.myInputId.min = 0  The step Attribute  Specifies the granularity ofincrements or decrements in value as the range is adjusted.   document.myFormName.myInputId.step = 5  The required Attribute  If any input control has the required attribute set, then a value must be set on it before its form can be submitted.   document.myFormName.myInputId.required = true USING THE HTML5 FORMS APIS (CONT.)

Exercise Placeholder Min: 0 Max: 100 Step: 5 Datalist White - 1st Year Gray - 2nd - 4th Year Navy - Veteran (5+ Years)

CUSTOM VALIDATION: PASSWORD VALIDATION New Password: Confirm Password: function checkPasswords() { var pass1 = document.getElementById("password1"); var pass2 = document.getElementById("password2"); if (pass1.value != pass2.value) pass1.setCustomValidity("Your passwords do not match. Please recheck that your new password is entered identically in the two fields."); else pass1.setCustomValidity(""); } HTML JavaScript