Tip

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.