|
|
How to avoid open/save dialog box while accessing a word document from server
hi to everybody,
i have define a link which say like below
<a href=/one/two/test.doc target="_blank">download document</a>
when i click "download document" link one dialog box appears asking
open/save/cancel
now i need to avoid that dialog box and need to download the document
directly.
can anybody help me please how to avoid that dialog box?
(it should only ask for place where i can store)
thanks and take care to all.
|
|
0
|
|
|
|
Reply
|
RAJ
|
3/4/2008 11:10:59 AM |
|
RAJ wrote:
> hi to everybody,
>
> i have define a link which say like below
> <a href=/one/two/test.doc target="_blank">download document</a>
>
> when i click "download document" link one dialog box appears asking
> open/save/cancel
>
>
> now i need to avoid that dialog box and need to download the document
> directly.
>
> can anybody help me please how to avoid that dialog box?
> (it should only ask for place where i can store)
>
>
> thanks and take care to all.
Hi,
You'll have to send the right headers too from the server.
From PHP for example:
header("Content-type: application/msword");
header("Content-Disposition: attachment; filename=worddoc.doc");
Maybe a few more headers are needed.
Try the above, and Google around.
Good luck.
Regards,
Erwin Moller
|
|
0
|
|
|
|
Reply
|
Erwin
|
3/4/2008 2:03:16 PM
|
|
RAJ wrote:
> i have define a link which say like below
> <a href=/one/two/test.doc target="_blank">download document</a>
http://validator.w3.org/
> when i click "download document" link one dialog box appears asking
> open/save/cancel
>
> now i need to avoid that dialog box and need to download the document
> directly.
Four get it. [psf 4.13]
PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
|
|
0
|
|
|
|
Reply
|
Thomas
|
3/4/2008 3:09:55 PM
|
|
|
2 Replies
337 Views
(page loaded in 0.06 seconds)
Similiar Articles: yahoo pop: how can I download Sent messages? - comp.mail.misc ...The premium account offers pop mail access, but I ... And now I have 1500 messages in my Sent box which I ... How to open file dialog in Ruby, and get open FileName ... remembering save folder - comp.graphics.apps.paint-shop-pro ...... save, re-open? - comp.emacs Open Save Dialog box using Virtual ... save as" dialog box ... saves document ... it always open a window to save to the picture folder. While ... print setup saves the printer - comp.databases.filemaker ...... have tried (as in six) to open the setup steps and save the ... find one of these it presents the dialog box ... printer - comp ... of Xpdf, the open source Portable Document ... Import logo from Adobe Illustrator - comp.cad.solidworks ...Save, open back up then purge all then save , close open ... Also, if you have access to mdt (mechanical desktop ... In the Import Adobe Illustrator File dialog box, locate ... Sampling: What Nyquist Didn't Say, and What to Do About It - comp ...... avoid two-column format unless I were trying to save the ... the document remotely --- while I was attending to some family problems "back east" -- so I didn't have access ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... Display Open and Save As Dialog Boxes in Access with API FunctionsDisplay Open and Save As Dialog Boxes in Access with API ... along with your Access file. In this article, we'll show you how to display an Open or Save As dialog box ... Office Space: Calling a File Open Dialog Box from Microsoft WordCalling a File Open Dialog Box from Microsoft Word ... this solution – while very elegant – applies only to Windows XP: the dialog box ... no way to prevent Word from ... 7/23/2012 5:10:56 PM
|
|
|
|
|
|
|
|
|