Manage Learn to apply best practices and optimize your operations.

Autolaunching Attachments

The automatic launching of an attachment can be accomplished by replacing the URL of the current window or frame, with a URL that points to a Lotus Notes Attachment. There are two easy ways to automatically replace the URL of the current window, one method uses pass-thru HTML and the other uses JavaScript.

The pass-thru HTML method utilises the <meta http-equiv="refresh" content = "1; url"> statement to refresh the URL of the current window. The <meta http-equiv="refresh" content = "1; url"> statement will cause the current window's URL to be refreshed with the new URL after the specified number of seconds.

HTML standards require that this statement be placed in the "<head>" section of the HTML page. This can be accomplished by placing the pass-thru HTML in a field with the name "$$HTMLHead"

The JavaScript method requires that you code a JavaScript command to replace the self.location.href property with the new URL. The advantage of this method, is the ability to target other windows and frames.

In Netscape, the attachment is always launched in a new session of the attachment's native application. In Explorer, Microsoft application files will activate a viewer inside the window (display the contents of the file using an Active X control) and non-Microsoft application files will be launched in a new session of the attachment's native application.

BONUS: Using Frames and Explorer, it is possible to easily view a word document inside a Web browser.

This was last published in November 2000

Dig Deeper on Domino Resources - Part 2

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...