Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Shocking your Domino Web site

Larry Kovner, Technical Writing Consultant, Lotus
Larry Kovner is a technical writing consultant in the Domino/Notes UA group. Larry has BS in Communications from Emerson College and a Master in Professional Writing from Northeastern University. When not immersed in computer technology, he enjoys music, theatre, and having karaoke parties.

Larry would like to thank Peter Carroll and Bryon McInroy of EntreVision for their help with this article. EntreVision Inc., a dynamic groupware consulting firm and Lotus Premium Partner, uses Lotus Domino groupware technology to solve complex organizational challenges associated with building enterprise Web sites.

Summary:  This article describes Shockwave technology for adding sound, animation to Web pages, and shows how to add Shockwave files to a Domino 4.5 or later Web site. It discusses the EntreVision, Inc. Chile Pepper site built to show off Domino on the Web.

Date:  02 Feb 1998
Level:  Introductory

Activity:  3623 views
Comments:  

Have you ever wondered how to add some spice to your Web site? You may not realize that Domino can serve up much more than plain HTML. We'll briefly describe what Shockwave is, walk through the steps for adding Shockwave files to your Domino Web site, and then show you how EntreVision, Inc. "shocked" their fictitious Chile Pepper site. (EntreVision, a dynamic groupware consulting firm and Lotus Premium Partner, designed the fictitious Chile Pepper site to showcase the power of Domino on the Web.)

The techniques in this article work with Domino 4.5 or later.

What is Shockwave?

Shockwave is an interactive, dynamic file type that you can embed into your Domino Web pages. Shockwave files can have sound, animation and links, and are a popular solution for Web site design with the entertainment, advertising, learning, and design industries. You can create Shockwave files by using Macromedia's Authorware, Director, or Flash. For more information on these products and how to create Shockwave files, see the Macromedia Web site at http://www.macromedia.com.

To view your "shocked" site, users need to have the Shockwave plug-in, which is available free of charge from Macromedia. The first time users try to view a Web page that contains a Shockwave file, their browser searches its plug-ins directory for the Shockwave plug-in. What happens if the browser can't find the plug-in? If they are using Internet Explorer 3.x or 4.x, the browser immediately downloads and installs the plug-in (using Active X) from the Macromedia Web site. If they are using Netscape Navigator 3.x or 4.x, the browser notifies them that the plug-in is required, and asks whether they want to get it. (You can still see the site without the plug-in; however, the elements that use the plug-in will appear as broken icons.)

In addition to the Shockwave plug-in, you can download Macromedia's Streaming Shockwave player, which lets animation and sound files start playing immediately while the remainder of the file downloads in the background. For more information on downloading the Shockwave plug-in or player, see http://www.macromedia.com/shockwave/download/.


Adding Shockwave files to your Domino Web site

Once you've got your Shockwave files created, use the following steps to add them to your Domino Web site:

  1. Add Shockwave definitions to your Domino configuration file, httpd.cnf, so Domino can display them correctly. For example, if you created the files with Director, add the following entries:

    AddType  .dcr  application/x-director  binary	1.0  
    # Shockwave for Director
    AddType  .dir  application/x-director  binary	1.0  
    # Shockwave for Director
    AddType  .dxr  application/x-director  binary	1.0  
    # Shockwave for Director

    These types are now included in the httpd.cnf files in Domino 4.6; however, you might still need to add them if you upgraded from an earlier release of Domino. Definitions for other Macromedia Shockwave products, such as Authorware, Freehand, Flash, and others, can be found at http://www.macromedia.com/support/config.html.

  2. Copy the Shockwave files into the html directory, which resides in the notes/data/domino directory. (Alternatively, you can store these files in a Notes database as document attachments and use the $file directive to retrieve them. For more information on this technique, see the article, "Notes.Net Exposed: Using a database to store Web site graphics.")
  3. Add the Shockwave file to your Web page by using passthru HTML. (Enter the code, highlight it, and then choose Text - Pass-Thru HTML.) The code should be in the format :

    <embed src=shockwave_file.dcr>

    For a complete listing of the HTML parameters you can use with the Shockwave file, see the sidebar "Shockwave parameters."

  4. Save the page. If you are using Release 4.6, you can preview how the page will look in a browser by choosing Actions - Preview in Web Browser. (To preview forms or navigators, choose Design - Preview in Web Browser. For views, choose View - Preview in Web Browser.)

Note: To use the Web browser preview, you must have selected the Toolbox option when installing the Notes Designer client. Also, you must have an Internet browser selected in your Location document, and you should have at least Default access in the database's ACL.


Shocking the Chile Pepper site

For example, Entrevision uses the following code to "shock" their Chile Pepper site, served by Domino. (See http://chilepepper.lotus.com/ and go to the Chile Life section to view this code as it appears on the Web.)

<embed src="Attachments/$File/chilelife_param.dcr" 
/$File is a Domino parameter used to open elements with file
/ attachments. The .drc file is stored in the Notes database. 
width=410 height=170 

sw1="../../Chile+Addiction" 
sw2="DocWin" 
sw3="/Demo/ShockMe.nsf/Lookup/Ice+Cream" 
sw4="DocWin" 
sw5="../../Special+Events" 
sw6="DocWin" 
sw7="http://www.notes.net" 
sw8="DocWin">
/sw1 to sw8 are user-definable parameters that provide a 
/generic way to pass URL parameters from HTML to the 
/Shockwave file.

Notice that the code uses the height and width tags for cropping the Shockwave file, and sw tags for linking URLs to the Shockwave file. "One of the biggest challenges we faced was building a Shockwave file in a way where we did not have to hard code the URLs, which can cause more work when you want to make changes later," explains Peter Carroll, a partner at EntreVision, Inc. "We met this challenge by using the generic sw tags as they let us easily pass information to the Shockwave file in a more efficient manner."


The future of Shockwave

Macromedia has developed a new product called Universal Media Initiative, which brings its products, such as Shockwave for Director and Flash onto a Java-based delivery system. With this method, Web developers can build interactivity using the Macromedia products, with the intention of them being delivered with the Shockwave plug-in. Then, if the end user does not have the plug-in installed, a Java applet with the plug-in code and the Shockwave file, are downloaded instead. This Java version is slower, but is still a good alternative in certain situations.

"The Universal Media Initiative is something that I am very excited about as a designer," says Bryon McInroy, an Interface Designer at EntreVision, Inc. "Added functionality with plug-ins are nice to add to Web sites or applications. The possibility of an end user not having a given plug-in installed can be a deterrent for relying on Shockwave or other plug-in technologies for functionality. But with the Universal Media Initiative, developers and clients have two levels of assurance, the plug-in and then Java."

So, Shockwave will remain a good option for spicing up your Domino Web site.


Resources

About the author

Larry Kovner is a technical writing consultant in the Domino/Notes UA group. Larry has BS in Communications from Emerson College and a Master in Professional Writing from Northeastern University. When not immersed in computer technology, he enjoys music, theatre, and having karaoke parties.

Larry would like to thank Peter Carroll and Bryon McInroy of EntreVision for their help with this article. EntreVision Inc., a dynamic groupware consulting firm and Lotus Premium Partner, uses Lotus Domino groupware technology to solve complex organizational challenges associated with building enterprise Web sites.

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


Rate this article

Comments

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Lotus
ArticleID=12647
ArticleTitle=Shocking your Domino Web site
publish-date=02021998
author1-email=
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

For articles in technology zones (such as Java technology, Linux, Open source, XML), Popular tags shows the top tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), Popular tags shows the top tags for just that product zone.

For articles in technology zones (such as Java technology, Linux, Open source, XML), My tags shows your tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), My tags shows your tags for just that product zone.

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.

Special offers