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

Similar documents
ajax1.html 1/2 lectures/9/src/ajax/ ajax1.html 2/2 lectures/9/src/ajax/

ajax1.html 1/2 lectures/7/src/ ajax1.html 2/2 lectures/7/src/

Computer Science E-75 Building Dynamic Websites

home.php 1/1 lectures/6/src/ include.php 1/1 lectures/6/src/

map1.html 1/1 lectures/8/src/

JavaScript CSCI 201 Principles of Software Development

html head script script script function function script title title head body form input input form body html

LAMPIRAN. Universitas Sumatera Utara

Form Processing in PHP

Introduction to DHTML

Schenker AB. Interface documentation Map integration

Consider the following file A_Q1.html.

COM1004 Web and Internet Technology

Unit Notes. ICAWEB411A Produce basic client-side script for dynamic web pages Topic 1 Introduction to JavaScript

Q1. What is JavaScript?

Chapter 4 Sending Data to Your Application

1$ 5 ! $ 6 4 * Source: 0 "!*! 0! * 8 97 ?!$ 5 0 *! 4! $ 0 : * ' () 7;7 7<7

Implementing a chat button on TECHNICAL PAPER


Spring 2014 Interim. HTML forms

Documents and computation. Introduction to JavaScript. JavaScript vs. Java Applet. Myths. JavaScript. Standard

Create a cool image gallery using CSS visibility and positioning property

Introduction to HTML5

A designers guide to creating & editing templates in EzPz

What is XHTML? XHTML is the language used to create and organize a web page:

HTML Forms IT WS I - Lecture 11

User Guide for Direct Post Method Direct Redirect

Computer Science E-1. Understanding Computers and the Internet. Lecture 10: Website Development Wednesday, 29 November 2006

HTML Forms. By Jaroslav Mohapl

EXPERIMENT OBJECTIVE:

User Guide for Direct Post Method JavaScript Relay URL Redirect

Overview of Forms. Forms are used all over the Web to: Types of forms: Accept information Provide interactivity

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Using netbeans create a new Web Application and select the framework as JSF 2.2

<form>. input elements. </form>

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

1 Form Basics CSC309

Ajax Application Design

MVC :: Understanding Views, View Data, and HTML Helpers

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


(X)HTML. Internet Engineering. Spring Bahador Bakhshi CE & IT Department, Amirkabir University of Technology

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner

CPSC 481: CREATIVE INQUIRY TO WSBF

MI1004 Script programming and internet applications

CSC309 Midterm Exam Summer 2007

Exam 2 Reference Packet

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

Using htmlarea & a Database to Maintain Content on a Website

Copyright 2011 Sakun Sharma

JavaScript s role on the Web

1)); getactiveeditors(d, listid); getactiveauthors(d, listid); getcheckedourfilesusercount(listid); getdocumentsbyfiletype(listid); });


Scripting for Multimedia LECTURE 1: INTRODUCING HTML5

Week 1 - Overview of HTML and Introduction to JavaScript

Hyperlinks, Tables, Forms and Frameworks

Lesson 3. Form By Raymond Tsang. Certificate Programme in Cyber Security

By the end of this section of the practical, the students should be able to:

HTML forms and the dynamic web

Web Services DELMIA Apriso 2017 Implementation Guide

ITS331 IT Laboratory I: (Laboratory #11) Session Handling

Azblink API for Sending XMPP Messages via HTTP POST

JSF - H:INPUTSECRET. Class name of a validator that s created and attached to a component

Using an ArcGIS Server.Net version 10

Chettinad College of Engineering and Technology CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER SCIENCE AND TECHNOLOGY

Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013

introduction to XHTML

CSE 154 LECTURE 8: FORMS

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1

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

This is CS 50. Harvard College Fall Quiz 1. out of 62 points. Print your name on the line below.

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

<tr><td>last Name </td><td><input type="text" name="shippingaddress-last-name"

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

Stateless Session Bean

Writing Perl Programs using Control Structures Worked Examples

HTML Overview. With an emphasis on XHTML

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

CS134 Web Site Design & Development. Quiz1

Building Desktop RIAs with PHP, HTML & Javascript in AIR. Ed Finkler, ZendCon08, September 17, 2008 funkatron.com /

Psychology Experiments on the Web Using PHP and MySQL

HTML HTML. Chris Seddon CRS Enterprises Ltd 1


JSF - H:PANELGRID. JSF Tag. Rendered Output. Tag Attributes. The h:panel tag renders an HTML "table" element. Attribute & Description.

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

Wicket and Aida/Web Brief Comparison

TRAINING GUIDE. Rebranding Lucity Web

Fetch terms and conditions apply. Fetch is only available for business banking purposes. The Kiwibank Fetch name, logos and related trademarks and

Part A Short Answer (50 marks)

Project 3 CIS 408 Internet Computing

Produced by. App Development & Modeling. BSc in Applied Computing. Eamonn de Leastar

SMS GATEWAY API INTEGRATION GUIDE

COPYRIGHT 2012 DROIDLA LIMITED

How the Internet Works

HTML. HTML Evolution

HTML: The Basics & Block Elements

Everything you need to know to get you started. By Kevin DeRudder

PRÍLOHY PRÍLOHY. Príloha 1 Náhľady vybraných podstránok webovej stránky

Building Your Blog Audience. Elise Bauer & Vanessa Fox BlogHer Conference Chicago July 27, 2007

5.5 FORM form ex28.html <html> <head>

Transcription:

blink.html 1/1 3: blink.html 5: David J. Malan Computer Science E-75 7: Harvard Extension School 8: 9: --> 11: <!DOCTYPE html PUBLIC 1 "-//W3C//DTD XHTML 1.0 Transitional//EN" 13: "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> 1 15: <html xmlns="http://www.w3.org/1999/xhtml"> 1 <head> 17: <script type="text/javascript"> 18: // <![CDATA[ 19: 20: function blinker() { 2 var blinks = document.getelementsbytagname("blink"); 23: for (var i = 0; i < blinks.length; i++) 2 { 25: if (blinks[i].style.visibility == "hidden") 2 blinks[i].style.visibility = "visible"; 27: else 28: blinks[i].style.visibility = "hidden"; 29: } 30: } 31: 3 window.setinterval(blinker, 500); 33: 3 // ]]> 35: </script> 3 <title></title> 37: </head> 38: <body> 39: <center> 40: <blink><h1>hello, world</h1></blink> 41: </center> 4 </body> 43: </html> form.html 1/1 3: form1.html 5: A form without client-side validation. 1 1 "-//W3C//DTD XHTML 1.0 Transitional//EN" 1 19: <title></title> 20: </head> <body> 2 <form action="process.php" method="get" name="login"> 23: Username: <input name="username" type="text" /> 2 <br /> 25: Password: <input name="password" type="password" /> 2 <br /><br /> 27: <input type="submit" value="submit" /> 28: </form> 29: 30: </body> 31: </html>

form1.html 1/1 3: form1.html 5: A form without client-side validation. 1 1 "-//W3C//DTD XHTML 1.0 Transitional//EN" 1 19: <title></title> 20: </head> <body> 2 <form action="process.php" method="get"> 23: Email: <input name="email" type="text" /> 2 <br /> 25: Password: <input name="password1" type="password" /> 2 <br /> 27: Password (again): <input name="password2" type="password" /> 28: <br /> 29: I agree to the terms and conditions: <input name="agreement" type="checkbox" /> 30: <br /><br /> 31: <input type="submit" value="submit" /> 3 </form> 33: </body> 3 </html> form2.html 1/2 3: form2.html 5: A form with client-side validation. 1 1 "-//W3C//DTD XHTML 1.0 Transitional//EN" 1 2 function validate() 2 if (document.forms.registration.email.value == "") 2 alert("you must provide an email adddress."); 27: return false; 29: else if (document.forms.registration.password1.value == "") 30: { 31: alert("you must provide a password."); 3 return false; 33: } 3 else if (document.forms.registration.password1.value!= document.forms.registration.password2.value) 35: { 3 alert("you must provide the same password twice."); 37: return false; 38: } 39: else if (!document.forms.registration.agreement.checked) 40: { 41: alert("you must agree to our terms and conditions."); 4 return false; 43: } 4 return true; 4 47: // ]]>

form2.html 2/2 48: </script> 49: <title></title> 50: </head> 51: <body> 5 <form action="process.php" id="registration" method="get" onsubmit="return validate();"> 53: Email: <input name="email" type="text" /> 5 <br /> 55: Password: <input name="password1" type="password" /> 5 <br /> 57: Password (again): <input name="password2" type="password" /> 58: <br /> 59: I agree to the terms and conditions: <input name="agreement" type="checkbox" /> 60: <br /><br /> 61: <input type="submit" value="submit" /> 6 </form> 63: </body> 6 </html> form3.html 1/2 3: form3.html 5: A form with client-side validation demonstrating "with" keyword. 1 1 "-//W3C//DTD XHTML 1.0 Transitional//EN" 1 2 function validate() 2 with (document.forms.registration) 2 if (email.value == "") 27: { 28: alert("you must provide an email adddress."); 29: return false; 30: } 31: else if (password1.value == "") 3 { 33: alert("you must provide a password."); 3 return false; 35: } 3 else if (password1.value!= password2.value) 37: { 38: alert("you must provide the same password twice."); 39: return false; 40: } 41: else if (!agreement.checked) 4 { 43: alert("you must agree to our terms and conditions."); 4 return false; 4 return true; 47: }

form3.html 2/2 48: } 49: 50: // ]]> 51: </script> 5 <title></title> 53: </head> 5 <body> 55: <form action="process.php" method="get" name="registration" onsubmit="return validate();"> 5 Email: <input name="email" type="text" /> 57: <br /> 58: Password: <input name="password1" type="password" /> 59: <br /> 60: Password (again): <input name="password2" type="password" /> 61: <br /> 6 I agree to the terms and conditions: <input name="agreement" type="checkbox" /> 63: <br /><br /> 6 <input type="submit" value="submit" /> 65: </form> 6 </body> 67: </html> form4.html 1/2 3: form4.html 5: A form with client-side validation demonstrating "this" keyword. 1 1 "-//W3C//DTD XHTML 1.0 Transitional//EN" 1 2 function validate(f) 2 if (f.email.value == "") 2 alert("you must provide an email adddress."); 27: return false; 29: else if (f.password1.value == "") 30: { 31: alert("you must provide a password."); 3 return false; 33: } 3 else if (f.password1.value!= f.password2.value) 35: { 3 alert("you must provide the same password twice."); 37: return false; 38: } 39: else if (!f.agreement.checked) 40: { 41: alert("you must agree to our terms and conditions."); 4 return false; 43: } 4 return true; 4 47: // ]]>

form4.html 2/2 48: </script> 49: <title></title> 50: </head> 51: <body> 5 <form action="process.php" method="get" onsubmit="return validate(this);"> 53: Email: <input name="email" type="text" /> 5 <br /> 55: Password: <input name="password1" type="password" /> 5 <br /> 57: Password (again): <input name="password2" type="password" /> 58: <br /> 59: I agree to the terms and conditions: <input name="agreement" type="checkbox" /> 60: <br /><br /> 61: <input type="submit" value="submit" /> 6 </form> 63: </body> 6 </html> form5.html 1/2 3: form5.html 5: A form with client-side validation demonstrating disabled property. 1 1 "-//W3C//DTD XHTML 1.0 Transitional//EN" 1 2 function toggle() 2 if (document.forms.registration.button.disabled) 25: document.forms.registration.button.disabled = false; 2 else 27: document.forms.registration.button.disabled = true; 29: 30: function validate() 31: { 3 if (document.forms.registration.email.value == "") 33: { 3 alert("you must provide an email adddress."); 35: return false; 3 } 37: else if (document.forms.registration.password1.value == "") 38: { 39: alert("you must provide a password."); 40: return false; 41: } 4 else if (document.forms.registration.password1.value!= document.forms.registration.password2.value) 43: { 4 alert("you must provide the same password twice."); 45: return false; 4 } 47: else if (!document.forms.registration.agreement.checked)

form5.html 2/2 48: { 49: alert("you must agree to our terms and conditions."); 50: return false; 51: } 5 return true; 53: } 5 55: // ]]> 5 </script> 57: <title></title> 58: </head> 59: <body> 60: <form action="process.php" method="get" name="registration" onsubmit="return validate();"> 61: Email: <input name="email" type="text" /> 6 <br /> 63: Password: <input name="password1" type="password" /> 6 <br /> 65: Password (again): <input name="password2" type="password" /> 6 <br /> 67: I agree to the terms and conditions: <input name="agreement" onclick="toggle();" type="checkbox" /> 68: <br /><br /> 69: <input disabled="disabled" name="button" type="submit" value="submit" /> 70: </form> 71: </body> 7 </html> form6.html 1/2 3: form6.html 5: A form with client-side validation demonstrating inline JavaScript. 1 1 "-//W3C//DTD XHTML 1.0 Transitional//EN" 1 2 function validate() 2 if (document.forms.registration.email.value == "") 2 alert("you must provide an email adddress."); 27: return false; 29: else if (document.forms.registration.password1.value == "") 30: { 31: alert("you must provide a password."); 3 return false; 33: } 3 else if (document.forms.registration.password1.value!= document.forms.registration.password2.value) 35: { 3 alert("you must provide the same password twice."); 37: return false; 38: } 39: else if (!document.forms.registration.agreement.checked) 40: { 41: alert("you must agree to our terms and conditions."); 4 return false; 43: } 4 return true; 4 47: // ]]>

form6.html 2/2 48: </script> 49: <title></title> 50: </head> 51: <body> 5 <form action="process.php" method="get" name="registration" onsubmit="return validate();"> 53: Email: <input name="email" type="text" /> 5 <br /> 55: Password: <input name="password1" type="password" /> 5 <br /> 57: Password (again): <input name="password2" type="password" /> 58: <br /> 59: I agree to the terms and conditions: <input name="agreement" onclick="document.forms.registration.button.disa bled =!document.forms.registration.button.disabled;" type="checkbox" /> 60: <br /><br /> 61: <input disabled="disabled" name="button" type="submit" value="submit" /> 6 </form> 63: </body> 6 </html> form7.html 1/2 3: form7.html 5: A form with client-side validation demonstrating regular expressions. 1 1 "-//W3C//DTD XHTML 1.0 Transitional//EN" 1 2 function validate() 2 if (!document.forms.registration.email.value.match(/.+@.+\.edu$/)) 2 alert("you must provide a.edu email adddress."); 27: return false; 29: else if (document.forms.registration.password1.value == "") 30: { 31: alert("you must provide a password."); 3 return false; 33: } 3 else if (document.forms.registration.password1.value!= document.forms.registration.password2.value) 35: { 3 alert("you must provide the same password twice."); 37: return false; 38: } 39: else if (!document.forms.registration.agreement.checked) 40: { 41: alert("you must agree to our terms and conditions."); 4 return false; 43: } 4 return true; 4 47: // ]]>

form7.html 2/2 48: </script> 49: <title></title> 50: </head> 51: <body> 5 <form action="process.php" method="get" name="registration" onsubmit="return validate();"> 53: Email: <input name="email" type="text" /> 5 <br /> 55: Password: <input name="password1" type="password" /> 5 <br /> 57: Password (again): <input name="password2" type="password" /> 58: <br /> 59: I agree to the terms and conditions: <input name="agreement" type="checkbox" /> 60: <br /><br /> 61: <input type="submit" value="submit" /> 6 </form> 63: </body> 6 </html> javascript.html 1/1 1: <!DOCTYPE html PUBLIC 3: "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> 5: <html xmlns="http://www.w3.org/1999/xhtml"> 7: <head> 8: <title></title> 9: </head> <body> 11: <script type="text/javascript"> 1 // <![CDATA[ 13: 1 document.write("hello, world!"); 15: 1 // ]]> 17: </script> 18: </body> 19: </html>

process.php 1/1 quick and dirty dump of HTTP request --> 3: <pre> <? print_r($_request);?> 5: </pre> process.phps 1/1 quick and dirty dump of HTTP request --> 3: <pre> <? print_r($_request);?> 5: </pre>