10-21-2003, 08:07 AM | #1 |
Ironworks Moderator
Join Date: June 10, 2001
Location: Pasir Ris, Singapore
Age: 41
Posts: 11,063
|
Currently, when a .doc file or a .ppt file is placed as a hyperlink, clicking on the hyperlink will automatically open the file. Is there a way to force it to prompt the question of whether the user wants to open it or to save it to disk.
The method can be via HTML or JavaScript. Note that I am doing this as a server administrator, so posts telling me to set my personal settings is akin to expecting me to demand all my users to set their OS the way I want them to. I need a more concrete solution. Cheers for any solutions. [img]smile.gif[/img] |
10-21-2003, 08:10 AM | #2 |
Harper
Join Date: October 6, 2001
Location: Iceland
Posts: 4,706
|
Right click and choose >Save target as...<.
[ 10-21-2003, 08:11 AM: Message edited by: Jorath Calar ] |
10-21-2003, 08:36 AM | #3 |
Manshoon
Join Date: November 15, 2002
Location: Amsterdam
Age: 47
Posts: 248
|
I think Dundee is looking for a way to activate the "save as.." function with a left-click on a hyperlink. Else there wouldn't be a problem.
Dundee, why do you need this? Not that I can help in any way, I'm sorry to say. I know next to nothing about HTML or Javascript
__________________
<img border=\"0\" alt=\"[firedevil]\" title=\"\" src=\"graemlins/firedevil.gif\" /> Fire... |
10-21-2003, 08:43 AM | #4 |
Harper
Join Date: October 2, 2001
Location: Aberdeen, Scotland
Age: 42
Posts: 4,774
|
Unfortunately, how the browser interprets the file is up to the browser itself.
Workaround - provide the documents in .zip format. Its standard enough that nobody should have much trouble with it and it'll save you bandwidth.
__________________
[img]\"http://www.sighost.us/members/Zvijer/andrewas.gif\" alt=\" - \" /> |
10-21-2003, 08:52 AM | #5 | |
Ironworks Moderator
Join Date: June 10, 2001
Location: Pasir Ris, Singapore
Age: 41
Posts: 11,063
|
Quote:
Zipping them also presents a new set of problems. It takes up a loooot of space. I am essentially almost doubling my space usage. So is it confirmed then? It's impossible? |
|
10-21-2003, 09:07 AM | #6 |
Harper
Join Date: October 6, 2001
Location: Iceland
Posts: 4,706
|
Tell you major he is asking the wrong guy... he should talk to Bill Gates... [img]smile.gif[/img]
|
10-21-2003, 09:38 AM | #7 |
Takhisis Follower
Join Date: April 30, 2001
Location: szép Magyarország (well not right now)
Posts: 5,089
|
The problem is that browsers are configured to open particular data types with particular applications. That's why changing the name to an unknown type is a good idea as the browser won't know what to do with it so will always offer the save as option. I don't know of any way of forcing the file to be able to be to saved since javascript is only for client-side scripting and servers don't usually have permission to write to clients anyway, so there'd be no point in having such a method.
__________________
Too set in his ways to ever relate If he could set that aside, there'd be heaven to pay But weathered and aged, time swept him to grave Love conquers all? Damn, I'd say that area's gray |
10-21-2003, 09:43 AM | #8 | |
Galvatron
Join Date: January 22, 2002
Location: california wine country
Age: 60
Posts: 2,193
|
Quote:
__________________
“This is an impressive crowd, the haves and the have mores. <br />Some people call you the elite. <br />I call you my base.”<br />~ George W. Bush (2000) |
|
10-21-2003, 10:07 AM | #9 | |
Takhisis Follower
Join Date: April 30, 2001
Location: szép Magyarország (well not right now)
Posts: 5,089
|
Quote:
__________________
Too set in his ways to ever relate If he could set that aside, there'd be heaven to pay But weathered and aged, time swept him to grave Love conquers all? Damn, I'd say that area's gray |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|