MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 276

Extending dreamweaver
Table of Contents

Advertisement

validateTag()
Availability
Dreamweaver MX.
Description
When a user clicks on a node in the tree control or clicks OK, the function performs input
validation on the currently displayed HTML form elements.
Arguments
None.
Returns
Dreamweaver expects a Boolean value:
if input values are not valid.
false
Example
When the user creates a table, a negative integer is entered for the number of table rows. The
function detects the invalid input, displays an alert message, and returns a
validateTag()
value.
false
applyTag()
Availability
Dreamweaver MX.
Description
When the user clicks OK, Dreamweaver calls the
function returns a
validateTag()
the
object that represents the current tag (the tag that is being edited). The function reads
dom
the values out of the form elements and writes them into the
Arguments
tag
The
argument is the DOM node of the tag being edited.
tag
Returns
Dreamweaver expects nothing.
276
Tag Libraries and Editors
if the input for HTML form elements is valid;
true
validateTag()
value, Dreamweaver calls this function and passes
true
function. If the
object.
dom

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver 8

Table of Contents