beautypg.com

Dom.convertnextactivecontent(), Keyboard functions – Adobe Dreamweaver API Reference CS5 User Manual

Page 137

background image

132

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

Arguments
forceUpdate

The

forceUpdate

argument is a Boolean value that indicates whether to override the user’s preference settings

(

true

, = override). This argument is optional.

Returns
A Boolean value:

true

if all active content was converted successfully. Returns

false

if some active content that

needed to be converted was not converted, such as object tags in a locked region of a template instance.

Example

if( !dom.convertActiveContent(true) ) {

alert(dw.loadString("ActiveContent/notAllConverted"));
}

dom.convertNextActiveContent()

Availability
Dreamweaver CS3.

Description
Specifies that the next object tag that is inserted (for the remainder of the current edit—one undoable action) has a
script built for it. This function allows you to use a third-party extension to generate the appropriate script for the
specific active content.

Arguments
None.

Returns
Nothing.

Example

dom.convertNextActiveContent();

dom.insertHTML(""http://download.Macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\"
width=\"100\" height=\"22\">"quality\" value=\"high\" />"http://www.Macromedia.com/go/getflashplayer\" type=\"application/
x-shockwave-flash\"width=\"100\" height=\"22\">
\");

Keyboard functions

Keyboard functions mimic document navigation tasks that are accomplished by pressing the arrow, Backspace, Delete,
Page Up, and Page Down keys. In addition to such general arrow and key functions as

arrowLeft()

and

backspaceKey()

, Dreamweaver also provides methods for moving to the next or previous word or paragraph as well

as moving to the start of the line or document or the end of the line or document.