MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual page 397

Hide thumbs Also See for DREAMWEAVER MX 2004-USING DREAMWEAVER:
Table of Contents

Advertisement

Click OK.
10
Check that the default event is the one you want.
11
If it isn't, select another event from the pop-up menu. If the events you want are not listed,
change the target browser in the Show Events For pop-up menu.
Swap Image Restore
The Swap Image Restore action restores the last set of swapped images to their previous source
files. This action is automatically added whenever you attach the Swap Image action to an object;
if you leave the Restore option selected while attaching Swap Image, you should never need to
select the Swap Image Restore action manually.
Validate Form
The Validate Form action checks the contents of specified text fields to ensure that the user has
entered the correct type of data. Attach this action to individual text fields with the
to validate the fields as the user is filling out the form, or attach it to the form with the
event to evaluate several text fields at once when the user clicks the Submit button. Attaching this
action to a form prevents the form from being submitted to the server if any of the specified text
fields contains invalid data.
To use the Validate Form action:
Select Insert > Form or click the Form button in the Insert bar to insert a form.
1
Select Insert > Form Objects > Text Field or click the Text Field button in the Insert bar to
2
insert a text field.
Repeat this step to insert additional text fields.
Do one of the following:
3
To validate individual fields as the user fills out the form, select a text field and select
Window > Behaviors.
To validate multiple fields when the user submits the form, click the
selector in the bottom left corner of the Document window and select Window > Behaviors.
Select Validate Form from the Actions pop-up menu.
4
Do one of the following:
5
If you are validating individual fields, select the same field that you have selected in the
Document window from the Named Fields list.
If you are validating multiple fields, select a text field from the Named Fields list.
Select the Required option if the field must contain some data.
6
Select from one of the following Accept options:
7
Use Anything
Required option is not selected, the Anything option is meaningless—that is, it is the same as if
the Validate Form action were not attached to the field.)
Use E-mail address
Use Number
Use Number From
If you are validating multiple fields, repeat steps 6 and 7 for any additional fields that you want
8
to validate.
if the field is required but need not contain any particular kind of data. (If the
to check that the field contains an @ symbol.
to check that the field contains only numerals.
to check that the field contains a number in a specific range.
Using the behavior actions that come with Dreamweaver
event
onBlur
onSubmit
tag in the tag
<form>
397

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-USING DREAMWEAVER and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents