API Reference
Page 2
...trademarks of Microsoft Corporation in the United States and other countries, licensed exclusively through X/Open Company, Ltd. ActiveX, Microsoft, and Windows are either registered trademarks or trademarks of Apple Computer Inc., registered in the United States and/or other end users pursuant to...12.212 or 48 C.F.R. §227.7202, as a commitment by Fraunhofer IIS and Thomson Multimedia (http://www.mp3licensing.com). Adobe® Dreamweaver® CS3 API Reference for real time or live broadcasts, you may be used in this guide is furnished for informational use the MP3 ...
...trademarks of Microsoft Corporation in the United States and other countries, licensed exclusively through X/Open Company, Ltd. ActiveX, Microsoft, and Windows are either registered trademarks or trademarks of Apple Computer Inc., registered in the United States and/or other end users pursuant to...12.212 or 48 C.F.R. §227.7202, as a commitment by Fraunhofer IIS and Thomson Multimedia (http://www.mp3licensing.com). Adobe® Dreamweaver® CS3 API Reference for real time or live broadcasts, you may be used in this guide is furnished for informational use the MP3 ...
API Reference
Page 9
DREAMWEAVER CS3 4 API Reference Spry widget insertion • "dom.addJavaScript()" on page 303 • "dom.copyAssets()" on page 304 • "dom.getDefaultAssetFolder()" on page 305 Browser compatibility check issues • "elem.getComputedStyleProp()" on page 306 • "window.getDeclaredStyle()" on page 307 • "dom.getMinDisplayWidth()" on page 307 ...getLayoutDescriptions()" on page 334 • "dw.getFilesForLayout()" on page 334 Removed functions The following functions are removed from the Dreamweaver CS3 API because the associated features are removed from the product. •...
DREAMWEAVER CS3 4 API Reference Spry widget insertion • "dom.addJavaScript()" on page 303 • "dom.copyAssets()" on page 304 • "dom.getDefaultAssetFolder()" on page 305 Browser compatibility check issues • "elem.getComputedStyleProp()" on page 306 • "window.getDeclaredStyle()" on page 307 • "dom.getMinDisplayWidth()" on page 307 ...getLayoutDescriptions()" on page 334 • "dw.getFilesForLayout()" on page 334 Removed functions The following functions are removed from the Dreamweaver CS3 API because the associated features are removed from the product. •...
API Reference
Page 11
... For more information about configuration folders on how C libraries interact with the JavaScript interpreter in the file I /O API Adobe® Dreamweaver® CS3 includes a C shared library called DWfile, which lets authors of objects, commands, behaviors, data translators, floating panels, ...On Microsoft Windows 2000 and Windows XP, and Mac OS X platforms, users have their own copies of configuration files. Chapter 2: The file I /O API are methods of the DWfile object. For general information on multiuser platforms, see "C-Level Extensibility" in the Dreamweaver Configuration ...
... For more information about configuration folders on how C libraries interact with the JavaScript interpreter in the file I /O API Adobe® Dreamweaver® CS3 includes a C shared library called DWfile, which lets authors of objects, commands, behaviors, data translators, floating panels, ...On Microsoft Windows 2000 and Windows XP, and Mac OS X platforms, users have their own copies of configuration files. Chapter 2: The file I /O API are methods of the DWfile object. For general information on multiuser platforms, see "C-Level Extensibility" in the Dreamweaver Configuration ...
API Reference
Page 14
...newer: var file1 = "file:///c|/temp/file1.txt"; var file2 = "file:///c|/temp/file2.txt"; var time1 = DWfile.getModificationDate(file1); in Windows, for which file is newer than file2"); } DWfile.getCreationDate() Availability Dreamweaver 4. if (str && (str.indexOf("R") != -1)){ alert(fileURL + " is not a recognizable date and time. if (time1 == ...(time1 < time2){ alert("file1 older that this function returns is platform-dependent and is read only!"); } DWfile.getModificationDate() Availability Dreamweaver 2. DREAMWEAVER CS3 9 API Reference var fileURL = "file:///c|/temp/mydata.txt";
...newer: var file1 = "file:///c|/temp/file1.txt"; var file2 = "file:///c|/temp/file2.txt"; var time1 = DWfile.getModificationDate(file1); in Windows, for which file is newer than file2"); } DWfile.getCreationDate() Availability Dreamweaver 4. if (str && (str.indexOf("R") != -1)){ alert(fileURL + " is not a recognizable date and time. if (time1 == ...(time1 < time2){ alert("file1 older that this function returns is platform-dependent and is read only!"); } DWfile.getModificationDate() Availability Dreamweaver 2. DREAMWEAVER CS3 9 API Reference var fileURL = "file:///c|/temp/mydata.txt";
API Reference
Page 15
..., which is expressed as a file:// URL, is the file for which you are checking the creation time. DWfile.getModificationDateObj() Availability Dreamweaver MX. var time2 = DWfile.getModificationDate(file1); The exact meaning of the most recent modification. Description This function gets the JavaScript object ... if (time1 < time2){ alert("file1 was last modified. DREAMWEAVER CS3 10 API Reference • The fileURL argument, which is expressed as a file:// URL, is the file for which you are checking the creation time. in Windows, for example, a time unit is 100ns, and the ...
..., which is expressed as a file:// URL, is the file for which you are checking the creation time. DWfile.getModificationDateObj() Availability Dreamweaver MX. var time2 = DWfile.getModificationDate(file1); The exact meaning of the most recent modification. Description This function gets the JavaScript object ... if (time1 < time2){ alert("file1 was last modified. DREAMWEAVER CS3 10 API Reference • The fileURL argument, which is expressed as a file:// URL, is the file for which you are checking the creation time. in Windows, for example, a time unit is 100ns, and the ...
API Reference
Page 27
Chapter 4: The Design Notes API Adobe® Dreamweaver® CS3, Fireworks, and Flash give web designers and developers a way to 64 characters. The _notes folder and the Design Notes files that lets extensions authors read ...-in files that are not visible in the Site panel, but they appear in a series of information that store information in the Finder (Macintosh) or Windows Explorer. Design Notes files are limited to store and retrieve extra information about using the Design Notes feature from objects, commands, behaviors, floating panels, Property...
Chapter 4: The Design Notes API Adobe® Dreamweaver® CS3, Fireworks, and Flash give web designers and developers a way to 64 characters. The _notes folder and the Design Notes files that lets extensions authors read ...-in files that are not visible in the Site panel, but they appear in a series of information that store information in the Finder (Macintosh) or Windows Explorer. Design Notes files are limited to store and retrieve extra information about using the Design Notes feature from objects, commands, behaviors, floating panels, Property...
API Reference
Page 41
... = FWLaunch.getJsResponse(progressCookie); var doneFlag = false; alert("An error occurred."); }else{ // got an error window.close (); } doneFlag = true; } } } FWLaunch.mayLaunchFireworks() Availability Dreamweaver 2, Fireworks 2. DREAMWEAVER CS3 36 API Reference Arguments progressTrackerCookie • The progressTrackerCookie argument is not running a valid version of Dreamweaver (version 3 or later). • Error starting Fireworks process, which indicates that the FWLaunch.execJsInFireworks...
... = FWLaunch.getJsResponse(progressCookie); var doneFlag = false; alert("An error occurred."); }else{ // got an error window.close (); } doneFlag = true; } } } FWLaunch.mayLaunchFireworks() Availability Dreamweaver 2, Fireworks 2. DREAMWEAVER CS3 36 API Reference Arguments progressTrackerCookie • The progressTrackerCookie argument is not running a valid version of Dreamweaver (version 3 or later). • Error starting Fireworks process, which indicates that the FWLaunch.execJsInFireworks...
API Reference
Page 42
...on the user's hard disk. Description This function opens a Fireworks optimization session for the specified image; FWLaunch.validateFireworks() Availability Dreamweaver 2, Fireworks 2. Arguments None. otherwise, a nonzero error code that indicates one of the following errors occurred: •...optimizeInFireworks() Availability Dreamweaver 2, Fireworks 2. If the path is relative, it is relative to the path that indicates whether the platform is possible to the selected image. DREAMWEAVER CS3 37 API Reference Description This function determines whether it is Windows or the ...
...on the user's hard disk. Description This function opens a Fireworks optimization session for the specified image; FWLaunch.validateFireworks() Availability Dreamweaver 2, Fireworks 2. Arguments None. otherwise, a nonzero error code that indicates one of the following errors occurred: •...optimizeInFireworks() Availability Dreamweaver 2, Fireworks 2. If the path is relative, it is relative to the path that indicates whether the platform is possible to the selected image. DREAMWEAVER CS3 37 API Reference Description This function determines whether it is Windows or the ...
API Reference
Page 43
... in Fireworks function commandButtons(){ return new Array("Prompt", "promptInFireworks()", "Cancel", ¬ "readyToCancel()", "Close","window.close()"); } var gCancelClicked = false; it wasn't launched, a number means an error code if (gProgressTrackerCookie == null || ¬ If this ¬ command"); DREAMWEAVER CS3 38 API Reference Arguments {versionNumber} • The versionNumber argument is an optional floating-point number that indicates...
... in Fireworks function commandButtons(){ return new Array("Prompt", "promptInFireworks()", "Cancel", ¬ "readyToCancel()", "Close","window.close()"); } var gCancelClicked = false; it wasn't launched, a number means an error code if (gProgressTrackerCookie == null || ¬ If this ¬ command"); DREAMWEAVER CS3 38 API Reference Arguments {versionNumber} • The versionNumber argument is an optional floating-point number that indicates...
API Reference
Page 44
..., // so we can show the user what we got. typeof(gProgressTrackerCookie) == "number") { window.close (); alert("an error occurred"); FWLaunch.bringDWToFront();// bring Fireworks to the front FWLaunch.bringFWToFront(); // start the checking to see if Fireworks is done yet checkOneMoreTime(); } } function checkOneMoreTime() { // Call checkJsResponse() every 1/2 second to meet you, " + response + "!"); } } } DREAMWEAVER CS3 39 API Reference
..., // so we can show the user what we got. typeof(gProgressTrackerCookie) == "number") { window.close (); alert("an error occurred"); FWLaunch.bringDWToFront();// bring Fireworks to the front FWLaunch.bringFWToFront(); // start the checking to see if Fireworks is done yet checkOneMoreTime(); } } function checkOneMoreTime() { // Call checkJsResponse() every 1/2 second to meet you, " + response + "!"); } } } DREAMWEAVER CS3 39 API Reference
API Reference
Page 63
MMDB.showRdsUserDialog() Availability Dreamweaver UltraDev 4. Returns An object that the user cancelled the dialog box. If either property is the initial password. Description This function displays the ...box appears. Description This function displays the System ODBC Administration dialog box or the ODBC Data Source Administrator dialog box. Arguments None. DREAMWEAVER CS3 58 API Reference MMDB.showOdbcDialog() Availability Dreamweaver UltraDev 4 (Windows only). Arguments catalog, schema • The catalog argument is the initial catalog value. • The schema argument is the ...
MMDB.showRdsUserDialog() Availability Dreamweaver UltraDev 4. Returns An object that the user cancelled the dialog box. If either property is the initial password. Description This function displays the ...box appears. Description This function displays the System ODBC Administration dialog box or the ODBC Data Source Administrator dialog box. Arguments None. DREAMWEAVER CS3 58 API Reference MMDB.showOdbcDialog() Availability Dreamweaver UltraDev 4 (Windows only). Arguments catalog, schema • The catalog argument is the initial catalog value. • The schema argument is the ...
API Reference
Page 76
...8226; On the Application panel, the user can expand the Connection list box. • On the Database tab of the connection (for Adobe® Dreamweaver® CS3. Make sure this HTML file, which defines your connection dialog box, in the following steps outline the process for creating a new connection ... the user interface (UI) for your new connection type in the Configuration/Connections/server-model/platform folder (where the platform is either Windows or Macintosh). In the Recordset dialog box, the user can click the Plus (+) button and select Recordset. The user can create...
...8226; On the Application panel, the user can expand the Connection list box. • On the Database tab of the connection (for Adobe® Dreamweaver® CS3. Make sure this HTML file, which defines your connection dialog box, in the following steps outline the process for creating a new connection ... the user interface (UI) for your new connection type in the Configuration/Connections/server-model/platform folder (where the platform is either Windows or Macintosh). In the Recordset dialog box, the user can click the Plus (+) button and select Recordset. The user can create...
API Reference
Page 77
...Step 1, "Create the layout for an ASP JavaScript document on a Windows platform is associated with implementing the calls for generating include files for the user, you create a connection dialog box. Note: At runtime, Dreamweaver dynamically builds the list of dialog boxes that is specified in the ...a .js extension (for the ASP JavaScript document type: function getServerModelFolderName() { return "ASP_JS"; } You can store this connection type implementation file. DREAMWEAVER CS3 72 API Reference For example, the default ADO connection dialog box for the connection dialog box."
...Step 1, "Create the layout for an ASP JavaScript document on a Windows platform is associated with implementing the calls for generating include files for the user, you create a connection dialog box. Note: At runtime, Dreamweaver dynamically builds the list of dialog boxes that is specified in the ...a .js extension (for the ASP JavaScript document type: function getServerModelFolderName() { return "ASP_JS"; } You can store this connection type implementation file. DREAMWEAVER CS3 72 API Reference For example, the default ADO connection dialog box for the connection dialog box."
API Reference
Page 90
...Adding source control system functionality You can write a GetNewFeatures handler that enables the feature; Then, in the same way as it in Windows, when the user right-clicks a file, the History menu item is one of the corresponding API function (Connect(), Disconnect(), Get..., webdav, perforce) and the description below the pop-up menu. DREAMWEAVER CS3 85 API Reference How source control integration with Dreamweaver works When a Dreamweaver user selects server connection, file transfer, or Design Notes features, Dreamweaver calls the DLL's version of the items on the menu.
...Adding source control system functionality You can write a GetNewFeatures handler that enables the feature; Then, in the same way as it in Windows, when the user right-clicks a file, the History menu item is one of the corresponding API function (Connect(), Disconnect(), Get..., webdav, perforce) and the description below the pop-up menu. DREAMWEAVER CS3 85 API Reference How source control integration with Dreamweaver works When a Dreamweaver user selects server connection, file transfer, or Design Notes features, Dreamweaver calls the DLL's version of the items on the menu.
API Reference
Page 113
...the filenames that contains help .map and HelpDoc.js files. • The win-mapping attribute is the Windows book name, which is packaged for Windows HTML Help or Help Viewer for Dreamweaver Help to the secondary browser, which is a file that is used in the standard operating system help.... • The help book names. Description Gets the path to help .map file If no secondary browser is a folder. dreamweaver.openHelpURL() Availability Dreamweaver MX. Help content is in HTML, but it returns nothing. DREAMWEAVER CS3 108 API Reference dreamweaver.getSecondaryBrowser() Availability...
...the filenames that contains help .map and HelpDoc.js files. • The win-mapping attribute is the Windows book name, which is packaged for Windows HTML Help or Help Viewer for Dreamweaver Help to the secondary browser, which is a file that is used in the standard operating system help.... • The help book names. Description Gets the path to help .map file If no secondary browser is a folder. dreamweaver.openHelpURL() Availability Dreamweaver MX. Help content is in HTML, but it returns nothing. DREAMWEAVER CS3 108 API Reference dreamweaver.getSecondaryBrowser() Availability...
API Reference
Page 120
... mode", "new document", "floaters" (for the Panels category), "browsers" (for the Preview in Dreamweaver 8. Added the strCategory argument in Browser category), "site ftp" (for users to open the correlating ...Dreamweaver windows. Description This function opens the Preferences dialog box. Example The following strings to insert tags into the Code view. dw.registerIdleHandler() Availability Dreamweaver CS3. Returns Nothing. dreamweaver.showTagChooser() Availability Dreamweaver MX. DREAMWEAVER CS3 115 API Reference dreamweaver.showPreferencesDialog() Availability Dreamweaver...
... mode", "new document", "floaters" (for the Panels category), "browsers" (for the Preview in Dreamweaver 8. Added the strCategory argument in Browser category), "site ftp" (for users to open the correlating ...Dreamweaver windows. Description This function opens the Preferences dialog box. Example The following strings to insert tags into the Code view. dw.registerIdleHandler() Availability Dreamweaver CS3. Returns Nothing. dreamweaver.showTagChooser() Availability Dreamweaver MX. DREAMWEAVER CS3 115 API Reference dreamweaver.showPreferencesDialog() Availability Dreamweaver...
API Reference
Page 123
BridgeTalk.suppressStartupScreen() Availability Dreamweaver CS3. dw.browseInBridge() Availability Dreamweaver CS3. Description Allows you to browse files in seconds. If Bridge is already running, dw.browseInBridge switches to ...windows after startup. Returns A Boolean value indicating whether to the Bridge application. The dw.browseInBridge() function launches the Bridge application. Example result = bridgeTalk.send(10); Description Searches the launch options for -nostartupscreen to determine whether to the Bridge application successfully (true = success, false = fail). DREAMWEAVER CS3...
BridgeTalk.suppressStartupScreen() Availability Dreamweaver CS3. dw.browseInBridge() Availability Dreamweaver CS3. Description Allows you to browse files in seconds. If Bridge is already running, dw.browseInBridge switches to ...windows after startup. Returns A Boolean value indicating whether to the Bridge application. The dw.browseInBridge() function launches the Bridge application. Example result = bridgeTalk.send(10); Description Searches the launch options for -nostartupscreen to determine whether to the Bridge application successfully (true = success, false = fail). DREAMWEAVER CS3...
API Reference
Page 124
Methods of the Adobe® Dreamweaver® CS3 workspace. The functions described in this chapter are grouped into the following sections: • "History functions" on page 119 • "Insert object functions" on page 127 • "Keyboard functions" on page 130 • "Menu functions" on page 136 • "Results window functions" on page 138 • "Toggle...
Methods of the Adobe® Dreamweaver® CS3 workspace. The functions described in this chapter are grouped into the following sections: • "History functions" on page 119 • "Insert object functions" on page 127 • "Keyboard functions" on page 130 • "Menu functions" on page 136 • "Results window functions" on page 138 • "Toggle...
API Reference
Page 125
... Redoes the step that will be redone if the user selects Edit > Redo or presses Control+Y (Windows) or Command+Y (Macintosh). Description Undoes the previous step in the document. Returns A string that contains the text that is associated with the editing operation that will be redone. DREAMWEAVER CS3 120 API Reference dom.redo() Availability...
... Redoes the step that will be redone if the user selects Edit > Redo or presses Control+Y (Windows) or Command+Y (Macintosh). Description Undoes the previous step in the document. Returns A string that contains the text that is associated with the editing operation that will be redone. DREAMWEAVER CS3 120 API Reference dom.redo() Availability...
API Reference
Page 126
...() function returns "Undo Apply ". Description Plays the recorded command in the active Document window, dialog box, floating panel, or Site panel. Enabler See "dreamweaver.canPlayRecordedCommand()" on page 449. Arguments None. dreamweaver.redo() Availability Dreamweaver 3. dreamweaver.getUndoText() Availability Dreamweaver 3. Arguments None. Returns Nothing. DREAMWEAVER CS3 121 API Reference Example If the user's last action applied bold to selected text...
...() function returns "Undo Apply ". Description Plays the recorded command in the active Document window, dialog box, floating panel, or Site panel. Enabler See "dreamweaver.canPlayRecordedCommand()" on page 449. Arguments None. dreamweaver.redo() Availability Dreamweaver 3. dreamweaver.getUndoText() Availability Dreamweaver 3. Arguments None. Returns Nothing. DREAMWEAVER CS3 121 API Reference Example If the user's last action applied bold to selected text...