SunQuest
 
       Web Authoring
  Home arrow Web Authoring arrow Page 6 - Dreamweaver MX 2004 Extensions
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
VeriSign Whitepapers 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB AUTHORING

Dreamweaver MX 2004 Extensions
By: Apress Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 42
    2004-07-06

    Table of Contents:
  • Dreamweaver MX 2004 Extensions
  • Managing Extensions with the Macromedia Extension Manager
  • Yaromat Check Form
  • Build a Simple Survey Form
  • Massimocorner CF Upload
  • Dreamweaver’s Server Behavior Builder
  • Build Server Behavior Code and Interface
  • Distributing Server Behavior

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Dreamweaver MX 2004 Extensions - Dreamweaver’s Server Behavior Builder


    (Page 6 of 8 )

    After so much talk about extensions and how you can benefit from using ready-made ones, we now take a look at one of the main ways in which you can create your own: the Server Behavior Builder.

    Over the course of this book we have seen how useful Dreamweaver server behaviors are, and how much time they can save you during web development. Well, now you can create your own: introduced in Dreamweaver UltraDev 4, The Server Behavior Builder enables you to turn code snippets into powerful server behaviors. The Server Behavior Builder automates the creation of all the necessary files that make up the server behaviors. They consist of an HTML file and two or more Extension Data Markup Language (EDML) files.

    The HTML file contains all the needed scripts and all the elements of the interface that will allow the user to use the server behavior, whereas the EDML files (which are basically XML files) are mainly used by Dreamweaver to identify and interpret the various code blocks that comprise the server behavior.

    To better understand the content of the EDML files, a short digression on how a server behavior works is required. As you should have noticed in previous chapters, server behaviors differ from regular behaviors in the way they can be applied to your HTML code. In fact, because server behaviors mainly comprise server-side code, they can be placed on any part of your source code, even around selected areas. Each single code block of a server behavior is called a participant and is made up of an EDML file, while the list of all the participants needed by a server behavior to work is called a participants group, and is represented by another EDML file.

    When inserting a server behavior into a document, Dreamweaver needs to know where to insert each code block, what each code block looks like, and what data must be entered by the user or replaced at runtime. Each single participant EDML file stores its own information, and the participants group EDML file lists all the participants that make up the server behavior.

    Creating a Generic CFML Form Mailer Server Behavior

    Using the Dreamweaver Server Behavior Builder, you are now going to create a generic ColdFusion-driven Form Mailer. A Form Mailer is used to process and send all the fields of an HTML form to a specified address as an e-mail.

    Before considering turning code into a server behavior, make sure it is bug free and fully tested. Inserting a buggy server behavior into your pages will cause all kinds of problems that will be difficult to debug. In addition to this, make sure that the code you want to be available as a server behavior is really suitable; if it doesn’t accept parameters or cannot be easily reused, it is not the right candidate for a server behavior. Code blocks that need no or few parameters to be entered should instead be turned into snippets, as we will see in the next chapter.

    This chapter is from ColdFusion Web Development with Macromedia Dreamweaver MX 2004, by Jen and Peter deHaan et al. (Apress, 2004, ISBN: 1-59059-237-9). Check it out at your favorite bookstore today.

    Buy this book now.

    More Web Authoring Articles
    More By Apress Publishing


     

    WEB AUTHORING ARTICLES

    - Yahoo Pipes: Worth a Look
    - Completing an EAR
    - Building and Deploying an EAR
    - New Nuke Security Sentinel: Worth Taking a C...
    - Administering Your CMS-Based Web Site
    - What You Need to Know Before Using a CMS
    - Introducing the Google Maps API
    - An Overview of the Yahoo User Interface Libr...
    - Basic configuration of osCommerce, concluded
    - Basic configuration of osCommerce, continued
    - Basic configuration of osCommerce
    - Deploying your Site with PHPEclipse, continu...
    - Deploying your Site with phpEclipse
    - Macromedia Captivate Review
    - Macromedia and Adobe Planning to Tie the Knot







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway