618545
645
Zoom out
Zoom in
Previous page
1/661
Next page
638
USING DREAMWEAVER
Building forms
Last updated 3/28/2012
Attach JavaScript behaviors to HTML form objects
You can attach JavaScript behaviors stored in Dreamweaver to HTML form objects such as buttons.
1 Select the HTML form object.
2 In the Behaviors panel (Window > Behaviors), click the Plus (+) button, and select a behavior from the list.
Attach custom scripts to HTML form buttons
Some forms use JavaScript or VBScript to perform form processing or some other action on the client as opposed to
sending the form data to the server for processing. You can use Dreamweaver to configure a form button to run a
specific client-side script when the user clicks the button.
1 Select a Submit button in a form.
2 In the Behaviors panel (Window > Behaviors), click the Plus (+) button, and select Call JavaScript from the list.
3 In the Call JavaScript box, enter the name of the JavaScript function to run when the user clicks the button, and
click OK.
For example, you can enter the name of a function that doesn’t exist yet, such as processMyForm().
4 If your JavaScript function doesn’t exist in the head section of the document yet, add it now.
For example, you could define the following JavaScript function in the head section of the document to display a
message when the user clicks the Submit button:
function processMyForm(){
alert('Thanks for your order!');
}
More Help topics
Apply the Call JavaScript behavior” on page 331
Create accessible HTML forms
When you insert an HTML form object, you can make the form object accessible, and change the accessibility
attributes later.
Add an accessible form object
1 The first time you add accessible form objects, activate the Accessibility dialog box for form objects (see
Optimizing the workspace for visual development” on page 525).
This is a one-time-only step.
2 In the document, place the insertion point where you want the form object to appear.
3 Select Insert > Form, and select a form object to insert.
The Input Tag Accessibility Attributes dialog box appears.
4 Complete the dialog box, and click OK. Here is a partial list of options:
Note: The screen reader reads the name you enter as the Label attribute for the object.
ID assigns an ID to the form field. This value can be used to refer to the field from JavaScript; it's also used as the value
of the
for attribute if you choose the Attach Label Tag Using For option under the Style options.
Wrap With Label Tag Wraps a label tag around the form item, as follows:
645


Need help? Post your question in this forum.

Forumrules


Report abuse

Libble takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Product:

For example, Anti-Semitic content, racist content, or material that could result in a violent physical act.

For example, a credit card number, a personal identification number, or an unlisted home address. Note that email addresses and full names are not considered private information.

Forumrules

To achieve meaningful questions, we apply the following rules:

Register

Register getting emails for Adobe DREAMWEAVER CS5.5 at:


You will receive an email to register for one or both of the options.


Get your user manual by e-mail

Enter your email address to receive the manual of Adobe DREAMWEAVER CS5.5 in the language / languages: English as an attachment in your email.

The manual is 21,23 mb in size.

 

You will receive the manual in your email within minutes. If you have not received an email, then probably have entered the wrong email address or your mailbox is too full. In addition, it may be that your ISP may have a maximum size for emails to receive.

Others manual(s) of Adobe DREAMWEAVER CS5.5

Adobe DREAMWEAVER CS5.5 User Manual - German - 753 pages

Adobe DREAMWEAVER CS5.5 User Manual - Dutch - 725 pages


The manual is sent by email. Check your email

If you have not received an email with the manual within fifteen minutes, it may be that you have a entered a wrong email address or that your ISP has set a maximum size to receive email that is smaller than the size of the manual.

The email address you have provided is not correct.

Please check the email address and correct it.

Your question is posted on this page

Would you like to receive an email when new answers and questions are posted? Please enter your email address.



Info