Saving The File In The Floaters Folder - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

If the selected node is not an element, or it is not a
function makes the layer
panel displays the text (no script selected), as shown in the following figure:
updateScript(): write back changes
The
updateScript()
the
of the
textarea
code and the
onBlur
function looks like the following example:
/* update the document with any changes made by
the user in the textarea */
function updateScript(){
var theDOM = dw.getDocumentDOM();
var theNode = dw.getSelectedNode();
theNode.innerHTML = document.layers['scriptlayer'].document.¬
theForm.scriptCode.value;
}
</script>
</head>

Saving the file in the Floaters folder

The next step is to save the JavaScript and HTML code in the scripteditor.htm file in the
Configuration/Floaters folder. Saving the scriptEditor.htm file in the Floaters folder makes the
floating panel extension available to Dreamweaver.
visible and hides
blanklayer
function writes back the selected script when an
panel. The
scriptlayer
event occurs when
textarea
tag, the
SCRIPT
selectionChanged()
scriptlayer
form element contains the JavaScript
textarea
loses input focus. The
Script Editor: a floating panel extension
. The
floating
blanklayer
event occurs in
onBlur
updateScript()
233

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents