|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
FrontPage 98The FrontPage Editor helps you compose forms in a couple of ways. The most obvious is the Form Toolbar, which contains buttons for placing single-line text fields, multiline text boxes, check boxes, radio buttons, drop-down menus, and action buttons. When you click any of these, the desired control appears on the page, along with Submit and Reset buttons (if you havent started a form yet). The form is contained by a box with a dashed rule, and any other controls you place in the box are part of that form (see Figure 8.8).
After you have at least one form field on a page, you can access different properties menus to specify the fields details. In particular, right-clicking a form control and then selecting Form Field Properties opens a properties dialog box for that control where you can type in the values for the attributes in the tag that creates the control. Additionally, you can choose Form Properties to specify attributes of the <FORM> tag, or you can choose Form Field Validation to set up some script code behind the form to do basic error-checking on the users input (see Fig-ure 8.9).
The other way FrontPage can assist you with form composition is through the Insert, Form Field option. Choosing this option reveals a pop-up list of available form fields, including a few that arent on the Forms Toolbar, such as Image and Label. After you select a field, FrontPage places the field on the page, and you can modify its properties in the same way you would for a field placed by using the toolbar. Allaire HomeSiteLike FrontPage, Allaires HomeSite also has a Forms Toolbar with buttons that place the most popular form controls. The Form button lives at the left end of the toolbar and is used to set up the <FORM> and </FORM> tags for the form. As the dialog box in Figure 8.10 shows, you can set up the forms ACTION, METHOD, ENCTYPE, and TARGET attributes all in one shot.
The other buttons in the toolbar call up a dialog box with appropriate fields that enable you to specify the attributes of the tag youre setting up. Figure 8.11 shows the dialog box you get when placing a text field. Note how the dialog box has fields corresponding to the NAME, VALUE, SIZE, and MAXLENGTH attributes of the <INPUT> tag.
Adobe PageMillLike the preceding products, forms are easily created in PageMill with the toolbar buttons shown in Figure 8.12.
Creating forms with PageMill is simple. Click any of the toolbar buttons shown in Figure 8.12 to create a form element. For check boxes and radio buttons, enter the accompanying text by clicking to the right of the elements. Elements such as text areas, buttons, and pop-up menus can be selected and resized. You can edit your form elements using the PageMill Attributes Inspector. As described in previous chapters, the Attributes Inspector is a utility that enables you to specify the attributes for objects (such as tables, graphics, and forms), as well as frames, pages, and so on. Each attribute set is arranged on a different tab. To access the Inspector, select Show Inspector from the View menu. The Object tab is one of the four major tabs available in the Attributes Inspector. The versatility of the Inspector becomes apparent when youre using forms. Select a form while the Inspector is active and youll see the forms attributes displayed in the Object tab, as shown in Figure 8.12. Notice that the attributes change as you click different form elements. Because these different elements have different attributes, you can modify them individually with the Inspector.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |