Adobe 38040334 - Dreamweaver CS3 User Manual page 408

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

dom.insertObject()
Availability
Dreamweaver 3.
Description
Inserts the specified object, prompting the user for parameters if necessary.
Arguments
objectName
• The
argument is the name of an object in the Configuration/Objects folder.
objectName
Returns
Nothing.
Example
A call to the
dom.insertObject('Button')
current selection. If nothing is selected, this function inserts the button at the current insertion point.
Note: Although object files can be stored in separate folders, it's important that these files have unique names. If a file
called Button.htm exists in the Forms folder and also in the MyObjects folder, Dreamweaver cannot distinguish between
them.
dom.insertText()
Availability
Dreamweaver 3.
Description
Inserts text content into the document at the current insertion point.
Arguments
contentToInsert, {bReplaceCurrentSelection}
• The
contentToInsert
• The
bReplaceCurrentSelection
content should replace the current selection. If the
content replaces the current selection. If the value is
Returns
Nothing.
Example
The following code inserts the text:
var theDOM = dreamweaver.getDocumentDOM();
theDOM.insertText('<b>130</b>');
The results appear in the Document window, as shown in the following figure:
function inserts a form button into the active document after the
argument is the content that you want to insert.
argument, which is optional, is a Boolean value that indicates whether the
bReplaceCurrentSelection
&lt;b&gt;130&lt;/b&gt;
, the content is inserted after the current selection.
false
into the current document:
DREAMWEAVER CS3
API Reference
argument is a value of
true
403
, the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents