MACROMEDIA DREAMWEAVER 8-EXTENDING DREAMWEAVER Manual page 164

Extending dreamweaver
Table of Contents

Advertisement

// do some document manipulation here. Exercise left to the reader
}
return errMsg;
}
objectTag()
Description
The
and
objectTag()
in a document, the
objectTag()
on page
162.
This function inserts a string of code into the user's document. In Dreamweaver MX,
returning an empty string, or a
Dreamweaver to do nothing.
The assumption is that edits have been made manually before the return statement, so
doing nothing in this case is not equivalent to clicking Cancel.
In Dreamweaver 4, if the focus is in Code view and the selection is a range (meaning that it is
not an insertion point), the range is replaced by the string that the
returns. This is the value
returns nothing. The
edits to the document have already been made manually. Otherwise, double quotation marks
(" ") often delete the edit by replacing the selection.
Arguments
None.
Returns
Dreamweaver expects the string to insert into the user's document.
Example
The following example of the
for a specific ActiveX control and plug-in:
function objectTag() {
return '\n' +
'<OBJECT CLASSID="clsid:166F1OOB-3A9R-11FB-8075444553540000" \n'¬
+ 'CODEBASE="http://www.mysite.com/product/cabs/¬
myproduct.cab#version=1,0,0,0" \n' + 'NAME="MyProductName"> \n' ¬
+ '<PARAM NAME="SRC" VALUE=""> \n' + '<EMBED SRC="" HEIGHT="" ¬
WIDTH="" NAME="MyProductName"> \n' + '</OBJECT>'
}
164
Insert Bar Objects
functions are mutually exclusive: If both are defined
insertObject()
function is used. For more information, see
value (also known as "
null
, even if the
true
function returns an empty string or a
objectTag()
objectTag()
return
function returns an empty string or
objectTag()
function inserts an
"insertObject()"
;"), is a signal to
function
objectTag()
value because
null
combination
OBJECT/EMBED

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