Interacting With Users Chapter 7 Learn how to… Create a Web form. Create a PayPal button. Create an image map. Create a frameset. FTP files to the Web.

Slides:



Advertisements
Similar presentations
HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
Advertisements

Chapter 3 – Web Design Tables & Page Layout
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?
Developing a Web Site: Links Using a link is a quicker way to access information at the bottom of a Web page than scrolling down A user can select a link.
Chapter 5 Creating an Image Map
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
Macromedia Dreamweaver 4 Foundation Level Course.
Creating Web Page Forms. Objectives Describe how Web forms can interact with a server-based program Insert a form into a Web page Create and format a.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
Creating Web Page Forms
Chapter 6 Working with Frames.
Using Frames in a Web Site
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 21: Publishing Your Pages on the Web.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Creating a Web Page HTML, FrontPage, Word, Composer.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
1 ADVANCED MICROSOFT WORD Lesson 15 – Creating Forms and Working with Web Documents Microsoft Office 2003: Advanced.
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.
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.
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
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.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
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.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Creating a Web Site to Gather Data and Conduct Research.
Robinson_CIS_285_2005 HTML FORMS CIS 285 Winter_2005 Instructor: Mary Robinson.
Chapter 12 FRAMES. HOW FRAMES WORK When you view a framed page in a browser, you are actually looking at several HTML documents at once. The key to making.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
Creating Links – Lesson 31 Creating Links Lesson 3.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 7: Working with Frames Kelly L.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Chapter 2 XHTML: Part II The Web Warrior Guide to Web Design Technologies.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
Week 11 Creating Framed Layouts Objectives Understand the benefits and drawbacks of frames Understand and use frame syntax Customize frame characteristics.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
LOGO FORMs in HTML CHAPTER 5 Eastern Mediterranean University School of Computing and Technology Department of Information Technology ITEC229 Client-Side.
Introduction to HTML Part 3 Chapter 2. Learning Outcomes Identify how to design frames. Explain frames’ attributes. Describe the method on designing forms.
76 © 1998, 1999, 2000 David T. Gray, Howard Duncan, Jane Kernan Frames When displaying information in a browser, it is sometimes useful to divide the display.
ITCS373: Internet Technology Lecture 5: More HTML.
Layers, Image Maps, and Navigation Bars
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Creating Web Page Forms COE 201- Computer Proficiency.
HTML Forms.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
HTML Forms. A form is simply an area that can contain form fields. Form fields are objects that allow the visitor to enter information - for example text.
Chapter 9 Quick Links Slide 2 Performance Objectives Understanding Forms Planning Forms Creating Forms Creating Text Fields Creating Hidden Fields Creating.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 6: Creating XHTML Forms Kelly.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
XP Creating Web Pages with Microsoft Office
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
Chapter 5 Introduction to XHTML: Part 2
Creating Forms on a Web Page
Project 4 Creating an Image Map.
Creating Frames on a Web Page
Chapter 8 Using Document Collaboration and Integration Tools
Presentation transcript:

Interacting With Users Chapter 7

Learn how to… Create a Web form. Create a PayPal button. Create an image map. Create a frameset. FTP files to the Web and set file permissions.

Creating HTML Forms

A form prompts the user to fill in one or more blanks and/or select items from a menu of possible choices. The start and stop tags mark the beginning and ending of an HTML form. Between these tags go the controls that prompt the user for specific information, along with any onscreen instructions you want to provide.

Prompts A prompt is an onscreen instruction that asks the user to provide some information, either by typing a response into a text field or by choosing something from a selection of possible choices.

Beginning the Form

Form Tags Every start tag has two attributes, namely, a method and an action.

Text Input Controls Use the tag to create the form controls that receive input from users. –The tag has several attributes: The type attribute specifies the kind of control you want. The name attribute specifies the name of the control. The size attribute specifies how many characters wide on the screen. The maxlength attribute specifies the maximum number of characters users can type.

Text Input Controls

Radio Button Control A radio button displays a small round button that allows users to select one, but not more than one, item from a list of possible choices. checked causes this item to be initially checked by default.

Radio Button Control This adds additional options for the Frequency radio button control.

Submit and Reset Buttons The Submit button is the onscreen control that users click to submit the form. –Use Xxxx is the text displayed (the default text is Submit). Click a Reset button to return the controls to their default settings. –Use

Submit and Reset Buttons

Completed Form

Processing the Response We used the mailto option in the form tag to have the response ed. A more advanced method is to read the information, save the form’s data in a database, decide how to act on it, and respond appropriately to the user. –To make a form post its data to an Active Server Page (ASP) script, type:

CGI Scripting The art of server-side programming is known as common gateway interface (CGI) scripting. The POST method sends the form’s data to a CGI script.

GET Method An HTTP GET method appends the form’s data to the URL as a query string. –Used especially at search engine sites.

Form Submission For more info, see

Check Box A check box presents the user with a small box that the user can click to turn an option on or off.

Check Box Example

Selection Menu Create a selection menu with the start and stop tags. Use the tag to specify the menu options.

Text Areas Text areas allow large amounts of text to be typed. –Use the start and stop tags.

Multiple Selection Menu To allow users to make multiple selections from a selection menu, include the multiple attribute with a size that indicates the number of menu options to be displayed at a time. –Users need to use Ctrl+click to select items.

Password Fields A password field is a text box that works like a text field except that when the user types the entry, the browser displays asterisks.

Summary

Making a PayPal Buy Now Button

PayPal PayPal is a person-to-person payment system that individuals can use to sell products. A PayPal button, when clicked, posts data to the PayPal server indicating what product the user wants to buy from you. The PayPal system handles all the rest.

Hidden Fields A hidden field creates a variable name and a corresponding value that are not displayed onscreen but are posted along with the rest of the form’s data when the user clicks the button to submit the form.

Hidden Fields

Image Buttons An image button displays an image instead of the Submit button.

PayPal Buy Now Button When clicked, the PayPal Buy Now button posts HTML form data to the PayPal e-commerce server. –Information about the product being purchased. –The business that is making the sale. There are many options that can be present, apart from those that are always required.

Creating a PayPal Button Begin the form and identify your business: Insert hidden fields to describe the product you are selling:

Creating a PayPal Button Give the customer an option to get an autographed copy of the book: Display the button and finish the form tag:

PayPal Variables To view the PayPal button manual, visit

PayPal Button Factory PayPal has a button factory that generates automatically the HTML to paste on to your page to sell items at your Web site. –Log on to your PayPal account at and click the Merchant Tools tab. Under the Website Payments heading, follow the link to Buy Now Buttons to make the Button Factory appear.

Designing HTML Image Maps

Image Maps An image map is an invisible layer of triggers placed over an image onscreen. –The triggers can be rectangular, circular, or polygonal. –When the user clicks inside one of the invisible triggers, the Web browser triggers the object of the link.

Map and Area Tags Use the and tags to mark the beginning and ending of the image map. Use the tag to create the triggers. –The shape attribute defines the shape. –The coord attribute specifies the x,y coordinates of the links relative to the top-left corner of the image at 0,0. coord=x1,y1,x2,y2 where x1,y1 is the top-left corner of the area and x2,y2 is the bottom-right corner of the image.

Example: Web Page

Example: HTML Code

Visualizing the Coordinates Too low –0,0,112,32 Middle C (correct) –112,0,116,22 –112,22,120,32 Too high –116,0,238,22 –120,22,238,32

Usemap Attribute Use the usemap attribute to apply an image map to any image on the page. There are many tools available to make image maps.

Non-Rectangular Areas Circular areas: Polygonal areas: –Draw the polygon starting with x1,y1 to x2,y2 to x3,y3 and so on until you get back to x1,y1 as the last value.

Creating HTML Frames

Frames You can divide the browser’s display surface into multiple windows called frames. Each frame can display a different part of the same page or a totally different page. Frame targeting can make clicks in one frame determine what gets displayed in another.

Framesets A frameset splits the browser window into two or more subdocuments called frames. –Create a frameset with the start and stop tags. The start tag has row and column attributes that determine the layout. –Specify the dimensions by pixels or percentages.

Framesets

Vertical Frames

Horizontal Frames

Frameset Grids

Nested Framesets A frameset that you create inside of another frame is called a nested frameset.

Border, Scrollbar, Sizing To remove the border around a frameset, add the following attributes to the frameset tag: –frameborder="no" border="0" framespacing="0" To remove the scrollbar from a frame, add the following attribute to its frame tag: –scrolling="no" To prevent users from being able to resize a frame, add the noresize attribute to the frame tag.

Border, Scrollbar, Sizing

Fixed-Size Frames

Wildcard Sized Frames

Frame Targeting Frame targeting is when a mouse click in one frame can alter the display of a document in another frame. –Suppose you have a menu of items in the left frame. –When you click on an item in the left frame, you can make the targeted frame appear on the right side in the main content frame. –See the next slide for the coding.

Frame Targeting Name the frame (Main content) that the hyperlinks will target: Use the target tag to make the hyperlinks aim at the targeted frame (Sidebar). –If the main content frame does not exist, a new window will be displayed.

Base Tag You can avoid typing the target attribute in each hyperlink if you use the tag to specify the default target of the sidebar links. –The tag goes into the section of the document containing the hyperlinks. –You can override this by hard-coding a different target on any hyperlink that you want pointing somewhere else.

Base Tag The tag also has a URL attribute in which you can specify the HTTP address of the targeted document. In an anchor tag in that same document, this would make href="#education" point to ucation ucation

Using Framesets Use judgment when using framesets. –Multiple windows can be confusing, especially for users with disabilities.

Publishing a Web Site via FTP

Publishing a Web Site To publish a file on the World Wide Web means to transfer the file to a folder on a Web server so people around the world can access the file with a Web browser. –The default filename on most Web servers is index.html Sometimes, default.html is used. Check with your Web server administrator for more information.

Getting Web Space Your ISP account mostly includes some space on your ISP’s Web server for a personal Web site. Your school or workplace may have space available for your usage. There are sites on the Web that provide free space. –Search Google for “free FTP Web space.”

Web Space Address Find the name of your Web space address from your provider.

Getting an FTP Client To find a free FTP client to use, search Google or Yahoo for the keywords “free ftp client.” –One such program is Core FTP Lite at

Configuring Core FTP Lite Create a new FTP connection. –Host/IP/URL is your FTP server. –User ID is the part of your before sign.

FTP Files to Web Server The left pane in Core FTP Lite is your file structure; the right pane is the file structure of the Web server. The arrows let you move files from one pane to the other.

Working With Files In addition, Core FTP Lite has buttons that allow you to delete or rename files on the Web server or your computer. Some file servers are case-sensitive, so you may name all of your files and folders using lowercase letters.

Updating Your Web Page If you need to update your Web page, just republish the revised file to your Web site. Check the new page in your Web browser by having it reload or refresh the page. –You can press Shift as you press the Reload button to make sure graphics are refreshed as well.

Relative & Absolute Links Absolute links –Contain the full URL to the file. Relative links –Contain only the part of the URL not contained in your current Web page’s folder.

Example For example, the full URL may be html But if your Web page home is located in the relative link would be wishlist/danny.html

Good Directory Structure Be careful how you create folders and subfolders when you make a local Web that you plan to mount on the World Wide Web.

File Permissions File permission attributes are settings that determine who is allowed to read and execute your files. –Right-click the folder and choose Properties.