beautypg.com

The scripts subfolder, The class folder – Adobe Extending Dreamweaver CS4 User Manual

Page 375

background image

369

EXTENDING DREAMWEAVER CS4

The Shared folder

The Scripts subfolder

The Scripts subfolder contains the following utility functions:

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

The Class folder

The Class folder contains the following utility functions:

File

Description

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 hexadecimal 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 Adobe Fireworks CS3 HTML code into Dreamweaver documents.
Functions check whether current document is a Fireworks document, insert Fireworks HTML at
insertion point, update a Fireworks style block to 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.

This manual is related to the following products: