beautypg.com

Dreamweaver.snippetpalette.remove(), Spry widget editing functions, Element.gettranslatedattribute() – Adobe Dreamweaver API Reference CS5 User Manual

Page 338

background image

333

DREAMWEAVER API REFERENCE

Page content

Last updated 8/27/2013

Description
Activates a text box around the selected folder name or file nickname and lets you edit the selected element.

Arguments
None.

Returns
Nothing.

dreamweaver.snippetPalette.remove()

Availability
Dreamweaver MX.

Description
Deletes the selected element or folder from the Snippets panel and deletes the file from the disk.

Returns
Nothing.

Spry widget editing functions

Dreamweaver CS5 provides enhanced editing functions for Spry and other dynamic widgets.

element.getTranslatedAttribute()

Availability
Dreamweaver CS3.

Description
This function is the same as the W3C

getAttribute()

function, but acts on translated attributes. The

element.getTranslatedAttribute()

function retrieves an attribute value by name.

Arguments
name

The name argument is a DOMString that is the name of the attribute to retrieve.

Returns
Returns the name of the attribute as a DOMString. If the attribute does not have a specified or default value, this
function returns an empty string.