Adobe 38040334 - Dreamweaver CS3 User Manual page 252

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• "Creating the dynamic page document" on page 246
• "Defining the new server behavior" on page 246
• "Defining the code to insert" on page 246
Creating the dynamic page document
First, you create a new ASP document.
To create a new dynamic page document:
In Dreamweaver, select the File > New menu option.
1
2
In the New Document dialog box, select Category: Dynamic Page, and Dynamic Page: ASP JavaScript.
Click Create.
3
Defining the new server behavior
Next, you define the new server behavior.
To use the Server Behavior Builder to define your new server behavior:
Note: If the Server Behaviors panel is not open and visible, select the Window > Server Behaviors menu option.
In the Server Behaviors panel, select the Plus (+) button, and then select the New Server Behavior menu option.
1
2
In the New Server Behavior dialog box, select Document Type: ASP JavaScript, and Name: Hello World. (Leave
the "Copy existing server behavior" check box unchecked.)
Click OK.
3
Defining the code to insert
Finally, you define the code to insert.
To define the code to insert:
Select the Plus (+) button for Code Blocks to Insert.
1
In the Create A New Code Block dialog box, enter
2
enter this information for you).
Click OK.
3
4
In the Code Block text field, enter
5
In the Insert Code pop-up menu, select Relative To The Selection so the user can control where this code goes in
the document.
6
In the Relative Position pop-up menu, select After The Selection.
Click OK.
7
In the Server Behaviors panel, you can see that the Plus (+) menu contains the new server behavior in the pop-up
list. Also, in the installation folder for your Dreamweaver files, the Configuration/ServerBehaviors/ASP_Js folder
now contains the following three files:
• The group file: Hello World.edml
• The participant file: Hello World_block1.edml
Hello_World_block1
<% Response.Write("Hello World") %>.
Extending Dreamweaver
(Dreamweaver might automatically
DREAMWEAVER CS3
246

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents