How to view documents within browser without downloading?

krono9

Senior Member
Joined
Sep 5, 2009
Messages
916
Reaction score
16
Location
Durbanville, Cape Town
Hi, im not a programmer and only have basic skills..

I put together a basic Jquery Mobile website.. all the pages are within one html document.. I have a few links to guides on how to do certain things within our company.... but these guides are either in pdf or docx.... so if you click the link on the webpage..it will download the documents...

I want to know how do i let the user view these documents within the browser without them having to download it?

Basically its an company internal jquery mobile website running from dropbox so that its accessible also from mobile phones externally.. Everything works and looks great.. I just need to sort out the documents from not downloading etc.. Is this possible without running a full hosted webapp and calls etc to a server backend?
 
You set Adobe to display in browser,its a setting within the options.
Any document viewed is downloaded, regardless of where it is viewed.
 
Hi, im not a programmer and only have basic skills..

I put together a basic Jquery Mobile website.. all the pages are within one html document.. I have a few links to guides on how to do certain things within our company.... but these guides are either in pdf or docx.... so if you click the link on the webpage..it will download the documents...

I want to know how do i let the user view these documents within the browser without them having to download it?

Basically its an company internal jquery mobile website running from dropbox so that its accessible also from mobile phones externally.. Everything works and looks great.. I just need to sort out the documents from not downloading etc.. Is this possible without running a full hosted webapp and calls etc to a server backend?

You may consider this header:

Content-Type: application/pdf
Content-Disposition: inline; filename.pdf

Take a look for more information here:

http://php.net/manual/en/function.header.php#example-4475
 
Top
Sign up to the MyBroadband newsletter
X