Extending Dreamweaver JavaScript Back Button
|
Extending Dreamweaver
Macromedia Dreamweaver has long been my 'editor of choice' for creating Web sites. Every editing program I've used has had its limitations but Macromedia appears to have found a way to make its Web authoring tool almost limitless: they let you build it yourself.
The Dreamweaver program itself is built using HTML, JavaScript and XML; just like a Web page. This means that early Dreamweaver users were able to extend the abilities of the program and add commands and menu items that didn't exist. (it was possible, but it wasn't easy.) Macromedia has since started its 'Dreamweaver Exchange', making it as simple as downloading and double clicking the command you want to add. And some of these commands are pretty advanced.
Some of my favorites: A self-centering pop-up window. A premade calendar. JavaScript form field validation.
Advanced JavaScripts that used to take an hour to hand code now take me a couple clicks. You don't even need to KNOW JavaScript to add advanced features to your page. What you DO need:
A copy of Dreamweaver. A copy of Extensions Manager.
Here's where to find extensions:
Authorized*:
https://www.macromedia.com/exchange/dreamweaver/
Other*:
https://www.yaromat.com/ https://people.netscape.com/andreww/dreamweaver/customtags.html https://www.massimocorner.com/ https://www.projectseven.com/dreamweaver/index.htm https://dreamweaverfever.com/grow/ https://thecomb.tripod.com/dream.htm
Authorized Extensions vs. Unauthorized ones:
There are two kinds of extensions, 'authorized' and 'unauthorized.' Authorized means that the good people of Macromedia have checked it out and it appears to do what it says without causing any problems. Unauthorized means that it may work or it may give you errors. I've found a few that gave me errors but not many.
But I Want To Build My Own!
You can do this too. The easiest way is to find out how other people did it. Find an extension similar to yours, install it with Extensions Manager, then go looking for it on your hard drive. When I download an extension it usually ends up in C:\Program Files\Macromedia\Dreamweaver 3\Configuration\Objects\Invisibles.
A simple extension (or MXP file) is made up of three or four parts, with lots of variations:
- The HTML file that calls the JavaScript.
- The GIFs used
- The JavaScript that does the work.
- The MXI file that tells Extensions Manager who built it, what it is, and where to install it.
Here's a simple MXI File to insert a 'JavaScript back button'. Note that this is only one of the three files needed to build an extension:
If you look between the '
TEXT CONTENT FOR JAVASCRIPT_BACK_BUTTON.HTML
Once you've created the files needed for your extension to work you use Dreamweaver's 'Package' function. It'll ask you where your MXI file is and then compress these three files into a single MXP file ready for installation.
There are tons of handy exensions available for download at Macromedia and more being created every week. Let's see some of yours up there too!
Danny Mather is a Web and flash developer for nject creative based in Vancouver, BC, Canada. He can be reached at mailto:danny@nject.com and https://nject.com/.
This article originally appeared in the Jan. 4, 2000 edition of the WebReference Update Newsletter.
Comments are welcome
Revised: Jan. 5, 2001
URL:https://www.webreference.com/new/dwextend.html