MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Especificações Página 147

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 692
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 146
Server Behaviors 147
For example, the moveTo_declareParam.edml file contains the following code:
<participant>
<quickSearch><![CDATA[MM_paramName]]></quickSearch>
<insertText location="aboveHTML+80">
<![CDATA[
<% var MM_paramName = ""; %>
]]>
</insertText>
<searchPatterns whereToSearch="directive">
<searchPattern><![CDATA[/var\s*MM_paramName/]]></searchPattern>
</searchPatterns>
</participant>
When Dreamweaver adds a server behavior to a document, it needs to have detailed information,
including where to insert the code, what the code looks like, and what parameters the
Dreamweaver author or data replaced at runtime. Each participant EDML file describes these
details for each block of code. Specifically, the participant file describes the following data:
The code and where to put the unique instance. These are defined by the insertText tag
parameters, as shown in the following example:
<insertText location="aboveHTML+80">
How to recognize instances already on the page, as shown in the following example:
<searchPatterns whereToSearch="directive">
<searchPattern><![CDATA[/var\s*MM_paramName/]]></searchPattern>
</searchPatterns>
In the searchPatterns block tag, each searchPattern contains a pattern that finds instances of
runtime code and extracts specific parameters. For more details, see Server behavior techniques
on page 183.
The script file
Each server behavior also has an HTML file that contains functions and links to the scripts that
manage the integration of the server behavior code with the Dreamweaver interface. The
functions that are available for editing in this file are discussed in Server behavior
implementation functions on page 156.
Hello World example
This example takes you through the creation of a new server behavior so you can see the files that
Dreamweaver creates and how to handle them. Again, see Adding Custom Server Behaviors in
the Getting Started with Dreamweaver MX manual for details about working with the Server
Behavior Builder interface. The example displays Hello World from the ASP server. The Hello
World behavior has only one participant (a single ASP tag) and does not modify or add anything
else on the page.
Note: This example refers to functions that are defined later in this chapter.
Create a new dynamic page document.
1 In Dreamweaver, select the File > New menu option.
2 In the New Document dialog box, select:
Category: Dynamic Page
Dynamic Page: ASP JavaScript
Vista de página 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 691 692

Comentários a estes Manuais

Sem comentários

Asus D510MT G9646 manuals

Owner’s manuals and user’s guides for Laptops Asus D510MT G9646.
We providing 1 pdf manuals Asus D510MT G9646 for download free by document types: User Manual


Asus D510MT G9646 User Manual (88 pages)


Brand: Asus | Category: Notebooks | Size: 6.09 MB |

 




More products and manuals for Laptops Asus

Models Document Type
D550MA DA8619 User Manual ASUS D550MA DA8619 User's Manual, 114 pages
B23E User Manual   ASUS B23E User's Manual [en] [fr] , 114 pages
PU551LD User Manual   ASUS PU551LD User's Manual, 138 pages
B551LG User Manual   ASUS B551LG User's Manual [en] , 160 pages
X751MA LT9042 User Manual   ASUS X751MA LT9042 User's Manual, 110 pages
UX305FA User Manual   ASUS UX305FA User's Manual, 104 pages
X555LA F9105 User Manual   ASUS X555LA F9105 User's Manual, 125 pages
B400V NW7602 User Manual ASUS B400V NW7602 User's Manual, 98 pages
B451JA G9582 User Manual   ASUS B451JA G9582 User's Manual, 152 pages
D550MA TR8619 User Manual   ASUS D550MA TR8619 User's Manual, 122 pages
TP500LA User Manual ASUS TP500LA User's Manual, 108 pages
G750JM User Manual   ASUS G750JM User's Manual, 119 pages
PU551JH User Manual   ASUS PU551JH User's Manual, 136 pages
TP300LA User Manual ASUS TP300LA User's Manual, 118 pages
PU500CA User Manual   ASUS PU500CA User's Manual [en] , 100 pages
BU201 User Manual ASUS BU201 User's Manual, 138 pages
X750JBDB71 User Manual   ASUS X750JBDB71 User's Manual, 110 pages
G750JM User Manual    ASUS G750JM User's Manual, 122 pages
PU551LD User Manual   ASUS PU551LD User's Manual, 140 pages
X751MA DA9042 User Manual ASUS X751MA DA9042 User's Manual, 110 pages