The MM folder

The MM folder contains the shared scripts, images, and classes used by the extensions that come with Adobe Dreamweaver, including the scripts for building a navigation bar, specifying preload calls, and the shortcut key definitions.

The Scripts folder

The Scripts subfolder contains the following utility functions:

CFCutilities.js

Contains utility functions related to Adobe ColdFusion components. Functions parse attributes from within the opening tag of a given node, parse a CFC tree, get the current URL DOM, get the CFC DOM, and more.

event.js

Contains functions to register events, notify parties of events from the menus.xml file, and add event notifiers to the menus.xml file.

FlashObjects.js

Contains functions that update a color picker, check for hex color, check for an absolute link, add an extension to a filename, generate error messages, set Flash attributes, check a link for Flash object, and so on.

insertFireworksHTML.js

Contains functions to insert Fireworks HTML code into Adobe Dreamweaver documents. Functions check whether current document is a Fireworks document, insert Fireworks HTML at insertion point, update Adobe Fireworks style block to Adobe Dreamweaver, and more. Also contains related utility functions.

jumpMenuUI.js

Contains functions for use with the Jump Menu object and Jump Menu behavior. Functions populate menu options, create an option label, add an option, delete an option, and so on.

keyCodes.js

Contains an array of keyboard key codes.

navBar.js

Contains classes and functions for working with a navigation bar and navigation bar elements. Includes functions to add, remove, and manipulate navigation bar elements.

NBInit.js

Contains functions related to navigation bar image behaviors.

pageEncodings.js

Defines various language codes.

preload.js

Contains functions for adding and deleting preload-image calls to the BODY/onLoad MM_preloadImages handler.

RecordsetDialogClass.js

Contains the static class and functions to display the recordset server behaviors UI. Functions determine which interface, simple or advanced, to display. Also, houses functionality shared between the UI implementations and mediates switches between the UIs.

sbUtils.js

Contains shared functions for use within Adobe server behaviors. The dwscripts class in the Configuration/Shared/Common/Scripts folder contains more general purpose utilities.

setText.js

Contains functions to escape an expression string, unescape an expression string, and extract an expression string.

sortTable.js

Contains functions to initialize and sort a table as well as functions to sort an array, set the mouse pointer to a hand icon or pointer, and check the type and version of the browser.

The Scripts folder also contains two subfolders, Class and CMN.

The Class folder

The Class folder contains the following utility functions:

classCheckbox.js

Helps manipulate a checkbox control in your HTML extension.

FileClass.js

Contains class that represents a file in the file system. The paths are represented by URLs for cross-platform compatibility. Methods include toString(), getName(), getSimpleName(), getExtension(), getPath(), setPath(), isAbsolute(), getAbsolutePath(), getParent(), getAbsoluteParent(), exists(), getAttributes(), canRead(), canWrite(), isFile(), isFolder(), listFolder(), createFolder(), getContents(), setContents(), copyTo(), and remove().

GridClass.js

Contains class that manages MM:TREECONTROL.

GridControlClass.js

Older version of the GridControlClass in the Common folder. See the GridControlClass.js file in the Shared/Common/Scripts folder.

ImageButtonClass.js

Older version of the ImageButtonClass in the Common folder. See the ImageButtonClass.js file in the Shared/Common/Scripts folder.

ListControlClass.js

Older version of the ListControlClass in the Common folder. See the Shared/Common/Scripts/ListControlClass.js file.

NameValuePairClass.js

Creates and manages a list of name/value pairs. Names can contain any character. Values can be blank, but cannot be set to null, which is the same as deleting them.

PageControlClass.js

Example of a page class to be used with the TabControl class. See TabControl class.

PreferencesClass.js

Contains an object and methods that contain all the preference information for a command.

RadioGroupClass.js

Older version of the RadioGroupClass in the Common folder. See the RadioGroupClass.js file in the Shared/Common/Scripts folder.

TabControlClass.js

Helps build an extension that has multiple tab views, page.lastUnload()

The CMN folder

The CMN folder contains the following utility functions:

dateID.js

Contains two functions, createDateID() and decipherDateID(). Given three strings, dayFormat, dateFormat, and timeFormat, createDateID() creates an ID for them. Given a date array, decipherDateID() returns an array with three items: the dayFormat, the dateFormat, and the timeFormat.

displayHelp.js

Contains one function that displays the specified Help document.

docInfo.js

Contains functions that provide information about the user's document. Operations performed by functions include returning an array of object references for a specified browser type and tag, returning all instances of a specified tag name, searching for a tag that wraps the current selection, and so on,

DOM.js

Contains general helper functions for working with the Adobe Dreamweaver DOM. Includes functions that get the root node of the active document, find a tag of a given name, create a list of nodes from the specified starting node, check whether a given tag is contained inside another tag, perform various operations on behavior functions, and more.

enableControl.js

Contains one function, SetEnabled(), which enables or disables a control based on the arguments it receives. It is OK to enable a control that is already enabled or disable a control that is already disabled.

errmsg.js

Contains logging functions for accumulating tracing output into an array of log pages that appear in a dialog box.

file.js

Contains functions pertaining to file operations. Functions let the user browse for local filename, convert the relative path to the file URL path, return filename for current document, determine if a specified document has been saved in current site and return the document-relative path, or determine if a specified file is currently open.

form.js

Contains functions that add a form around a given text string if a form does not already exist in the current document or layer. Includes functions that determine if an object is a layer and determine if the cursor is inside a form.

handler.js

Contains functions that get a function for an event handler, add a function to an event handler, and delete a function for an event handler.

helper.js

Contains a handful of useful functions that replace encoding, unescape quotation marks ("), check whether a node is inside a selection range, and checks for duplicate object names.

insertion.js

Contains the insertIntoDocument() function, which inserts a text string into a document at the insertion point. Also contains the supporting functions getHigherBlockTag() and arrContains(). The getHigherBlockTag() function gets get the next highest blockTag, as defined in the blockTags array, and the arrCon() function finds a specified item in an array.

localText.js

Reserved variables, not for general use. Use Startup/mminit.htm instead or use the strings from the Adobe Dreamweaver Configuration/Strings/*.xml files.

menuItem.js

Contains functions that add stars or values to a listed menu item, or removes them.

niceName.js

Contains functions that convert an array of Object references to an array of simpler names.

quickString.js

Contains functions that aggregate smaller strings without doing a memory allocation each time.

string.js

Contains a generic set of functions for manipulating and parsing text strings. Functions include: extractArgs(),

escQuotes(), unescQuotes(), quoteMeta(), errMsg(), badChars(), getParam(), quote(), stripSpaces(), StripChars(), AllInRange(), reformat(), trim(), createDisplayString(), entityNameEncode(), entityNameDecode(), stripAccelerator(), and SprintF(),

TemplateUtils.js

Contains utility functions for Adobe Dreamweaver templates. Functions insert an editable region into a document, insert a repeating region into a document, scan a document for a specified editable region and so on.

UI.js

Contains generic functions that control the UI. These functions find a designated object in the current document, load select list options with localized strings, return the attribute value for a selected option, and word-wrap the text message for an alert.