Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A HREF to 'open' document (not prompt for Open/Save).

Status
Not open for further replies.

Wozza

Programmer
Jan 29, 2002
13
GB
Guys 'n' Gals,
I have a site with some documents I have uploaded, so that they're avaialable to everyone.
One of the Links I have created is:

<A title="Email the Falcon Group for deletion." href=" color=#0000ff>To delete a Falcon Queue</FONT></A>

This brings up the dialogue box and prompts the user to click Open, Save or Cancel.

What code do I need to overwrite this so that it simply opens the document?

Thanks!
Wozza

Warren Bennet
Wannabe Programmer.
 
It's entirely up to the users browser settings whether they choose to open the document "inside" the browser or not. You can't force them to open it inside if they have not selected that option as their setting.

If you have control over the user's (i.e. if it's an intranet application) then you may be able to roll this option out to them.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Thanks Mark.
Please forgive me if I have misunderstood your response but, I'm not worried about overwriting the user's Internet Browser or Explorer setting as to whether it opens within the browser or not.
Having clicked on a link to download a document, the user is asked if they would like to Open or Save (or Cancel) the document. Can I overwrite this so that it opens (I don't want them to save it)?

Thanks,

Warren Bennet
Wannabe Programmer.
 
The problem is that, by default, browsers will give you the "Open or Save" treatment for any file type that they don't know what to do with.

I'm not familiar with .oft files, what are users expected to do with that file once they've opened it?

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Hi Chris,
.oft files are Outlook Templates; on this occasion it is an email.
Rather than anchor a 'Mailto' with Subject and unformatted body etc, I was keen to upload an email template which is already formatted within the body as well as targetting particular recipients (and so forth).
I hope you know a workaround...! :eek:)

Warren Bennet
Wannabe Programmer.
 
Unless this is an intranet app, and you have complete control over your users' machines this looks like a poor idea. Quite a large number of normal users will not be using Outlook as their email client.

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top