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 first published in November 2000

Dig deeper on Domino Resources - Part 2

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com'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 ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close